Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
df8789bb
Commit
df8789bb
authored
Nov 07, 2000
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Third try. Sorry, I had a wrong path in my copy statement.
parent
c823b1ee
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
8 deletions
+26
-8
src/interfaces/ecpg/preproc/Makefile
src/interfaces/ecpg/preproc/Makefile
+1
-0
src/interfaces/ecpg/preproc/ecpg.c
src/interfaces/ecpg/preproc/ecpg.c
+11
-2
src/interfaces/ecpg/preproc/extern.h
src/interfaces/ecpg/preproc/extern.h
+3
-0
src/interfaces/ecpg/preproc/keywords.c
src/interfaces/ecpg/preproc/keywords.c
+3
-3
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+8
-3
No files found.
src/interfaces/ecpg/preproc/Makefile
View file @
df8789bb
...
...
@@ -9,6 +9,7 @@ PATCHLEVEL=0
override
CPPFLAGS
+=
-I
$(srcdir)
/../include
-DMAJOR_VERSION
=
$(MAJOR_VERSION)
\
-DMINOR_VERSION
=
$(MINOR_VERSION)
-DPATCHLEVEL
=
$(PATCHLEVEL)
\
-DINCLUDE_PATH
=
\"
$(includedir)
\"
# -DYYDEBUG -g
OBJS
=
preproc.o pgc.o type.o ecpg.o ecpg_keywords.o output.o
\
keywords.o c_keywords.o ../lib/typename.o descriptor.o variable.o
...
...
src/interfaces/ecpg/preproc/ecpg.c
View file @
df8789bb
...
...
@@ -22,7 +22,11 @@ static void
usage
(
char
*
progname
)
{
fprintf
(
stderr
,
"ecpg - the postgresql preprocessor, version: %d.%d.%d
\n
"
,
MAJOR_VERSION
,
MINOR_VERSION
,
PATCHLEVEL
);
fprintf
(
stderr
,
"Usage: %s: [-v] [-t] [-I include path] [ -o output file name] [-D define name] file1 [file2] ...
\n
"
,
progname
);
fprintf
(
stderr
,
"Usage: %s: "
#ifdef YYDEBUG
"[-d]"
#endif
" [-v] [-t] [-I include path] [ -o output file name] [-D define name] file1 [file2] ...
\n
"
,
progname
);
}
static
void
...
...
@@ -61,7 +65,7 @@ main(int argc, char *const argv[])
add_include_path
(
"/usr/local/include"
);
add_include_path
(
"."
);
while
((
c
=
getopt
(
argc
,
argv
,
"vo:I:tD:"
))
!=
EOF
)
while
((
c
=
getopt
(
argc
,
argv
,
"vo:I:tD:
d
"
))
!=
EOF
)
{
switch
(
c
)
{
...
...
@@ -84,6 +88,11 @@ main(int argc, char *const argv[])
case
'D'
:
add_preprocessor_define
(
optarg
);
break
;
#ifdef YYDEBUG
case
'd'
:
yydebug
=
1
;
break
;
#endif
default:
usage
(
argv
[
0
]);
return
ILLEGAL_OPTION
;
...
...
src/interfaces/ecpg/preproc/extern.h
View file @
df8789bb
...
...
@@ -19,6 +19,9 @@ extern char *connection;
extern
char
*
input_filename
;
extern
char
*
yytext
,
errortext
[
128
];
#ifdef YYDEBUG
extern
int
yydebug
;
#endif
extern
int
yylineno
,
yyleng
;
extern
FILE
*
yyin
,
...
...
src/interfaces/ecpg/preproc/keywords.c
View file @
df8789bb
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.3
0 2000/09/26 11:41:44
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.3
1 2000/11/07 08:46:27
meskes Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -191,12 +191,12 @@ static ScanKeyword ScanKeywords[] = {
{
"only"
,
ONLY
},
{
"operator"
,
OPERATOR
},
{
"option"
,
OPTION
},
{
"overlaps"
,
OVERLAPS
},
{
"owner"
,
OWNER
},
{
"or"
,
OR
},
{
"order"
,
ORDER
},
{
"out"
,
OUT
},
{
"outer"
,
OUTER_P
},
{
"overlaps"
,
OVERLAPS
},
{
"owner"
,
OWNER
},
{
"partial"
,
PARTIAL
},
{
"password"
,
PASSWORD
},
{
"path"
,
PATH_P
},
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
df8789bb
...
...
@@ -375,6 +375,8 @@ make_name(void)
%type <index> opt_array_bounds opt_type_array_bounds
%type <ival> Iresult
%token YYERROR_VERBOSE
%%
prog: statements;
...
...
@@ -5272,6 +5274,7 @@ c_anything: IDENT { $$ = $1; }
| S_LSHIFT { $$ = make_str("<<"); }
| S_MEMBER { $$ = make_str("->"); }
| S_MEMPOINT { $$ = make_str("->*"); }
| S_MOD { $$ = make_str("%="); }
| S_MUL { $$ = make_str("*="); }
| S_NEQUAL { $$ = make_str("!="); }
| S_OR { $$ = make_str("||"); }
...
...
@@ -5311,7 +5314,9 @@ blockend : '}'
%%
void yyerror(char * error)
{
mmerror(ET_ERROR, error);
void yyerror( char * error)
{ char buf[1024];
snprintf(buf,sizeof buf,"%s at or near \"%s\"",error,yytext);
buf[sizeof(buf)-1]=0;
mmerror(ET_ERROR, buf);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment