mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Another pgindent run. Fixes enum indenting, and improves #endif
spacing. Also adds space for one-line comments.
This commit is contained in:
@ -6,4 +6,5 @@ extern unsigned int crc32_sz(char *buf, int size);
|
||||
|
||||
/* Returns crc32 of null-terminated string */
|
||||
#define crc32(buf) crc32_sz((buf),strlen(buf))
|
||||
|
||||
#endif
|
||||
|
@ -25,4 +25,5 @@
|
||||
#define FILEPATH 19
|
||||
|
||||
extern const char *descr[];
|
||||
|
||||
#endif
|
||||
|
@ -62,4 +62,5 @@ typedef struct
|
||||
#define GETSIGN(x) ( (BITVECP)( (char*)x+GTHDRSIZE ) )
|
||||
#define GETARR(x) ( (int4*)( (char*)x+GTHDRSIZE ) )
|
||||
#define ARRNELEM(x) ( ( ((GISTTYPE*)x)->len - GTHDRSIZE )/sizeof(int4) )
|
||||
|
||||
#endif
|
||||
|
@ -6,4 +6,5 @@ void initmorph(void);
|
||||
char *lemmatize(char *word, int *len, int type);
|
||||
|
||||
bool is_stoptype(int type);
|
||||
|
||||
#endif
|
||||
|
@ -7,4 +7,5 @@ int tsearch_yylex(void);
|
||||
void start_parse_str(char *, int);
|
||||
void start_parse_fh(FILE *, int);
|
||||
void end_parse(void);
|
||||
|
||||
#endif
|
||||
|
@ -104,7 +104,7 @@ gettoken_query(QPRS_STATE * state, int4 *val, int4 *lenval, char **strval)
|
||||
{
|
||||
switch (state->state)
|
||||
{
|
||||
case WAITOPERAND:
|
||||
case WAITOPERAND:
|
||||
if (*(state->buf) == '!')
|
||||
{
|
||||
(state->buf)++;
|
||||
@ -408,7 +408,7 @@ rexecqtxt(PG_FUNCTION_ARGS)
|
||||
execqtxt,
|
||||
PG_GETARG_DATUM(1),
|
||||
PG_GETARG_DATUM(0)
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
Datum
|
||||
|
@ -48,4 +48,5 @@ typedef struct
|
||||
|
||||
bool execute(ITEM * curitem, void *checkval,
|
||||
bool calcnot, bool (*chkcond) (void *checkval, ITEM * val));
|
||||
|
||||
#endif
|
||||
|
@ -3,4 +3,5 @@
|
||||
|
||||
ITEM *clean_NOT(ITEM * ptr, int4 *len);
|
||||
ITEM *clean_fakeval(ITEM * ptr, int4 *len);
|
||||
|
||||
#endif
|
||||
|
@ -327,7 +327,7 @@ typedef struct
|
||||
{
|
||||
uint16 len;
|
||||
char *word;
|
||||
} WORD;
|
||||
} WORD;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
@ -402,7 +402,7 @@ compareWORD(const void *a, const void *b)
|
||||
}
|
||||
|
||||
static int
|
||||
uniqueWORD(WORD * a, int4 l)
|
||||
uniqueWORD(WORD *a, int4 l)
|
||||
{
|
||||
WORD *ptr,
|
||||
*res;
|
||||
|
@ -44,4 +44,5 @@ typedef struct
|
||||
} TI_IN_STATE;
|
||||
|
||||
int4 gettoken_txtidx(TI_IN_STATE * state);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user