mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Another pgindent run with updated typedefs.
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.96 2003/08/04 02:40:04 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.97 2003/08/08 21:42:04 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1194,7 +1194,7 @@ array_length_coerce(PG_FUNCTION_ARGS)
|
||||
{
|
||||
Oid elemtype;
|
||||
FmgrInfo coerce_finfo;
|
||||
} alc_extra;
|
||||
} alc_extra;
|
||||
alc_extra *my_extra;
|
||||
FunctionCallInfoData locfcinfo;
|
||||
|
||||
@@ -2036,7 +2036,7 @@ array_map(FunctionCallInfo fcinfo, Oid inpType, Oid retType)
|
||||
{
|
||||
ArrayMetaState inp_extra;
|
||||
ArrayMetaState ret_extra;
|
||||
} am_extra;
|
||||
} am_extra;
|
||||
am_extra *my_extra;
|
||||
ArrayMetaState *inp_extra;
|
||||
ArrayMetaState *ret_extra;
|
||||
@@ -2531,7 +2531,7 @@ array_cmp(FunctionCallInfo fcinfo)
|
||||
char typalign;
|
||||
FmgrInfo eqproc;
|
||||
FmgrInfo ordproc;
|
||||
} ac_extra;
|
||||
} ac_extra;
|
||||
ac_extra *my_extra;
|
||||
|
||||
element_type = ARR_ELEMTYPE(array1);
|
||||
@@ -2896,7 +2896,7 @@ array_type_coerce(PG_FUNCTION_ARGS)
|
||||
Oid srctype;
|
||||
Oid desttype;
|
||||
FmgrInfo coerce_finfo;
|
||||
} atc_extra;
|
||||
} atc_extra;
|
||||
atc_extra *my_extra;
|
||||
FunctionCallInfoData locfcinfo;
|
||||
|
||||
@@ -2989,7 +2989,7 @@ array_type_coerce(PG_FUNCTION_ARGS)
|
||||
* rcontext is where to keep working state
|
||||
*/
|
||||
ArrayBuildState *
|
||||
accumArrayResult(ArrayBuildState * astate,
|
||||
accumArrayResult(ArrayBuildState *astate,
|
||||
Datum dvalue, bool disnull,
|
||||
Oid element_type,
|
||||
MemoryContext rcontext)
|
||||
@@ -3051,7 +3051,7 @@ accumArrayResult(ArrayBuildState * astate,
|
||||
* rcontext is where to construct result
|
||||
*/
|
||||
Datum
|
||||
makeArrayResult(ArrayBuildState * astate,
|
||||
makeArrayResult(ArrayBuildState *astate,
|
||||
MemoryContext rcontext)
|
||||
{
|
||||
int dims[1];
|
||||
@@ -3073,7 +3073,7 @@ makeArrayResult(ArrayBuildState * astate,
|
||||
* rcontext is where to construct result
|
||||
*/
|
||||
Datum
|
||||
makeMdArrayResult(ArrayBuildState * astate,
|
||||
makeMdArrayResult(ArrayBuildState *astate,
|
||||
int ndims,
|
||||
int *dims,
|
||||
int *lbs,
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.112 2003/08/05 18:30:21 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/datetime.c,v 1.113 2003/08/08 21:42:05 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -711,7 +711,7 @@ TrimTrailingZeros(char *str)
|
||||
* *numfields - set to the actual number of fields detected
|
||||
*
|
||||
* The fields extracted from the input are stored as separate, null-terminated
|
||||
* strings in the workspace at lowstr. Any text is converted to lower case.
|
||||
* strings in the workspace at lowstr. Any text is converted to lower case.
|
||||
*
|
||||
* Several field types are assigned:
|
||||
* DTK_NUMBER - digits and (possibly) a decimal point
|
||||
@@ -769,7 +769,7 @@ ParseDateTime(const char *timestr, char *lowstr,
|
||||
else if ((*cp == '-') || (*cp == '/') || (*cp == '.'))
|
||||
{
|
||||
/* save delimiting character to use later */
|
||||
char delim = *cp;
|
||||
char delim = *cp;
|
||||
|
||||
*lp++ = *cp++;
|
||||
/* second field is all digits? then no embedded text month */
|
||||
@@ -833,7 +833,7 @@ ParseDateTime(const char *timestr, char *lowstr,
|
||||
*/
|
||||
if ((*cp == '-') || (*cp == '/') || (*cp == '.'))
|
||||
{
|
||||
char delim = *cp;
|
||||
char delim = *cp;
|
||||
|
||||
ftype[nf] = DTK_DATE;
|
||||
*lp++ = *cp++;
|
||||
@@ -2415,7 +2415,7 @@ DecodeNumber(int flen, char *str, int fmask,
|
||||
|
||||
if (*cp == '.')
|
||||
{
|
||||
double frac;
|
||||
double frac;
|
||||
|
||||
/*
|
||||
* More than two digits before decimal point? Then could be a date
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.47 2003/08/04 00:43:25 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/oracle_compat.c,v 1.48 2003/08/08 21:42:06 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -872,7 +872,7 @@ ascii(PG_FUNCTION_ARGS)
|
||||
********************************************************************/
|
||||
|
||||
Datum
|
||||
chr(PG_FUNCTION_ARGS)
|
||||
chr (PG_FUNCTION_ARGS)
|
||||
{
|
||||
int32 cvalue = PG_GETARG_INT32(0);
|
||||
text *result;
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.48 2003/08/04 02:40:05 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/regexp.c,v 1.49 2003/08/08 21:42:07 momjian Exp $
|
||||
*
|
||||
* Alistair Crooks added the code for the regex caching
|
||||
* agc - cached the regular expressions used - there's a good chance
|
||||
@@ -73,7 +73,7 @@ typedef struct cached_re_str
|
||||
text *cre_pat; /* original RE (untoasted TEXT form) */
|
||||
int cre_flags; /* compile flags: extended,icase etc */
|
||||
regex_t cre_re; /* the compiled regular expression */
|
||||
} cached_re_str;
|
||||
} cached_re_str;
|
||||
|
||||
static int num_res = 0; /* # of cached re's */
|
||||
static cached_re_str re_array[MAX_CACHED_RES]; /* cached re's */
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* back to source text
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.149 2003/08/04 00:43:26 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.150 2003/08/08 21:42:09 momjian Exp $
|
||||
*
|
||||
* This software is copyrighted by Jan Wieck - Hamburg.
|
||||
*
|
||||
@@ -181,15 +181,15 @@ static void get_names_for_var(Var *var, deparse_context *context,
|
||||
char **schemaname, char **refname, char **attname);
|
||||
static RangeTblEntry *find_rte_by_refname(const char *refname,
|
||||
deparse_context *context);
|
||||
static const char *get_simple_binary_op_name(OpExpr * expr);
|
||||
static const char *get_simple_binary_op_name(OpExpr *expr);
|
||||
static bool isSimpleNode(Node *node, Node *parentNode, int prettyFlags);
|
||||
static void appendStringInfoSpaces(StringInfo buf, int count);
|
||||
static void appendContextKeyword(deparse_context *context, const char *str,
|
||||
int indentBefore, int indentAfter, int indentPlus);
|
||||
static void get_rule_expr(Node *node, deparse_context *context,
|
||||
bool showimplicit);
|
||||
static void get_oper_expr(OpExpr * expr, deparse_context *context);
|
||||
static void get_func_expr(FuncExpr * expr, deparse_context *context,
|
||||
static void get_oper_expr(OpExpr *expr, deparse_context *context);
|
||||
static void get_func_expr(FuncExpr *expr, deparse_context *context,
|
||||
bool showimplicit);
|
||||
static void get_agg_expr(Aggref *aggref, deparse_context *context);
|
||||
static Node *strip_type_coercion(Node *expr, Oid resultType);
|
||||
@@ -2439,7 +2439,7 @@ find_rte_by_refname(const char *refname, deparse_context *context)
|
||||
* will return single char binary operator name, or NULL if it's not
|
||||
*/
|
||||
static const char *
|
||||
get_simple_binary_op_name(OpExpr * expr)
|
||||
get_simple_binary_op_name(OpExpr *expr)
|
||||
{
|
||||
List *args = expr->args;
|
||||
|
||||
@@ -3235,7 +3235,7 @@ get_rule_expr(Node *node, deparse_context *context,
|
||||
* get_oper_expr - Parse back an OpExpr node
|
||||
*/
|
||||
static void
|
||||
get_oper_expr(OpExpr * expr, deparse_context *context)
|
||||
get_oper_expr(OpExpr *expr, deparse_context *context)
|
||||
{
|
||||
StringInfo buf = context->buf;
|
||||
Oid opno = expr->opno;
|
||||
@@ -3298,7 +3298,7 @@ get_oper_expr(OpExpr * expr, deparse_context *context)
|
||||
* get_func_expr - Parse back a FuncExpr node
|
||||
*/
|
||||
static void
|
||||
get_func_expr(FuncExpr * expr, deparse_context *context,
|
||||
get_func_expr(FuncExpr *expr, deparse_context *context,
|
||||
bool showimplicit)
|
||||
{
|
||||
StringInfo buf = context->buf;
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.144 2003/08/04 02:40:05 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/selfuncs.c,v 1.145 2003/08/08 21:42:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -2030,7 +2030,7 @@ estimate_num_groups(Query *root, List *groupExprs, double input_rows)
|
||||
{ /* varinfos is a List of these */
|
||||
Var *var;
|
||||
double ndistinct;
|
||||
} MyVarInfo;
|
||||
} MyVarInfo;
|
||||
|
||||
/* We should not be called unless query has GROUP BY (or DISTINCT) */
|
||||
Assert(groupExprs != NIL);
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.91 2003/08/08 00:10:31 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/adt/timestamp.c,v 1.92 2003/08/08 21:42:10 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -1307,11 +1307,12 @@ timestamp_cmp_internal(Timestamp dt1, Timestamp dt2)
|
||||
#ifdef HAVE_INT64_TIMESTAMP
|
||||
return ((dt1 < dt2) ? -1 : ((dt1 > dt2) ? 1 : 0));
|
||||
#else
|
||||
|
||||
/*
|
||||
* When using float representation, we have to be wary of NaNs.
|
||||
*
|
||||
* We consider all NANs to be equal and larger than any non-NAN. This
|
||||
* is somewhat arbitrary; the important thing is to have a consistent
|
||||
* We consider all NANs to be equal and larger than any non-NAN. This is
|
||||
* somewhat arbitrary; the important thing is to have a consistent
|
||||
* sort order.
|
||||
*/
|
||||
if (isnan(dt1))
|
||||
|
||||
Reference in New Issue
Block a user