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
Hide 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
...
@@ -583,7 +583,7 @@ struct pwr_s_ParGraph {
...
@@ -583,7 +583,7 @@ struct pwr_s_ParGraph {
struct
pwr_s_ParInfo
{
struct
pwr_s_ParInfo
{
pwr_tPgmName
PgmName
;
/* Name to be used in program. */
pwr_tPgmName
PgmName
pwr_dAlignW
;
/* Name to be used in program. */
pwr_eType
Type
pwr_dAlignW
;
/* Compiled system type. */
pwr_eType
Type
pwr_dAlignW
;
/* Compiled system type. */
pwr_tUInt32
Offset
pwr_dAlignW
;
/* Compiled offset in body. */
pwr_tUInt32
Offset
pwr_dAlignW
;
/* Compiled offset in body. */
pwr_tUInt32
Size
pwr_dAlignW
;
/* Compiled size, number of bytes. */
pwr_tUInt32
Size
pwr_dAlignW
;
/* Compiled size, number of bytes. */
...
@@ -750,34 +750,34 @@ union pwr_m_Adef {
...
@@ -750,34 +750,34 @@ union pwr_m_Adef {
#define PWR_MASK_NEWATTRIBUTE pwr_mAdef_newattribute
#define PWR_MASK_NEWATTRIBUTE pwr_mAdef_newattribute
struct
pwr_s_Param
{
struct
pwr_s_Param
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
the type. */
the type. */
};
};
struct
pwr_s_Intern
{
struct
pwr_s_Intern
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
the type. */
the type. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
};
};
struct
pwr_s_Input
{
struct
pwr_s_Input
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
the type. */
the type. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
};
};
struct
pwr_s_Output
{
struct
pwr_s_Output
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
pwr_tTypeId
TypeRef
pwr_dAlignW
;
/* Reference to the object defining
the type. */
the type. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
pwr_sParGraph
Graph
pwr_dAlignW
;
/* Used by graphic editor. */
};
};
struct
pwr_s_AttrXRef
{
struct
pwr_s_AttrXRef
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tXRef
Identity
pwr_dAlignW
;
/* A name to identify a cross
pwr_tXRef
Identity
pwr_dAlignW
;
/* A name to identify a cross
reference. */
reference. */
pwr_tXRef
Source
pwr_dAlignW
;
pwr_tXRef
Source
pwr_dAlignW
;
...
@@ -786,7 +786,7 @@ struct pwr_s_AttrXRef {
...
@@ -786,7 +786,7 @@ struct pwr_s_AttrXRef {
};
};
struct
pwr_s_ObjXRef
{
struct
pwr_s_ObjXRef
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_tXRef
Identity
pwr_dAlignW
;
/* A name to identify a cross
pwr_tXRef
Identity
pwr_dAlignW
;
/* A name to identify a cross
reference. */
reference. */
pwr_tXRef
Source
pwr_dAlignW
;
pwr_tXRef
Source
pwr_dAlignW
;
...
@@ -797,7 +797,7 @@ struct pwr_s_ObjXRef {
...
@@ -797,7 +797,7 @@ struct pwr_s_ObjXRef {
};
};
struct
pwr_s_Buffer
{
struct
pwr_s_Buffer
{
pwr_sParInfo
Info
;
pwr_sParInfo
Info
pwr_dAlignLW
;
pwr_eClass
Class
pwr_dAlignW
;
/* The system class defining the
pwr_eClass
Class
pwr_dAlignW
;
/* The system class defining the
data stored here. */
data stored here. */
};
};
...
@@ -815,13 +815,13 @@ union pwr_u_ParDef {
...
@@ -815,13 +815,13 @@ union pwr_u_ParDef {
};
};
struct
pwr_s_Bit
{
struct
pwr_s_Bit
{
pwr_tString80
Text
;
pwr_tString80
Text
pwr_dAlignLW
;
pwr_tString32
PgmName
pwr_dAlignW
;
pwr_tString32
PgmName
pwr_dAlignW
;
pwr_tUInt32
Value
pwr_dAlignW
;
pwr_tUInt32
Value
pwr_dAlignW
;
};
};
struct
pwr_s_Value
{
struct
pwr_s_Value
{
pwr_tString80
Text
;
pwr_tString80
Text
pwr_dAlignLW
;
pwr_tString32
PgmName
pwr_dAlignW
;
pwr_tString32
PgmName
pwr_dAlignW
;
pwr_tInt32
Value
pwr_dAlignW
;
pwr_tInt32
Value
pwr_dAlignW
;
};
};
...
@@ -831,14 +831,14 @@ struct pwr_s_Value {
...
@@ -831,14 +831,14 @@ struct pwr_s_Value {
This section defines the classes to use when defining methods. */
This section defines the classes to use when defining methods. */
struct
pwr_s_DbCallBack
{
struct
pwr_s_DbCallBack
{
pwr_tString80
MethodName
;
pwr_tString80
MethodName
pwr_dAlignLW
;
pwr_tString40
MethodArguments
[
5
]
pwr_dAlignW
;
pwr_tString40
MethodArguments
[
5
]
pwr_dAlignW
;
pwr_tStatus
(
*
Method
)()
pwr_dAlignLW
;
/* Address to method. */
pwr_tStatus
(
*
Method
)()
pwr_dAlignLW
;
/* Address to method. */
pwr_tUInt32
Flags
pwr_dAlignW
;
pwr_tUInt32
Flags
pwr_dAlignW
;
};
};
struct
pwr_s_Method
{
struct
pwr_s_Method
{
pwr_tString80
MethodName
;
pwr_tString80
MethodName
pwr_dAlignLW
;
pwr_tString40
MethodArguments
[
5
]
pwr_dAlignW
;
pwr_tString40
MethodArguments
[
5
]
pwr_dAlignW
;
};
};
...
@@ -848,7 +848,7 @@ struct pwr_s_Method {
...
@@ -848,7 +848,7 @@ struct pwr_s_Method {
This section defines the classes to use when defining menus. */
This section defines the classes to use when defining menus. */
struct
pwr_s_MenuCascade
{
struct
pwr_s_MenuCascade
{
pwr_tString40
ButtonName
;
pwr_tString40
ButtonName
pwr_dAlignLW
;
pwr_tString80
FilterName
pwr_dAlignW
;
pwr_tString80
FilterName
pwr_dAlignW
;
pwr_tString40
FilterArguments
[
5
]
pwr_dAlignW
;
pwr_tString40
FilterArguments
[
5
]
pwr_dAlignW
;
pwr_tBoolean
(
*
Filter
)()
pwr_dAlignLW
;
/* Address to method
pwr_tBoolean
(
*
Filter
)()
pwr_dAlignLW
;
/* Address to method
...
@@ -856,7 +856,7 @@ struct pwr_s_MenuCascade {
...
@@ -856,7 +856,7 @@ struct pwr_s_MenuCascade {
};
};
struct
pwr_s_MenuButton
{
struct
pwr_s_MenuButton
{
pwr_tString40
ButtonName
;
pwr_tString40
ButtonName
pwr_dAlignLW
;
pwr_tString80
MethodName
pwr_dAlignW
;
pwr_tString80
MethodName
pwr_dAlignW
;
pwr_tString80
MethodArguments
[
5
]
pwr_dAlignW
;
pwr_tString80
MethodArguments
[
5
]
pwr_dAlignW
;
pwr_tString80
FilterName
pwr_dAlignW
;
pwr_tString80
FilterName
pwr_dAlignW
;
...
@@ -868,7 +868,7 @@ struct pwr_s_MenuButton {
...
@@ -868,7 +868,7 @@ struct pwr_s_MenuButton {
};
};
struct
pwr_s_MenuRef
{
struct
pwr_s_MenuRef
{
pwr_tString40
ButtonName
;
pwr_tString40
ButtonName
pwr_dAlignLW
;
pwr_tString40
RefAttribute
pwr_dAlignW
;
pwr_tString40
RefAttribute
pwr_dAlignW
;
pwr_tString80
FilterName
pwr_dAlignW
;
pwr_tString80
FilterName
pwr_dAlignW
;
pwr_tString40
FilterArguments
[
5
]
pwr_dAlignW
;
pwr_tString40
FilterArguments
[
5
]
pwr_dAlignW
;
...
@@ -882,12 +882,12 @@ struct pwr_s_MenuRef {
...
@@ -882,12 +882,12 @@ struct pwr_s_MenuRef {
editors. */
editors. */
struct
pwr_s_Point
{
struct
pwr_s_Point
{
pwr_tFloat32
x
;
pwr_tFloat32
x
pwr_dAlignW
;
pwr_tFloat32
y
pwr_dAlignW
;
pwr_tFloat32
y
pwr_dAlignW
;
};
};
struct
pwr_s_PlcProgram
{
struct
pwr_s_PlcProgram
{
pwr_tObjid
oid
;
pwr_tObjid
oid
pwr_dAlignLW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tUInt32
defnamecount
[
PWR_OBJTYPES_MAX
]
pwr_dAlignW
;
pwr_tUInt32
defnamecount
[
PWR_OBJTYPES_MAX
]
pwr_dAlignW
;
...
@@ -897,7 +897,7 @@ struct pwr_s_PlcProgram {
...
@@ -897,7 +897,7 @@ struct pwr_s_PlcProgram {
};
};
struct
pwr_s_PlcWindow
{
struct
pwr_s_PlcWindow
{
pwr_tObjid
oid
;
pwr_tObjid
oid
pwr_dAlignLW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tFloat32
x
pwr_dAlignW
;
pwr_tFloat32
x
pwr_dAlignW
;
...
@@ -914,7 +914,7 @@ struct pwr_s_PlcWindow {
...
@@ -914,7 +914,7 @@ struct pwr_s_PlcWindow {
};
};
struct
pwr_s_PlcNode
{
struct
pwr_s_PlcNode
{
pwr_tUInt32
object_type
;
pwr_tUInt32
object_type
pwr_dAlignLW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tObjid
oid
pwr_dAlignW
;
pwr_tObjid
oid
pwr_dAlignW
;
pwr_tFloat32
x
pwr_dAlignW
;
pwr_tFloat32
x
pwr_dAlignW
;
...
@@ -931,7 +931,7 @@ struct pwr_s_PlcNode {
...
@@ -931,7 +931,7 @@ struct pwr_s_PlcNode {
};
};
struct
pwr_s_PlcConnection
{
struct
pwr_s_PlcConnection
{
pwr_tObjid
oid
;
pwr_tObjid
oid
pwr_dAlignLW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tUInt32
object_type
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tClassId
cid
pwr_dAlignW
;
pwr_tUInt32
curvature
pwr_dAlignW
;
pwr_tUInt32
curvature
pwr_dAlignW
;
...
@@ -948,12 +948,12 @@ struct pwr_s_PlcConnection {
...
@@ -948,12 +948,12 @@ struct pwr_s_PlcConnection {
};
};
struct
pwr_s_GraphPlcProgram
{
struct
pwr_s_GraphPlcProgram
{
pwr_tUInt32
plc_type
;
pwr_tUInt32
plc_type
pwr_dAlignLW
;
pwr_tClassId
subwindow_class
pwr_dAlignW
;
pwr_tClassId
subwindow_class
pwr_dAlignW
;
};
};
struct
pwr_s_GraphPlcWindow
{
struct
pwr_s_GraphPlcWindow
{
pwr_tUInt32
window_type
;
pwr_tUInt32
window_type
pwr_dAlignLW
;
pwr_tUInt32
defaultobjects
pwr_dAlignW
;
pwr_tUInt32
defaultobjects
pwr_dAlignW
;
pwr_tUInt32
width
pwr_dAlignW
;
pwr_tUInt32
width
pwr_dAlignW
;
pwr_tUInt32
height
pwr_dAlignW
;
pwr_tUInt32
height
pwr_dAlignW
;
...
@@ -977,7 +977,7 @@ struct pwr_s_GraphPlcWindow {
...
@@ -977,7 +977,7 @@ struct pwr_s_GraphPlcWindow {
};
};
struct
pwr_s_GraphPlcNode
{
struct
pwr_s_GraphPlcNode
{
pwr_tUInt32
object_type
;
pwr_tUInt32
object_type
pwr_dAlignLW
;
pwr_tUInt32
parameters
[
4
]
pwr_dAlignW
;
pwr_tUInt32
parameters
[
4
]
pwr_dAlignW
;
pwr_tUInt32
subwindows
pwr_dAlignW
;
pwr_tUInt32
subwindows
pwr_dAlignW
;
pwr_tClassId
subwindow_class
[
2
]
pwr_dAlignW
;
pwr_tClassId
subwindow_class
[
2
]
pwr_dAlignW
;
...
@@ -1001,7 +1001,7 @@ struct pwr_s_GraphPlcNode {
...
@@ -1001,7 +1001,7 @@ struct pwr_s_GraphPlcNode {
};
};
struct
pwr_s_GraphPlcConnection
{
struct
pwr_s_GraphPlcConnection
{
pwr_tUInt32
con_type
;
pwr_tUInt32
con_type
pwr_dAlignLW
;
pwr_tInt32
arrows
pwr_dAlignW
;
pwr_tInt32
arrows
pwr_dAlignW
;
pwr_tFloat32
linewidth
pwr_dAlignW
;
pwr_tFloat32
linewidth
pwr_dAlignW
;
pwr_tFloat32
dashes
pwr_dAlignW
;
pwr_tFloat32
dashes
pwr_dAlignW
;
...
@@ -1015,7 +1015,7 @@ struct pwr_s_GraphPlcConnection {
...
@@ -1015,7 +1015,7 @@ struct pwr_s_GraphPlcConnection {
/* Plant defining classes. */
/* Plant defining classes. */
struct
pwr_s_PlantHier
{
struct
pwr_s_PlantHier
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tAttrRef
DefGraph
pwr_dAlignW
;
pwr_tAttrRef
DefGraph
pwr_dAlignW
;
pwr_tAttrRef
DefTrend
pwr_dAlignW
;
pwr_tAttrRef
DefTrend
pwr_dAlignW
;
pwr_tString40
HelpTopic
pwr_dAlignW
;
pwr_tString40
HelpTopic
pwr_dAlignW
;
...
@@ -1028,13 +1028,13 @@ struct pwr_s_PlantHier {
...
@@ -1028,13 +1028,13 @@ struct pwr_s_PlantHier {
/* Node defining classes. */
/* Node defining classes. */
struct
pwr_s_System
{
struct
pwr_s_System
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
char
SystemName
[
80
]
pwr_dAlignW
;
char
SystemName
[
80
]
pwr_dAlignW
;
char
SystemGroup
[
80
]
pwr_dAlignW
;
char
SystemGroup
[
80
]
pwr_dAlignW
;
};
};
struct
pwr_s_Node
{
struct
pwr_s_Node
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
char
ErrLogTerm
[
132
]
pwr_dAlignW
;
char
ErrLogTerm
[
132
]
pwr_dAlignW
;
char
ErrLogFile
[
132
]
pwr_dAlignW
;
char
ErrLogFile
[
132
]
pwr_dAlignW
;
pwr_tTime
BootTime
pwr_dAlignLW
;
pwr_tTime
BootTime
pwr_dAlignLW
;
...
@@ -1059,7 +1059,7 @@ struct pwr_s_Node {
...
@@ -1059,7 +1059,7 @@ struct pwr_s_Node {
#define pwr_mAppl_PLC 1
/* This is the PLC program */
#define pwr_mAppl_PLC 1
/* This is the PLC program */
struct
pwr_s_Appl
{
struct
pwr_s_Appl
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
char
FileName
[
256
]
pwr_dAlignW
;
char
FileName
[
256
]
pwr_dAlignW
;
char
ProgramName
[
40
]
pwr_dAlignW
;
char
ProgramName
[
40
]
pwr_dAlignW
;
pwr_tBoolean
StartWithDebug
pwr_dAlignW
;
pwr_tBoolean
StartWithDebug
pwr_dAlignW
;
...
@@ -1073,29 +1073,29 @@ struct pwr_s_Appl {
...
@@ -1073,29 +1073,29 @@ struct pwr_s_Appl {
};
};
struct
pwr_s_Alias
{
struct
pwr_s_Alias
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjid
Object
pwr_dAlignW
;
pwr_tObjid
Object
pwr_dAlignW
;
};
};
struct
pwr_s_Hier
{
struct
pwr_s_Hier
{
pwr_tString80
Description
pwr_dAlignW
;
pwr_tString80
Description
pwr_dAlign
L
W
;
};
};
struct
pwr_s_DocHier
{
struct
pwr_s_DocHier
{
pwr_tString80
Description
pwr_dAlignW
;
pwr_tString80
Description
pwr_dAlign
L
W
;
};
};
struct
pwr_s_LibHier
{
struct
pwr_s_LibHier
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
};
};
struct
pwr_s_NodeHier
{
struct
pwr_s_NodeHier
{
pwr_tString80
Description
pwr_dAlignW
;
pwr_tString80
Description
pwr_dAlign
L
W
;
pwr_tConfigStatusEnum
ConfigurationStatus
pwr_dAlignW
;
pwr_tConfigStatusEnum
ConfigurationStatus
pwr_dAlignW
;
};
};
struct
pwr_s_RootVolume
{
struct
pwr_s_RootVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1108,7 +1108,7 @@ struct pwr_s_RootVolume {
...
@@ -1108,7 +1108,7 @@ struct pwr_s_RootVolume {
};
};
struct
pwr_s_SubVolume
{
struct
pwr_s_SubVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1121,7 +1121,7 @@ struct pwr_s_SubVolume {
...
@@ -1121,7 +1121,7 @@ struct pwr_s_SubVolume {
};
};
struct
pwr_s_SharedVolume
{
struct
pwr_s_SharedVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1143,7 +1143,7 @@ struct pwr_s_DynamicVolume {
...
@@ -1143,7 +1143,7 @@ struct pwr_s_DynamicVolume {
};
};
struct
pwr_s_SystemVolume
{
struct
pwr_s_SystemVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1153,7 +1153,7 @@ struct pwr_s_SystemVolume {
...
@@ -1153,7 +1153,7 @@ struct pwr_s_SystemVolume {
};
};
struct
pwr_s_ClassVolume
{
struct
pwr_s_ClassVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1167,7 +1167,7 @@ struct pwr_s_ClassVolume {
...
@@ -1167,7 +1167,7 @@ struct pwr_s_ClassVolume {
};
};
struct
pwr_s_WorkBenchVolume
{
struct
pwr_s_WorkBenchVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1177,7 +1177,7 @@ struct pwr_s_WorkBenchVolume {
...
@@ -1177,7 +1177,7 @@ struct pwr_s_WorkBenchVolume {
};
};
struct
pwr_s_DirectoryVolume
{
struct
pwr_s_DirectoryVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tProjVersion
RtVersion
pwr_dAlignW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
pwr_tTime
RtCreTime
pwr_dAlignLW
;
...
@@ -1187,21 +1187,21 @@ struct pwr_s_DirectoryVolume {
...
@@ -1187,21 +1187,21 @@ struct pwr_s_DirectoryVolume {
};
};
struct
pwr_s_VolatileVolume
{
struct
pwr_s_VolatileVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
pwr_tObjectIx
NextOix
pwr_dAlignW
;
};
};
struct
pwr_s_ExternVolume
{
struct
pwr_s_ExternVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
};
};
struct
pwr_s_CreateVolume
{
struct
pwr_s_CreateVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tVolumeId
Volume
pwr_dAlignW
;
pwr_tVolumeId
Volume
pwr_dAlignW
;
};
};
struct
pwr_s_MountVolume
{
struct
pwr_s_MountVolume
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tVolumeId
Volume
pwr_dAlignW
;
pwr_tVolumeId
Volume
pwr_dAlignW
;
pwr_eVolumeAccess
Access
pwr_dAlignW
;
pwr_eVolumeAccess
Access
pwr_dAlignW
;
pwr_eMountType
MountType
pwr_dAlignW
;
pwr_eMountType
MountType
pwr_dAlignW
;
...
@@ -1212,12 +1212,12 @@ struct pwr_s_MountVolume {
...
@@ -1212,12 +1212,12 @@ struct pwr_s_MountVolume {
};
};
struct
pwr_s_MountObject
{
struct
pwr_s_MountObject
{
pwr_tString80
Description
;
pwr_tString80
Description
pwr_dAlignLW
;
pwr_tObjid
Object
pwr_dAlignW
;
pwr_tObjid
Object
pwr_dAlignW
;
};
};
struct
pwr_s_Security
{
struct
pwr_s_Security
{
pwr_tMask
DefaultWebPriv
;
pwr_tMask
DefaultWebPriv
pwr_dAlignLW
;
pwr_tMask
DefaultXttPriv
pwr_dAlignW
;
pwr_tMask
DefaultXttPriv
pwr_dAlignW
;
pwr_tBoolean
XttUseOpsysUser
pwr_dAlignW
;
pwr_tBoolean
XttUseOpsysUser
pwr_dAlignW
;
pwr_tString80
WebSystemGroup
pwr_dAlignW
;
pwr_tString80
WebSystemGroup
pwr_dAlignW
;
...
...
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