Small code cleanup.

Declare static variable as static and external as extern.
This commit is contained in:
Michael Meskes 2014-10-22 10:35:36 +02:00
parent 98b3743779
commit 2ae7811db8
4 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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.
*

View File

@ -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);

View File

@ -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},