Small code cleanup.
Declare static variable as static and external as extern.
This commit is contained in:
parent
98b3743779
commit
2ae7811db8
@ -59,7 +59,7 @@ static char *forward_name = NULL;
|
||||
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 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
|
||||
|
@ -16,10 +16,6 @@
|
||||
#include "extern.h"
|
||||
#include "preproc.h"
|
||||
|
||||
/* Globals from keywords.c */
|
||||
extern const ScanKeyword SQLScanKeywords[];
|
||||
extern const int NumSQLScanKeywords;
|
||||
|
||||
/*
|
||||
* List of (keyword-name, keyword-token-value) pairs.
|
||||
*
|
||||
|
@ -58,6 +58,10 @@ extern struct when when_error,
|
||||
when_warn;
|
||||
extern struct ECPGstruct_member *struct_member_list[STRUCT_DEPTH];
|
||||
|
||||
/* Globals from keywords.c */
|
||||
extern const ScanKeyword SQLScanKeywords[];
|
||||
extern const int NumSQLScanKeywords;
|
||||
|
||||
/* functions */
|
||||
|
||||
extern const char *get_dtype(enum ECPGdtype);
|
||||
|
@ -17,6 +17,7 @@
|
||||
|
||||
#include "parser/keywords.h"
|
||||
#include "type.h"
|
||||
#include "extern.h"
|
||||
#include "preproc.h"
|
||||
|
||||
#define PG_KEYWORD(a,b,c) {a,b,c},
|
||||
|
Loading…
x
Reference in New Issue
Block a user