diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-08-11 18:33:37 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-08-11 18:33:37 +0000 |
commit | c6dd1e63a951ba4b529ed292f88fba28de70df78 (patch) | |
tree | fa342f405c3a3bacd02f038f6043b1f39d78f623 /src/interfaces/ecpg/preproc/extern.h | |
parent | 79c8d2e3a0966b49af2a2cab44628d2f963d46fd (diff) |
This one cleans the cursor problems ecpg had so far. It is now able
to understand cursors with variables.
Michael
Diffstat (limited to 'src/interfaces/ecpg/preproc/extern.h')
-rw-r--r-- | src/interfaces/ecpg/preproc/extern.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h index d2eec0c0978..43a15394af3 100644 --- a/src/interfaces/ecpg/preproc/extern.h +++ b/src/interfaces/ecpg/preproc/extern.h @@ -16,6 +16,15 @@ struct _include_path { char * path; extern struct _include_path *include_paths; +struct cursor { char *name; + char *command; + struct arguments * argsinsert; + struct arguments * argsresult; + struct cursor *next; + }; + +extern struct cursor *cur; + /* This is a linked list of the variable names and types. */ struct variable { @@ -28,6 +37,15 @@ struct variable extern struct ECPGtype ecpg_no_indicator; extern struct variable no_indicator; +struct arguments { + struct variable * variable; + struct variable * indicator; + struct arguments * next; +}; + +extern struct arguments * argsinsert; +extern struct arguments * argsresult; + /* functions */ extern void lex_init(void); |