Skip to content
Snippets Groups Projects
Commit 2ae7811d authored by Michael Meskes's avatar Michael Meskes
Browse files

Small code cleanup.

Declare static variable as static and external as extern.
parent 98b37437
No related branches found
No related tags found
No related merge requests found
......@@ -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},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment