Commit 6965580a authored by Morten Welinder's avatar Morten Welinder Committed by Morten Welinder

Avoid trailing comma in enum. Ditto. Ditto. Ditto. Ditto. Ditto. Ditto.

2002-09-10  Morten Welinder  <terra@diku.dk>

	* src/expr.c: Avoid trailing comma in enum.
	* src/gnumeric-canvas.h (gnm_canvas_handle_motion): Ditto.
	* src/item-cursor.c: Ditto.
	* src/item-edit.c: Ditto.
	* src/item-grid.c: Ditto.
	* src/preview-grid.c: Ditto.
	* src/print.c: Ditto.
	* src/sheet-object-graphic.c: Ditto.
	* src/sheet.h (enum SheetClearFlags): Ditto.

	* src/dialogs/dialog-search-replace.c (set_checked): Fix 92911.
parent 3d9f785c
2002-09-10 Morten Welinder <terra@diku.dk>
* src/expr.c: Avoid trailing comma in enum.
* src/gnumeric-canvas.h (gnm_canvas_handle_motion): Ditto.
* src/item-cursor.c: Ditto.
* src/item-edit.c: Ditto.
* src/item-grid.c: Ditto.
* src/preview-grid.c: Ditto.
* src/print.c: Ditto.
* src/sheet-object-graphic.c: Ditto.
* src/sheet.h (enum SheetClearFlags): Ditto.
* src/dialogs/dialog-search-replace.c (set_checked): Fix 92911.
2002-09-09 Jody Goldberg <jody@gnome.org>
* src/gnumeric-gconf.c : slim things down and cache the results
......
2002-09-10 Morten Welinder <terra@diku.dk>
* src/expr.c: Avoid trailing comma in enum.
* src/gnumeric-canvas.h (gnm_canvas_handle_motion): Ditto.
* src/item-cursor.c: Ditto.
* src/item-edit.c: Ditto.
* src/item-grid.c: Ditto.
* src/preview-grid.c: Ditto.
* src/print.c: Ditto.
* src/sheet-object-graphic.c: Ditto.
* src/sheet.h (enum SheetClearFlags): Ditto.
* src/dialogs/dialog-search-replace.c (set_checked): Fix 92911.
2002-09-09 Jody Goldberg <jody@gnome.org>
* src/gnumeric-gconf.c : slim things down and cache the results
......
2002-09-10 Morten Welinder <terra@diku.dk>
* src/expr.c: Avoid trailing comma in enum.
* src/gnumeric-canvas.h (gnm_canvas_handle_motion): Ditto.
* src/item-cursor.c: Ditto.
* src/item-edit.c: Ditto.
* src/item-grid.c: Ditto.
* src/preview-grid.c: Ditto.
* src/print.c: Ditto.
* src/sheet-object-graphic.c: Ditto.
* src/sheet.h (enum SheetClearFlags): Ditto.
* src/dialogs/dialog-search-replace.c (set_checked): Fix 92911.
2002-09-09 Jody Goldberg <jody@gnome.org>
* src/gnumeric-gconf.c : slim things down and cache the results
......
2002-09-10 Morten Welinder <terra@diku.dk>
* ms-escher.c: Make shade_ParamMask be within int's range by
casting it.
* ms-escher.c: Avoid trailing commas in enums.
2002-09-05 Jody Goldberg <jody@gnome.org>
* ms-formula-write.c (ms_formula_write_pre_data) : remove some obvious
......
......@@ -827,7 +827,7 @@ typedef enum {
shape_LinesClosed = 1, /* closed polygonal shape */
shape_Curves = 2, /* Bezier curve segments */
shape_CurvesClosed = 3, /* A closed shape with curved edges */
shape_Complex = 4, /* pSegmentInfo must be non-empty */
shape_Complex = 4 /* pSegmentInfo must be non-empty */
} ShapePath;
typedef enum {
......@@ -835,7 +835,7 @@ typedef enum {
wrap_ByPoints = 1,
wrap_None = 2,
wrap_TopBottom = 3,
wrap_Through = 4,
wrap_Through = 4
} WrapMode;
typedef enum {
......@@ -849,7 +849,7 @@ typedef enum {
bw_HighContrast = 7, /* pure black and white mode (no grays) */
bw_Black = 7, /* solid black */
bw_White = 8, /* solid white */
bw_DontShow = 9, /* object not drawn */
bw_DontShow = 9 /* object not drawn */
} BlackWhiteMode;
typedef enum {
......@@ -885,20 +885,20 @@ typedef enum {
flow_BtoT = 2, /* Bottom to Top non-@ */
flow_TtoBN = 3, /* Top to Bottom non-@ */
flow_HorzA = 4, /* Horizontal @-font */
flow_VertN = 5, /* Vertical, non-@ */
flow_VertN = 5 /* Vertical, non-@ */
} TextFlow;
typedef enum {
textdir_LtoR = 0,
textdir_RtoL = 1,
textdir_Context = 2, /* depends on context */
textdir_Context = 2 /* depends on context */
} TextDirection;
typedef enum {
callout_RightAngle = 1,
callout_OneSegment = 2,
callout_TwoSegment = 3,
callout_ThreeSegment = 4,
callout_ThreeSegment = 4
} CalloutType;
typedef enum {
......@@ -915,7 +915,7 @@ typedef enum
callout_drop_Top = 0,
callout_drop_Center = 1,
callout_drop_Bottom = 2,
callout_drop_Specified = 3,
callout_drop_Specified = 3
} CalloutDrop;
/* Alignment - WordArt only */
......@@ -932,7 +932,7 @@ typedef enum {
typedef enum {
render_FullRender,
render_Wireframe,
render_BoundingCube,
render_BoundingCube
} RenderMode;
typedef enum {
......@@ -947,7 +947,7 @@ typedef enum {
shadow_Rich, /* Rich perspective shadow (cast relative to shape) */
shadow_Shape, /* Rich perspective shadow (cast in shape space) */
shadow_Drawing, /* Perspective shadow cast in drawing space */
shadow_EmbossOrEngrave,
shadow_EmbossOrEngrave
} Shadow;
/* LengthMeasure - the type of a (length) measurement */
......@@ -963,7 +963,7 @@ typedef enum {
measure_FixedAspectEnlarge = 8, /* Aspect ratio is fixed, favor larger size */
measure_AFixedBig = 9, /* EMUs, fixed aspect ratio */
measure_VFixedBig = 10, /* Pixels, fixed aspect ratio */
measure_ShapeFixedBig= 11, /* Proportion of shape, fixed aspect ratio */
measure_ShapeFixedBig= 11 /* Proportion of shape, fixed aspect ratio */
} LengthMeasure;
typedef enum {
......@@ -993,7 +993,7 @@ typedef enum {
* The Sigma shade style seems to hard code that to be 0x4000 ??
*/
shade_ParamShift = 16,
shade_ParamMask = 0xffff0000,
shade_ParamMask = (int)0xffff0000,
shade_Default = (shade_Gamma|shade_Sigma|(0x4000<<shade_ParamShift))
} ShadeType;
......@@ -1034,7 +1034,7 @@ typedef enum {
line_end_ArrowStealthEnd,
line_end_ArrowDiamondEnd,
line_end_ArrowOvalEnd,
line_end_ArrowOpenEnd,
line_end_ArrowOpenEnd
} LineEndStyle;
typedef enum {
......
......@@ -67,7 +67,7 @@ value_new_complex (const complex_t *c, char imunit)
if (complex_real_p (c))
return value_new_float (c->re);
else {
char f[5 + 4 * sizeof (int) + strlen (GNUM_FORMAT_g)];
char f[5 + 4 * sizeof (int) + sizeof (GNUM_FORMAT_g)];
sprintf (f, "%%.%d" GNUM_FORMAT_g, GNUM_DIG);
return value_new_string_nocopy (complex_to_string (c, f, f, imunit));
}
......
2002-09-10 Morten Welinder <terra@diku.dk>
* qpro.h: Avoid trailing commas in enum.
2002-08-25 Jody Goldberg <jody@gnome.org>
* Release 1.1.8
......
......@@ -344,8 +344,7 @@ typedef enum {
QPRO_OP_FUNC_PROPERTY = 159, /* @Property */
QPRO_OP_FUNC_DDELINK = 160, /* @DDELink */
QPRO_OP_FUNC_COMMAND = 161, /* @Command */
QPRO_OP_LAST_FUNC = 161,
QPRO_OP_LAST_FUNC = 161
} QProOperators;
......
2002-09-10 Morten Welinder <terra@diku.dk>
* sc.c: Avoid trailing comma in enum.
2002-08-25 Jody Goldberg <jody@gnome.org>
* Release 1.1.8
......
......@@ -41,7 +41,7 @@ void sc_file_open (GnumFileOpener const *fo, IOContext *io_context,
typedef enum {
LABEL,
LEFTSTRING,
RIGHTSTRING,
RIGHTSTRING
} sc_string_cmd_t;
......
......@@ -1326,7 +1326,7 @@ typedef enum {
CELLREF_NO_RELOCATE,
CELLREF_RELOCATE_FROM_IN,
CELLREF_RELOCATE_FROM_OUT,
CELLREF_RELOCATE_ERR,
CELLREF_RELOCATE_ERR
} CellRefRelocate;
/*
......
......@@ -55,7 +55,7 @@ typedef enum {
GNM_SLIDE_X = 1,
GNM_SLIDE_Y = 2,
GNM_SLIDE_EXTERIOR_ONLY = 4,
GNM_SLIDE_AT_COLROW_BOUND = 8, /* not implemented */
GNM_SLIDE_AT_COLROW_BOUND = 8 /* not implemented */
} GnumericSlideFlags;
void gnm_canvas_slide_stop (GnumericCanvas *gsheet);
void gnm_canvas_slide_init (GnumericCanvas *gsheet);
......
......@@ -43,7 +43,7 @@ static GnomeCanvasItem *item_edit_parent_class;
/* The arguments we take */
enum {
ARG_0,
ARG_SHEET_CONTROL_GUI, /* The SheetControlGUI * argument */
ARG_SHEET_CONTROL_GUI /* The SheetControlGUI * argument */
};
static gboolean
......
......@@ -58,7 +58,7 @@ static GnomeCanvasItemClass *item_grid_parent_class;
enum {
ARG_0,
ARG_SHEET_CONTROL_GUI,
ARG_SHEET_BOUND,
ARG_SHEET_BOUND
};
typedef enum {
ITEM_GRID_NO_SELECTION,
......
......@@ -76,7 +76,7 @@ enum {
/* Options */
ARG_RENDER_GRIDLINES,
ARG_DEFAULT_ROW_HEIGHT,
ARG_DEFAULT_COL_WIDTH,
ARG_DEFAULT_COL_WIDTH
};
/* Signals */
......
......@@ -254,7 +254,7 @@ print_page_repeated_intersect (PrintJobInfo const *pj, Sheet const *sheet,
typedef enum {
LEFT_HEADER,
RIGHT_HEADER,
MIDDLE_HEADER,
MIDDLE_HEADER
} HFSide;
/*
......
......@@ -36,7 +36,7 @@ typedef enum {
SHEET_OBJECT_LINE = 1,
SHEET_OBJECT_ARROW = 2,
SHEET_OBJECT_BOX = 101,
SHEET_OBJECT_OVAL = 102,
SHEET_OBJECT_OVAL = 102
} SheetObjectGraphicType;
#define SHEET_OBJECT_GRAPHIC(o) (G_TYPE_CHECK_INSTANCE_CAST((o), SHEET_OBJECT_GRAPHIC_TYPE, SheetObjectGraphic))
......
......@@ -276,7 +276,7 @@ typedef enum
CLEAR_MERGES = 0x40,
CLEAR_NOCHECKARRAY = 0x8,
CLEAR_NORESPAN = 0x10,
CLEAR_RECALC_DEPS = 0x20,
CLEAR_RECALC_DEPS = 0x20
} SheetClearFlags;
void sheet_clear_region (WorkbookControl *context,
......
......@@ -59,7 +59,7 @@ string_get (const char *s)
* string_get_nocopy :
*
* Take control of the supplied string.
* delete it if it is already availabl.e
* delete it if it is already available.
*/
String *
string_get_nocopy (char *s)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment