mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Phase 2 pgindent run for v12.
Switch to 2.1 version of pg_bsd_indent. This formats multiline function declarations "correctly", that is with additional lines of parameter declarations indented to match where the first line's left parenthesis is. Discussion: https://postgr.es/m/CAEepm=0P3FeTXRcU5B2W3jv3PgRVZ-kGUXLGfd42FFhUROO3ug@mail.gmail.com
This commit is contained in:
@ -968,15 +968,15 @@ typedef struct NUMProc
|
||||
* ----------
|
||||
*/
|
||||
static const KeyWord *index_seq_search(const char *str, const KeyWord *kw,
|
||||
const int *index);
|
||||
const int *index);
|
||||
static const KeySuffix *suff_search(const char *str, const KeySuffix *suf, int type);
|
||||
static bool is_separator_char(const char *str);
|
||||
static void NUMDesc_prepare(NUMDesc *num, FormatNode *n);
|
||||
static void parse_format(FormatNode *node, const char *str, const KeyWord *kw,
|
||||
const KeySuffix *suf, const int *index, int ver, NUMDesc *Num);
|
||||
const KeySuffix *suf, const int *index, int ver, NUMDesc *Num);
|
||||
|
||||
static void DCH_to_char(FormatNode *node, bool is_interval,
|
||||
TmToChar *in, char *out, Oid collid);
|
||||
TmToChar *in, char *out, Oid collid);
|
||||
static void DCH_from_char(FormatNode *node, char *in, TmFromChar *out);
|
||||
|
||||
#ifdef DEBUG_TO_FROM_CHAR
|
||||
@ -995,7 +995,7 @@ static int from_char_parse_int(int *dest, char **src, FormatNode *node);
|
||||
static int seq_search(char *name, const char *const *array, int type, int max, int *len);
|
||||
static int from_char_seq_search(int *dest, char **src, const char *const *array, int type, int max, FormatNode *node);
|
||||
static void do_to_timestamp(text *date_txt, text *fmt,
|
||||
struct pg_tm *tm, fsec_t *fsec);
|
||||
struct pg_tm *tm, fsec_t *fsec);
|
||||
static char *fill_str(char *str, int c, int max);
|
||||
static FormatNode *NUM_cache(int len, NUMDesc *Num, text *pars_str, bool *shouldFree);
|
||||
static char *int_to_roman(int number);
|
||||
@ -1004,8 +1004,8 @@ static char *get_last_relevant_decnum(char *num);
|
||||
static void NUM_numpart_from_char(NUMProc *Np, int id, int input_len);
|
||||
static void NUM_numpart_to_char(NUMProc *Np, int id);
|
||||
static char *NUM_processor(FormatNode *node, NUMDesc *Num, char *inout,
|
||||
char *number, int input_len, int to_char_out_pre_spaces,
|
||||
int sign, bool is_to_char, Oid collid);
|
||||
char *number, int input_len, int to_char_out_pre_spaces,
|
||||
int sign, bool is_to_char, Oid collid);
|
||||
static DCHCacheEntry *DCH_cache_getnew(const char *str);
|
||||
static DCHCacheEntry *DCH_cache_search(const char *str);
|
||||
static DCHCacheEntry *DCH_cache_fetch(const char *str);
|
||||
|
Reference in New Issue
Block a user