Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2ae7811d
Commit
2ae7811d
authored
Oct 22, 2014
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code cleanup.
Declare static variable as static and external as extern.
parent
98b37437
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.header
+1
-1
src/interfaces/ecpg/preproc/ecpg_keywords.c
src/interfaces/ecpg/preproc/ecpg_keywords.c
+0
-4
src/interfaces/ecpg/preproc/extern.h
src/interfaces/ecpg/preproc/extern.h
+4
-0
src/interfaces/ecpg/preproc/keywords.c
src/interfaces/ecpg/preproc/keywords.c
+1
-0
No files found.
src/interfaces/ecpg/preproc/ecpg.header
View file @
2ae7811d
...
@@ -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};
st
atic st
ruct ECPGtype ecpg_query = {ECPGt_char_variable, NULL, NULL, NULL, {NULL}, 0};
/*
/*
* Handle parsing errors and warnings
* Handle parsing errors and warnings
...
...
src/interfaces/ecpg/preproc/ecpg_keywords.c
View file @
2ae7811d
...
@@ -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.
*
*
...
...
src/interfaces/ecpg/preproc/extern.h
View file @
2ae7811d
...
@@ -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
);
...
...
src/interfaces/ecpg/preproc/keywords.c
View file @
2ae7811d
...
@@ -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},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment