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
bb80ff5e
Commit
bb80ff5e
authored
Jun 10, 2005
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flags are set for super and class attribute automatically
parent
ce715d97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+12
-3
No files found.
wb/lib/wb/src/wb_wblnode.cpp
View file @
bb80ff5e
...
@@ -848,17 +848,26 @@ void wb_wblnode::buildAttribute( ref_wblnode classdef, ref_wblnode objbodydef,
...
@@ -848,17 +848,26 @@ void wb_wblnode::buildAttribute( ref_wblnode classdef, ref_wblnode objbodydef,
strcmp
(
name
(),
"Super"
)
!=
0
)
strcmp
(
name
(),
"Super"
)
!=
0
)
m_vrep
->
error
(
"Super class attribute not named Super"
,
getFileName
(),
line_number
);
m_vrep
->
error
(
"Super class attribute not named Super"
,
getFileName
(),
line_number
);
if
(
strcmp
(
name
(),
"Super"
)
==
0
)
{
if
(
strcmp
(
name
(),
"Super"
)
==
0
)
{
if
(
*
bindex
!=
1
)
m_vrep
->
error
(
"Super has to be first attribute"
,
getFileName
(),
line_number
);
if
(
!
(((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_SUPERCLASS
))
if
(
!
(((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_SUPERCLASS
))
m_vrep
->
error
(
"Super class flag not set"
,
getFileName
(),
line_number
)
;
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
|=
PWR_MASK_SUPERCLASS
;
if
(
!
(((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CLASS
))
if
(
!
(((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CLASS
))
m_vrep
->
error
(
"Class flag not set"
,
getFileName
(),
line_number
)
;
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
|=
PWR_MASK_CLASS
;
if
(
!
cdh_tidIsCid
(
o
->
a
.
tid
))
if
(
!
cdh_tidIsCid
(
o
->
a
.
tid
))
m_vrep
->
error
(
"TypeRef is not a class"
,
getFileName
(),
line_number
);
m_vrep
->
error
(
"TypeRef is not a class"
,
getFileName
(),
line_number
);
}
}
if
(
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CLASS
&&
if
(
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CLASS
&&
!
cdh_tidIsCid
(
o
->
a
.
tid
))
!
cdh_tidIsCid
(
o
->
a
.
tid
))
m_vrep
->
error
(
"TypeRef is not a class"
,
getFileName
(),
line_number
);
m_vrep
->
error
(
"TypeRef is not a class"
,
getFileName
(),
line_number
);
if
(
cdh_tidIsCid
(
o
->
a
.
tid
))
{
if
(
!
(((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CLASS
))
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
|=
PWR_MASK_CLASS
;
}
if
(
((
pwr_sParam
*
)
o
->
rbody
)
->
Info
.
Flags
&
PWR_MASK_CASTATTR
)
{
if
(
!
o
->
bws
||
o
->
bws
->
o
->
a
.
type
!=
pwr_eType_CastId
)
m_vrep
->
error
(
"Cast attribute not found"
,
getFileName
(),
line_number
);
}
}
}
void
wb_wblnode
::
buildBuffer
(
ref_wblnode
classdef
,
ref_wblnode
objbodydef
,
void
wb_wblnode
::
buildBuffer
(
ref_wblnode
classdef
,
ref_wblnode
objbodydef
,
...
...
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