Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
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
Esteban Blanc
proview
Commits
d6eaac52
Commit
d6eaac52
authored
Sep 02, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb compile fix for ApDistribute caused by DataRef
parent
7b52584b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
wb/lib/wb/src/wb_gcg.cpp
wb/lib/wb/src/wb_gcg.cpp
+27
-14
No files found.
wb/lib/wb/src/wb_gcg.cpp
View file @
d6eaac52
...
@@ -6918,6 +6918,17 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
...
@@ -6918,6 +6918,17 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
char
output_prefix
;
char
output_prefix
;
char
output_par
[
80
];
char
output_par
[
80
];
char
*
name
;
char
*
name
;
char
cast
[
80
];
switch
(
node
->
ln
.
cid
)
{
case
pwr_cClass_ApDistribute
:
case
pwr_cClass_DpDistribute
:
case
pwr_cClass_IpDistribute
:
strcpy
(
cast
,
"(pwr_tVoid *)"
);
break
;
default:
strcpy
(
cast
,
""
);
}
sts
=
gcg_ref_insert
(
gcgctx
,
node
->
ln
.
oid
,
GCG_PREFIX_REF
,
node
);
sts
=
gcg_ref_insert
(
gcgctx
,
node
->
ln
.
oid
,
GCG_PREFIX_REF
,
node
);
...
@@ -6973,10 +6984,11 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
...
@@ -6973,10 +6984,11 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
gcg_error_msg
(
gcgctx
,
GSX__INV
,
node
);
gcg_error_msg
(
gcgctx
,
GSX__INV
,
node
);
IF_PR
fprintf
(
gcgctx
->
files
[
GCGM1_REF_FILE
],
IF_PR
fprintf
(
gcgctx
->
files
[
GCGM1_REF_FILE
],
"%c%s->%sP =
&%c%s->%s;
\n
"
,
"%c%s->%sP = %s
&%c%s->%s;
\n
"
,
GCG_PREFIX_REF
,
GCG_PREFIX_REF
,
vldh_IdToStr
(
0
,
node
->
ln
.
oid
),
vldh_IdToStr
(
0
,
node
->
ln
.
oid
),
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
,
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
,
cast
,
output_prefix
,
output_prefix
,
output_type
==
GCG_OTYPE_OID
?
output_type
==
GCG_OTYPE_OID
?
vldh_IdToStr
(
1
,
output_attrref
.
Objid
)
:
vldh_IdToStr
(
1
,
output_attrref
.
Objid
)
:
...
@@ -6996,10 +7008,11 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
...
@@ -6996,10 +7008,11 @@ int gcg_comp_m4( gcg_ctx gcgctx, vldh_t_node node)
own object */
own object */
IF_PR
fprintf
(
gcgctx
->
files
[
GCGM1_REF_FILE
],
IF_PR
fprintf
(
gcgctx
->
files
[
GCGM1_REF_FILE
],
"%c%s->%sP =
&%c%s->%s;
\n
"
,
"%c%s->%sP = %s
&%c%s->%s;
\n
"
,
GCG_PREFIX_REF
,
GCG_PREFIX_REF
,
vldh_IdToStr
(
0
,
node
->
ln
.
oid
),
vldh_IdToStr
(
0
,
node
->
ln
.
oid
),
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
,
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
,
cast
,
GCG_PREFIX_REF
,
GCG_PREFIX_REF
,
vldh_IdToStr
(
1
,
node
->
ln
.
oid
),
vldh_IdToStr
(
1
,
node
->
ln
.
oid
),
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
);
bodydef
[
i
].
Par
->
Param
.
Info
.
PgmName
);
...
...
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