Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
388008cd
Commit
388008cd
authored
23 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
Fixed dumping of structs without indicators.
parent
b7579d62
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/interfaces/ecpg/ChangeLog
+4
-0
4 additions, 0 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/preproc/type.c
+13
-5
13 additions, 5 deletions
src/interfaces/ecpg/preproc/type.c
with
17 additions
and
5 deletions
src/interfaces/ecpg/ChangeLog
+
4
−
0
View file @
388008cd
...
...
@@ -1150,5 +1150,9 @@ Fri Nov 2 16:16:25 CET 2001
Wed Nov 14 11:50:27 CET 2001
- Added several patches by Christof Petig <christof.petig@wtal.de>.
Tue Dec 4 13:30:32 CET 2001
- Fixed dumping of structures without indicators.
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/preproc/type.c
+
13
−
5
View file @
388008cd
...
...
@@ -2,6 +2,8 @@
#include
"extern.h"
struct
ECPGstruct_member
struct_no_indicator
=
{
"no_indicator"
,
&
ecpg_no_indicator
,
NULL
};
/* malloc + error check */
void
*
mm_alloc
(
size_t
size
)
...
...
@@ -374,15 +376,21 @@ ECPGdump_a_struct(FILE *o, const char *name, const char *ind_name, long arrsiz,
sprintf
(
pbuf
,
"%s%s."
,
prefix
?
prefix
:
""
,
name
);
prefix
=
pbuf
;
sprintf
(
ind_pbuf
,
"%s%s."
,
ind_prefix
?
ind_prefix
:
""
,
ind_name
);
ind_prefix
=
ind_pbuf
;
if
(
ind_typ
!=
NULL
)
if
(
ind_typ
==
&
ecpg_no_indicator
)
{
ind_p
=
&
struct_no_indicator
;
}
else
if
(
ind_typ
!=
NULL
)
{
sprintf
(
ind_pbuf
,
"%s%s."
,
ind_prefix
?
ind_prefix
:
""
,
ind_name
);
ind_prefix
=
ind_pbuf
;
ind_p
=
ind_typ
->
u
.
members
;
}
for
(
p
=
typ
->
u
.
members
;
p
;
p
=
p
->
next
)
{
ECPGdump_a_type
(
o
,
p
->
name
,
p
->
typ
,
(
ind_p
!=
NULL
)
?
ind_p
->
name
:
NULL
,
(
ind_p
!=
NULL
)
?
ind_p
->
typ
:
NULL
,
prefix
,
ind_prefix
);
if
(
ind_p
!=
NULL
)
if
(
ind_p
!=
NULL
&&
ind_p
!=
&
struct_no_indicator
)
ind_p
=
ind_p
->
next
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment