Small code cleanup.

Declare static variable as static and external as extern.
pull/14/head
Michael Meskes 11 years ago
parent 98b3743779
commit 2ae7811db8
  1. 2
      src/interfaces/ecpg/preproc/ecpg.header
  2. 4
      src/interfaces/ecpg/preproc/ecpg_keywords.c
  3. 4
      src/interfaces/ecpg/preproc/extern.h
  4. 1
      src/interfaces/ecpg/preproc/keywords.c

@ -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…
Cancel
Save