mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
formatting.c cleanup: Improve formatting of some struct declarations
This makes future editing easier. Reviewed-by: Chao Li <li.evan.chao@gmail.com> Discussion: https://www.postgresql.org/message-id/flat/6dd9d208-a3ed-49b5-b03d-8617261da973%40eisentraut.org
This commit is contained in:
@@ -297,15 +297,15 @@ static const char *const numth[] = {"st", "nd", "rd", "th", NULL};
|
|||||||
*/
|
*/
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
int pre, /* (count) numbers before decimal */
|
int pre; /* (count) numbers before decimal */
|
||||||
post, /* (count) numbers after decimal */
|
int post; /* (count) numbers after decimal */
|
||||||
lsign, /* want locales sign */
|
int lsign; /* want locales sign */
|
||||||
flag, /* number parameters */
|
int flag; /* number parameters */
|
||||||
pre_lsign_num, /* tmp value for lsign */
|
int pre_lsign_num; /* tmp value for lsign */
|
||||||
multi, /* multiplier for 'V' */
|
int multi; /* multiplier for 'V' */
|
||||||
zero_start, /* position of first zero */
|
int zero_start; /* position of first zero */
|
||||||
zero_end, /* position of last zero */
|
int zero_end; /* position of last zero */
|
||||||
need_locale; /* needs it locale */
|
int need_locale; /* needs it locale */
|
||||||
} NUMDesc;
|
} NUMDesc;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -410,29 +410,29 @@ static int NUMCounter = 0; /* aging-event counter */
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
FromCharDateMode mode;
|
FromCharDateMode mode;
|
||||||
int hh,
|
int hh;
|
||||||
pm,
|
int pm;
|
||||||
mi,
|
int mi;
|
||||||
ss,
|
int ss;
|
||||||
ssss,
|
int ssss;
|
||||||
d, /* stored as 1-7, Sunday = 1, 0 means missing */
|
int d; /* stored as 1-7, Sunday = 1, 0 means missing */
|
||||||
dd,
|
int dd;
|
||||||
ddd,
|
int ddd;
|
||||||
mm,
|
int mm;
|
||||||
ms,
|
int ms;
|
||||||
year,
|
int year;
|
||||||
bc,
|
int bc;
|
||||||
ww,
|
int ww;
|
||||||
w,
|
int w;
|
||||||
cc,
|
int cc;
|
||||||
j,
|
int j;
|
||||||
us,
|
int us;
|
||||||
yysz, /* is it YY or YYYY ? */
|
int yysz; /* is it YY or YYYY ? */
|
||||||
clock, /* 12 or 24 hour clock? */
|
int clock; /* 12 or 24 hour clock? */
|
||||||
tzsign, /* +1, -1, or 0 if no TZH/TZM fields */
|
int tzsign; /* +1, -1, or 0 if no TZH/TZM fields */
|
||||||
tzh,
|
int tzh;
|
||||||
tzm,
|
int tzm;
|
||||||
ff; /* fractional precision */
|
int ff; /* fractional precision */
|
||||||
bool has_tz; /* was there a TZ field? */
|
bool has_tz; /* was there a TZ field? */
|
||||||
int gmtoffset; /* GMT offset of fixed-offset zone abbrev */
|
int gmtoffset; /* GMT offset of fixed-offset zone abbrev */
|
||||||
pg_tz *tzp; /* pg_tz for dynamic abbrev */
|
pg_tz *tzp; /* pg_tz for dynamic abbrev */
|
||||||
|
|||||||
Reference in New Issue
Block a user