diff options
author | Tom Lane | 2017-06-21 18:39:04 +0000 |
---|---|---|
committer | Tom Lane | 2017-06-21 18:39:04 +0000 |
commit | e3860ffa4dd0dad0dd9eea4be9cc1412373a8c89 (patch) | |
tree | 8dc7df95c340803546152724fbc17aee4b8527f9 /src/timezone/pgtz.h | |
parent | 8ff6d4ec7840b0af56f1207073f44b7f2afae96d (diff) |
Initial pgindent run with pg_bsd_indent version 2.0.
The new indent version includes numerous fixes thanks to Piotr Stefaniak.
The main changes visible in this commit are:
* Nicer formatting of function-pointer declarations.
* No longer unexpectedly removes spaces in expressions using casts,
sizeof, or offsetof.
* No longer wants to add a space in "struct structname *varname", as
well as some similar cases for const- or volatile-qualified pointers.
* Declarations using PG_USED_FOR_ASSERTS_ONLY are formatted more nicely.
* Fixes bug where comments following declarations were sometimes placed
with no space separating them from the code.
* Fixes some odd decisions for comments following case labels.
* Fixes some cases where comments following code were indented to less
than the expected column 33.
On the less good side, it now tends to put more whitespace around typedef
names that are not listed in typedefs.list. This might encourage us to
put more effort into typedef name collection; it's not really a bug in
indent itself.
There are more changes coming after this round, having to do with comment
indentation and alignment of lines appearing within parentheses. I wanted
to limit the size of the diffs to something that could be reviewed without
one's eyes completely glazing over, so it seemed better to split up the
changes as much as practical.
Discussion: https://postgr.es/m/[email protected]
Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/timezone/pgtz.h')
-rw-r--r-- | src/timezone/pgtz.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timezone/pgtz.h b/src/timezone/pgtz.h index cd193b82550..f5aec6e5296 100644 --- a/src/timezone/pgtz.h +++ b/src/timezone/pgtz.h @@ -50,7 +50,7 @@ struct state unsigned char types[TZ_MAX_TIMES]; struct ttinfo ttis[TZ_MAX_TYPES]; char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS + 1, 3 /* sizeof gmt */ ), - (2 * (TZ_STRLEN_MAX + 1)))]; + (2 * (TZ_STRLEN_MAX + 1)))]; struct lsinfo lsis[TZ_MAX_LEAPS]; int defaulttype; /* for early times or if no transitions */ }; @@ -68,8 +68,8 @@ struct pg_tz extern int pg_open_tzfile(const char *name, char *canonname); /* in localtime.c */ -extern int tzload(const char *name, char *canonname, struct state * sp, +extern int tzload(const char *name, char *canonname, struct state *sp, bool doextend); -extern bool tzparse(const char *name, struct state * sp, bool lastditch); +extern bool tzparse(const char *name, struct state *sp, bool lastditch); #endif /* _PGTZ_H */ |