diff options
| author | Bruce Momjian <bruce@momjian.us> | 1998-01-20 05:05:08 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 1998-01-20 05:05:08 +0000 |
| commit | 412a5e653949b930d03056da73afca3c505a80f5 (patch) | |
| tree | 34e0449e1a5f121775007fe3f106d8c39ca0cc18 /src/include | |
| parent | 8700377384b42ce1d3aeba82fcf6d73a7ff880bb (diff) | |
| download | postgresql-412a5e653949b930d03056da73afca3c505a80f5.tar.gz | |
Parser cleanup.
Add lock to i386 asm.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/parser/parse_agg.h | 3 | ||||
| -rw-r--r-- | src/include/parser/parse_expr.h | 4 | ||||
| -rw-r--r-- | src/include/parser/parse_func.h | 6 | ||||
| -rw-r--r-- | src/include/parser/parse_relation.h | 3 | ||||
| -rw-r--r-- | src/include/storage/s_lock.h | 4 | ||||
| -rw-r--r-- | src/include/utils/lsyscache.h | 3 |
6 files changed, 11 insertions, 12 deletions
diff --git a/src/include/parser/parse_agg.h b/src/include/parser/parse_agg.h index 8d1e0fb31f..1381f14f8c 100644 --- a/src/include/parser/parse_agg.h +++ b/src/include/parser/parse_agg.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_agg.h,v 1.4 1998/01/04 04:31:39 momjian Exp $ + * $Id: parse_agg.h,v 1.5 1998/01/20 05:04:41 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -19,7 +19,6 @@ #include <parser/parse_node.h> extern void AddAggToParseState(ParseState *pstate, Aggreg *aggreg); -extern void finalizeAggregates(ParseState *pstate, Query *qry); extern void parseCheckAggregates(ParseState *pstate, Query *qry); extern Aggreg *ParseAgg(ParseState *pstate, char *aggname, Oid basetype, List *target, int precedence); diff --git a/src/include/parser/parse_expr.h b/src/include/parser/parse_expr.h index 42cbe9c461..b328cc5e5c 100644 --- a/src/include/parser/parse_expr.h +++ b/src/include/parser/parse_expr.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_expr.h,v 1.5 1998/01/16 23:21:01 momjian Exp $ + * $Id: parse_expr.h,v 1.6 1998/01/20 05:04:47 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -21,8 +21,6 @@ extern Node *transformExpr(ParseState *pstate, Node *expr, int precedence); extern Node *transformIdent(ParseState *pstate, Node *expr, int precedence); extern Oid exprType(Node *expr); -extern Node *handleNestedDots(ParseState *pstate, Attr *attr, - int *curr_resno, int precedence); extern Node *parser_typecast2(Node *expr, Oid exprType, Type tp, int attypmod); #endif /* PARSE_EXPR_H */ diff --git a/src/include/parser/parse_func.h b/src/include/parser/parse_func.h index 12d6ba16b8..0a360df86a 100644 --- a/src/include/parser/parse_func.h +++ b/src/include/parser/parse_func.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_func.h,v 1.4 1998/01/04 04:31:42 momjian Exp $ + * $Id: parse_func.h,v 1.5 1998/01/20 05:04:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -42,7 +42,9 @@ typedef struct _CandidateList struct _CandidateList *next; } *CandidateList; -extern Node *ParseFunc(ParseState *pstate, char *funcname, List *fargs, +extern Node *ParseNestedFuncOrColumn(ParseState *pstate, Attr *attr, + int *curr_resno, int precedence); +extern Node *ParseFuncOrColumn(ParseState *pstate, char *funcname, List *fargs, int *curr_resno, int precedence); extern void func_error(char *caller, char *funcname, int nargs, Oid *argtypes); diff --git a/src/include/parser/parse_relation.h b/src/include/parser/parse_relation.h index e379b92932..eab72589ff 100644 --- a/src/include/parser/parse_relation.h +++ b/src/include/parser/parse_relation.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: parse_relation.h,v 1.4 1998/01/04 04:31:43 momjian Exp $ + * $Id: parse_relation.h,v 1.5 1998/01/20 05:04:56 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -32,7 +32,6 @@ extern List *expandAll(ParseState *pstate, char *relname, char *refname, int *this_resno); extern int attnameAttNum(Relation rd, char *a); extern bool attnameIsSet(Relation rd, char *name); -extern char *attnumAttName(Relation rd, int attrno); extern int attnumAttNelems(Relation rd, int attid); extern Oid attnumTypeId(Relation rd, int attid); extern void handleTargetColname(ParseState *pstate, char **resname, diff --git a/src/include/storage/s_lock.h b/src/include/storage/s_lock.h index 6110738232..aa30c755bd 100644 --- a/src/include/storage/s_lock.h +++ b/src/include/storage/s_lock.h @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.18 1998/01/19 05:48:55 momjian Exp $ + * $Header: /cvsroot/pgsql/src/include/storage/s_lock.h,v 1.19 1998/01/20 05:05:02 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -315,7 +315,7 @@ again: slock_t _res; \ do \ { \ - __asm__("xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(0x1)); \ + __asm__("lock; xchgb %0,%1": "=q"(_res), "=m"(*lock):"0"(0x1)); \ } while (_res != 0); \ } while (0) #endif diff --git a/src/include/utils/lsyscache.h b/src/include/utils/lsyscache.h index ca07a4a25c..205e9cf437 100644 --- a/src/include/utils/lsyscache.h +++ b/src/include/utils/lsyscache.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: lsyscache.h,v 1.6 1997/09/08 21:55:11 momjian Exp $ + * $Id: lsyscache.h,v 1.7 1998/01/20 05:05:08 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -21,6 +21,7 @@ extern char *get_attname(Oid relid, AttrNumber attnum); extern AttrNumber get_attnum(Oid relid, char *attname); extern Oid get_atttype(Oid relid, AttrNumber attnum); extern bool get_attisset(Oid relid, char *attname); +extern int get_atttypmod(Oid relid, AttrNumber attnum); extern RegProcedure get_opcode(Oid opid); extern char *get_opname(Oid opid); extern bool |
