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
a0710922
Commit
a0710922
authored
Aug 27, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alignment bugfix class array attributes
parent
5097b8de
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
54 additions
and
48 deletions
+54
-48
src/exe/co_convert/src/cnv_wbltoh.cpp
src/exe/co_convert/src/cnv_wbltoh.cpp
+1
-1
src/exp/inc/src/pwr_class.h
src/exp/inc/src/pwr_class.h
+46
-46
wb/lib/wb/src/wb_vrepced.cpp
wb/lib/wb/src/wb_vrepced.cpp
+4
-1
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+3
-0
No files found.
src/exe/co_convert/src/cnv_wbltoh.cpp
View file @
a0710922
...
@@ -178,7 +178,7 @@ int CnvWblToH::body_exec()
...
@@ -178,7 +178,7 @@ int CnvWblToH::body_exec()
char
struct_name
[
80
];
char
struct_name
[
80
];
attr_count
=
0
;
attr_count
=
0
;
attr_next_alignlw
=
0
;
attr_next_alignlw
=
1
;
// Align first attribute on longword
if
(
strcmp
(
CnvCtx
::
low
(
ctx
->
rw
->
body_name
),
"devbody"
)
==
0
)
{
if
(
strcmp
(
CnvCtx
::
low
(
ctx
->
rw
->
body_name
),
"devbody"
)
==
0
)
{
if
(
ctx
->
hpp
)
if
(
ctx
->
hpp
)
...
...
src/exp/inc/src/pwr_class.h
View file @
a0710922
This diff is collapsed.
Click to expand it.
wb/lib/wb/src/wb_vrepced.cpp
View file @
a0710922
...
@@ -2026,6 +2026,9 @@ bool wb_vrepced::buildClass( pwr_tStatus *sts, wb_orep *co)
...
@@ -2026,6 +2026,9 @@ bool wb_vrepced::buildClass( pwr_tStatus *sts, wb_orep *co)
ao
=
next_ao
;
ao
=
next_ao
;
}
}
// Align body size on longword
offset
=
pwr_AlignLW
(
offset
);
// Store data in Body object
// Store data in Body object
m_vrep
->
writeAttribute
(
sts
,
bo
,
pwr_eBix_sys
,
offsetof
(
pwr_sObjBodyDef
,
Size
),
m_vrep
->
writeAttribute
(
sts
,
bo
,
pwr_eBix_sys
,
offsetof
(
pwr_sObjBodyDef
,
Size
),
sizeof
(
offset
),
&
offset
);
sizeof
(
offset
),
&
offset
);
...
@@ -2577,7 +2580,7 @@ void wb_vrepced::printStructFile( bool hpp)
...
@@ -2577,7 +2580,7 @@ void wb_vrepced::printStructFile( bool hpp)
}
}
bool
attr_found
=
false
;
bool
attr_found
=
false
;
int
attr_next_alignlw
=
0
;
int
attr_next_alignlw
=
1
;
// Align first attribute on longword
for
(
o_adef
=
o_bdef
->
first
(
&
sts
);
ODD
(
sts
);)
{
for
(
o_adef
=
o_bdef
->
first
(
&
sts
);
ODD
(
sts
);)
{
o_adef
->
ref
();
o_adef
->
ref
();
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
a0710922
...
@@ -868,6 +868,9 @@ void wb_wblnode::buildObjBodyDef( ref_wblnode classdef)
...
@@ -868,6 +868,9 @@ void wb_wblnode::buildObjBodyDef( ref_wblnode classdef)
child
->
buildBuffer
(
classdef
,
this
,
&
index
,
&
o
->
b
.
size
);
child
->
buildBuffer
(
classdef
,
this
,
&
index
,
&
o
->
b
.
size
);
child
=
child
->
o
->
fws
;
child
=
child
->
o
->
fws
;
}
}
// Align body size on longword
o
->
b
.
size
=
pwr_AlignLW
(
o
->
b
.
size
);
((
pwr_sObjBodyDef
*
)
o
->
rbody
)
->
Size
=
o
->
b
.
size
;
((
pwr_sObjBodyDef
*
)
o
->
rbody
)
->
Size
=
o
->
b
.
size
;
((
pwr_sObjBodyDef
*
)
o
->
rbody
)
->
NumOfParams
=
index
;
((
pwr_sObjBodyDef
*
)
o
->
rbody
)
->
NumOfParams
=
index
;
}
}
...
...
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