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
10ecc0d5
Commit
10ecc0d5
authored
Jan 04, 2012
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made code in ecpg better readable.
parent
54a622ca
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
65 deletions
+67
-65
src/interfaces/ecpg/preproc/ecpg.header
src/interfaces/ecpg/preproc/ecpg.header
+47
-45
src/interfaces/ecpg/test/expected/preproc-outofscope.c
src/interfaces/ecpg/test/expected/preproc-outofscope.c
+20
-20
No files found.
src/interfaces/ecpg/preproc/ecpg.header
View file @
10ecc0d5
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/test/expected/preproc-outofscope.c
View file @
10ecc0d5
...
@@ -202,16 +202,16 @@ static void
...
@@ -202,16 +202,16 @@ static void
open_cur1
(
void
)
open_cur1
(
void
)
{
{
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"declare mycur cursor for select * from a1"
,
ECPGt_EOIT
,
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"declare mycur cursor for select * from a1"
,
ECPGt_EOIT
,
ECPGt_int
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
t
),(
long
)
64
,(
long
)
1
,(
64
)
*
sizeof
(
char
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
t
),(
long
)
64
,(
long
)
1
,(
64
)
*
sizeof
(
char
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
t
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
t
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
c
),(
long
)
30
,(
long
)
1
,(
30
)
*
sizeof
(
char
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
c
),(
long
)
30
,(
long
)
1
,(
30
)
*
sizeof
(
char
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
c
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_EORT
);
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
c
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_EORT
);
#line 40 "outofscope.pgc"
#line 40 "outofscope.pgc"
if
(
sqlca
.
sqlcode
<
0
)
exit
(
1
);}
if
(
sqlca
.
sqlcode
<
0
)
exit
(
1
);}
...
@@ -226,16 +226,16 @@ static void
...
@@ -226,16 +226,16 @@ static void
get_record1
(
void
)
get_record1
(
void
)
{
{
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"fetch mycur"
,
ECPGt_EOIT
,
{
ECPGdo
(
__LINE__
,
0
,
1
,
NULL
,
0
,
ECPGst_normal
,
"fetch mycur"
,
ECPGt_EOIT
,
ECPGt_int
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
id
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
t
),(
long
)
64
,(
long
)
1
,(
64
)
*
sizeof
(
char
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
t
),(
long
)
64
,(
long
)
1
,(
64
)
*
sizeof
(
char
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
t
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
t
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
d1
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_double
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
double
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
d2
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))).
c
),(
long
)
30
,(
long
)
1
,(
30
)
*
sizeof
(
char
),
ECPGt_char
,
&
((
*
(
MYTYPE
*
)(
ECPGget_var
(
0
))
).
c
),(
long
)
30
,(
long
)
1
,(
30
)
*
sizeof
(
char
),
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))).
c
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_EORT
);
ECPGt_int
,
&
((
*
(
MYNULLTYPE
*
)(
ECPGget_var
(
1
))
).
c
),(
long
)
1
,(
long
)
1
,
sizeof
(
int
),
ECPGt_EORT
);
#line 49 "outofscope.pgc"
#line 49 "outofscope.pgc"
if
(
sqlca
.
sqlcode
<
0
)
exit
(
1
);}
if
(
sqlca
.
sqlcode
<
0
)
exit
(
1
);}
...
...
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