mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +03:00
Consistently use named parameters in timezone code.
Make our copy of the IANA timezone library use named parameters in function declarations. Also make sure that parameter names from each function's declaration match corresponding definition parameter names. This makes the timezone code follow Postgres coding standards. The value of having a consistent standard everywhere seems to outweigh the cost of keeping the function declarations in sync with future IANA releases. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
This commit is contained in:
@@ -111,11 +111,11 @@ enum warn
|
||||
IN_NONE, IN_SOME, IN_THIS, IN_ALL
|
||||
};
|
||||
|
||||
static char *_add(const char *, char *, const char *);
|
||||
static char *_conv(int, const char *, char *, const char *);
|
||||
static char *_fmt(const char *, const struct pg_tm *, char *, const char *,
|
||||
enum warn *);
|
||||
static char *_yconv(int, int, bool, bool, char *, char const *);
|
||||
static char *_add(const char *str, char *pt, const char *ptlim);
|
||||
static char *_conv(int n, const char *format, char *pt, const char *ptlim);
|
||||
static char *_fmt(const char *format, const struct pg_tm *t, char *pt, const char *ptlim,
|
||||
enum warn *warnp);
|
||||
static char *_yconv(int a, int b, bool convert_top, bool convert_yy, char *pt, char const *ptlim);
|
||||
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user