Commit 2ae7811d authored by Michael Meskes's avatar Michael Meskes

Small code cleanup.

Declare static variable as static and external as extern.
parent 98b37437
...@@ -59,7 +59,7 @@ static char *forward_name = NULL; ...@@ -59,7 +59,7 @@ static char *forward_name = NULL;
struct ECPGtype ecpg_no_indicator = {ECPGt_NO_INDICATOR, NULL, NULL, NULL, {NULL}, 0}; struct ECPGtype ecpg_no_indicator = {ECPGt_NO_INDICATOR, NULL, NULL, NULL, {NULL}, 0};
struct variable no_indicator = {"no_indicator", &ecpg_no_indicator, 0, NULL}; struct variable no_indicator = {"no_indicator", &ecpg_no_indicator, 0, NULL};
struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0}; static struct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
/* /*
* Handle parsing errors and warnings * Handle parsing errors and warnings
......
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
#include "extern.h" #include "extern.h"
#include "preproc.h" #include "preproc.h"
/* Globals from keywords.c */
extern const ScanKeyword SQLScanKeywords[];
extern const int NumSQLScanKeywords;
/* /*
* List of (keyword-name, keyword-token-value) pairs. * List of (keyword-name, keyword-token-value) pairs.
* *
......
...@@ -58,6 +58,10 @@ extern struct when when_error, ...@@ -58,6 +58,10 @@ extern struct when when_error,
when_warn; when_warn;
extern struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH]; extern struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH];
/* Globals from keywords.c */
extern const ScanKeyword SQLScanKeywords[];
extern const int NumSQLScanKeywords;
/* functions */ /* functions */
extern const char *get_dtype(enum ECPGdtype); extern const char *get_dtype(enum ECPGdtype);
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include "parser/keywords.h" #include "parser/keywords.h"
#include "type.h" #include "type.h"
#include "extern.h"
#include "preproc.h" #include "preproc.h"
#define PG_KEYWORD(a,b,c) {a,b,c}, #define PG_KEYWORD(a,b,c) {a,b,c},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment