Skip to content

Commit e2cf524

Browse files
committed
formatting.c cleanup: Improve formatting of some struct declarations
This makes future editing easier. Reviewed-by: Chao Li <[email protected]> Discussion: https://www.postgresql.org/message-id/flat/6dd9d208-a3ed-49b5-b03d-8617261da973%40eisentraut.org
1 parent 9a1a5df commit e2cf524

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

src/backend/utils/adt/formatting.c

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,15 @@ static const char *const numth[] = {"st", "nd", "rd", "th", NULL};
297297
*/
298298
typedef struct
299299
{
300-
int pre, /* (count) numbers before decimal */
301-
post, /* (count) numbers after decimal */
302-
lsign, /* want locales sign */
303-
flag, /* number parameters */
304-
pre_lsign_num, /* tmp value for lsign */
305-
multi, /* multiplier for 'V' */
306-
zero_start, /* position of first zero */
307-
zero_end, /* position of last zero */
308-
need_locale; /* needs it locale */
300+
int pre; /* (count) numbers before decimal */
301+
int post; /* (count) numbers after decimal */
302+
int lsign; /* want locales sign */
303+
int flag; /* number parameters */
304+
int pre_lsign_num; /* tmp value for lsign */
305+
int multi; /* multiplier for 'V' */
306+
int zero_start; /* position of first zero */
307+
int zero_end; /* position of last zero */
308+
int need_locale; /* needs it locale */
309309
} NUMDesc;
310310

311311
/*
@@ -410,29 +410,29 @@ static int NUMCounter = 0; /* aging-event counter */
410410
typedef struct
411411
{
412412
FromCharDateMode mode;
413-
int hh,
414-
pm,
415-
mi,
416-
ss,
417-
ssss,
418-
d, /* stored as 1-7, Sunday = 1, 0 means missing */
419-
dd,
420-
ddd,
421-
mm,
422-
ms,
423-
year,
424-
bc,
425-
ww,
426-
w,
427-
cc,
428-
j,
429-
us,
430-
yysz, /* is it YY or YYYY ? */
431-
clock, /* 12 or 24 hour clock? */
432-
tzsign, /* +1, -1, or 0 if no TZH/TZM fields */
433-
tzh,
434-
tzm,
435-
ff; /* fractional precision */
413+
int hh;
414+
int pm;
415+
int mi;
416+
int ss;
417+
int ssss;
418+
int d; /* stored as 1-7, Sunday = 1, 0 means missing */
419+
int dd;
420+
int ddd;
421+
int mm;
422+
int ms;
423+
int year;
424+
int bc;
425+
int ww;
426+
int w;
427+
int cc;
428+
int j;
429+
int us;
430+
int yysz; /* is it YY or YYYY ? */
431+
int clock; /* 12 or 24 hour clock? */
432+
int tzsign; /* +1, -1, or 0 if no TZH/TZM fields */
433+
int tzh;
434+
int tzm;
435+
int ff; /* fractional precision */
436436
bool has_tz; /* was there a TZ field? */
437437
int gmtoffset; /* GMT offset of fixed-offset zone abbrev */
438438
pg_tz *tzp; /* pg_tz for dynamic abbrev */

0 commit comments

Comments
 (0)