From 1a003fbcc2ac3dc199cd3f32c054d4a37d30a970 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Fri, 20 Sep 1996 08:34:39 +0000 Subject: [PATCH] Various patches from Bryan that *should* clean up the compile problems ppl are seeing with v2.0 --- src/backend/parser/Makefile.inc | 8 ++++---- src/backend/parser/gram.y | 6 +++--- src/backend/regex/regcomp.c | 11 +++++------ src/backend/regex/regerror.c | 4 ++-- src/backend/regex/regexec.c | 6 +++--- src/backend/regex/regfree.c | 6 +++--- 6 files changed, 20 insertions(+), 21 deletions(-) diff --git a/src/backend/parser/Makefile.inc b/src/backend/parser/Makefile.inc index e5390dd891..03489db1fc 100644 --- a/src/backend/parser/Makefile.inc +++ b/src/backend/parser/Makefile.inc @@ -7,7 +7,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/backend/parser/Attic/Makefile.inc,v 1.2 1996/07/23 02:23:32 scrappy Exp $ +# $Header: /cvsroot/pgsql/src/backend/parser/Attic/Makefile.inc,v 1.3 1996/09/20 08:34:10 scrappy Exp $ # #------------------------------------------------------------------------- @@ -17,9 +17,9 @@ VPATH:= $(VPATH):$(CURDIR)/parser PARSEYACCS= gram.c $(PARSEYACCS): gram.y - cd $(objdir); \ - $(YACC) $(YFLAGS) $<; \ - mv y.tab.c gram.c; \ + cd $(objdir) + $(YACC) $(YFLAGS) $< + mv y.tab.c gram.c mv y.tab.h parse.h $(objdir)/gram.o: gram.c diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y index 601329ffe9..a9b69e9fff 100644 --- a/src/backend/parser/gram.y +++ b/src/backend/parser/gram.y @@ -10,7 +10,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.11 1996/08/28 22:50:21 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 1.12 1996/09/20 08:34:14 scrappy Exp $ * * HISTORY * AUTHOR DATE MAJOR EVENT @@ -122,7 +122,7 @@ static Node *makeA_Expr(int op, char *opname, Node *lexpr, Node *rexpr); %type queryblock, relation_name_list, OptTableElementList, tableElementList, OptInherit, definition, - opt_with_func, opt_with, def_args, def_name_list, func_argtypes, + opt_with_func, def_args, def_name_list, func_argtypes, oper_argtypes, OptStmtList, OptStmtBlock, opt_column_list, columnList, exprList, sort_clause, sortby_list, index_params, name_list, from_clause, from_list, opt_array_bounds, nest_array_bounds, @@ -658,7 +658,7 @@ opt_portal_name: IN name { $$ = $2;} *****************************************************************************/ IndexStmt: CREATE INDEX index_name ON relation_name - access_method_clause '(' index_params ')' opt_with + access_method_clause '(' index_params ')' opt_with_func { /* should check that access_method is valid, etc ... but doesn't */ diff --git a/src/backend/regex/regcomp.c b/src/backend/regex/regcomp.c index 186d6ecff8..88445cd50d 100644 --- a/src/backend/regex/regcomp.c +++ b/src/backend/regex/regcomp.c @@ -47,13 +47,12 @@ static char sccsid[] = "@(#)regcomp.c 8.5 (Berkeley) 3/20/94"; #include #include #include -#include -#include "regex/utils.h" -#include "regex/regex2.h" - -#include "regex/cclass.h" -#include "regex/cname.h" +#include +#include +#include +#include +#include /* * parse structure, passed up and down to avoid global variables and diff --git a/src/backend/regex/regerror.c b/src/backend/regex/regerror.c index 762398b51d..dbfcc25061 100644 --- a/src/backend/regex/regerror.c +++ b/src/backend/regex/regerror.c @@ -47,9 +47,9 @@ static char sccsid[] = "@(#)regerror.c 8.4 (Berkeley) 3/20/94"; #include #include #include -#include -#include "regex/utils.h" +#include +#include /* ========= begin header generated by ./mkh ========= */ #ifdef __cplusplus diff --git a/src/backend/regex/regexec.c b/src/backend/regex/regexec.c index 65fda30ff2..a34f3f8daf 100644 --- a/src/backend/regex/regexec.c +++ b/src/backend/regex/regexec.c @@ -54,10 +54,10 @@ static char sccsid[] = "@(#)regexec.c 8.3 (Berkeley) 3/20/94"; #include #include #include -#include -#include "regex/utils.h" -#include "regex/regex2.h" +#include +#include +#include static int nope = 0; /* for use in asserts; shuts lint up */ diff --git a/src/backend/regex/regfree.c b/src/backend/regex/regfree.c index 73d66079c2..9a7ff5cb5e 100644 --- a/src/backend/regex/regfree.c +++ b/src/backend/regex/regfree.c @@ -44,10 +44,10 @@ static char sccsid[] = "@(#)regfree.c 8.3 (Berkeley) 3/20/94"; #include #include #include -#include -#include "regex/utils.h" -#include "regex/regex2.h" +#include +#include +#include /* - regfree - free everything -- GitLab