summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc/extern.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-11-13 13:04:15 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-11-13 13:04:15 -0500
commit4766bcd9e292befba403619c8a57b3528ad3bd4b (patch)
tree7be379c8d5004d1292af4f60cbce6254a8584e5d /src/interfaces/ecpg/preproc/extern.h
parentec937d0805b205e5b33ed4f3cb54f40230a826e3 (diff)
Remove unused code in ECPG.
scanner_init/scanner_finish weren't actually called from anywhere, and the scanbuf variables they set up weren't used either. Remove unused declaration for mm_realloc, too. John Naylor Discussion: https://postgr.es/m/CAJVSVGWGqY9YBs2EwtRUkbNv=hXkN8yRPOoD1wxE6COgvvrz5g@mail.gmail.com
Diffstat (limited to 'src/interfaces/ecpg/preproc/extern.h')
-rw-r--r--src/interfaces/ecpg/preproc/extern.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/interfaces/ecpg/preproc/extern.h b/src/interfaces/ecpg/preproc/extern.h
index d0c4e470166..aef65657da2 100644
--- a/src/interfaces/ecpg/preproc/extern.h
+++ b/src/interfaces/ecpg/preproc/extern.h
@@ -76,7 +76,7 @@ extern char *hashline_number(void);
extern int base_yyparse(void);
extern int base_yylex(void);
extern void base_yyerror(const char *);
-extern void *mm_alloc(size_t), *mm_realloc(void *, size_t);
+extern void *mm_alloc(size_t);
extern char *mm_strdup(const char *);
extern void mmerror(int errorcode, enum errortype type, const char *error,...) pg_attribute_printf(3, 4);
extern void mmfatal(int errorcode, const char *error,...) pg_attribute_printf(2, 3) pg_attribute_noreturn();
@@ -105,9 +105,7 @@ extern void remove_variables(int);
extern struct variable *new_variable(const char *, struct ECPGtype *, int);
extern const ScanKeyword *ScanCKeywordLookup(const char *);
extern const ScanKeyword *ScanECPGKeywordLookup(const char *text);
-extern void scanner_init(const char *);
extern void parser_init(void);
-extern void scanner_finish(void);
extern int filtered_base_yylex(void);
/* return codes */