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
8dc40ca9
Commit
8dc40ca9
authored
Feb 26, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
ee0b1473
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
4 deletions
+61
-4
wb/lib/wb/src/wb_cdrep.cpp
wb/lib/wb/src/wb_cdrep.cpp
+12
-0
wb/lib/wb/src/wb_cdrep.h
wb/lib/wb/src/wb_cdrep.h
+1
-0
wb/lib/wb/src/wb_erep.cpp
wb/lib/wb/src/wb_erep.cpp
+3
-3
wb/lib/wb/src/wb_vrepwbl.cpp
wb/lib/wb/src/wb_vrepwbl.cpp
+23
-0
wb/lib/wb/src/wb_vrepwbl.h
wb/lib/wb/src/wb_vrepwbl.h
+1
-0
wb/lib/wb/src/wb_wblnode.cpp
wb/lib/wb/src/wb_wblnode.cpp
+18
-1
wb/lib/wb/src/wb_wblnode.h
wb/lib/wb/src/wb_wblnode.h
+3
-0
No files found.
wb/lib/wb/src/wb_cdrep.cpp
View file @
8dc40ca9
...
...
@@ -166,6 +166,18 @@ void wb_cdrep::templateBody( pwr_tStatus *sts, pwr_eBix bix, void *p)
orep
->
unref
();
}
pwr_mClassDef
wb_cdrep
::
flags
()
{
pwr_sClassDef
*
classdef
;
pwr_tStatus
sts
;
classdef
=
(
pwr_sClassDef
*
)
m_orep
->
m_vrep
->
readBody
(
&
sts
,
m_orep
,
pwr_eBix_sys
,
0
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
return
classdef
->
Flags
;
}
const
char
*
wb_cdrep
::
name
()
const
{
return
m_orep
->
name
();
...
...
wb/lib/wb/src/wb_cdrep.h
View file @
8dc40ca9
...
...
@@ -32,6 +32,7 @@ public:
//wb_object& operator=(const wb_orep&);
size_t
size
()
{
return
0
;}
// Fix get objects runtime body size
pwr_mClassDef
flags
();
pwr_tCid
cid
();
...
...
wb/lib/wb/src/wb_erep.cpp
View file @
8dc40ca9
...
...
@@ -419,9 +419,9 @@ void wb_erep::loadMeta( pwr_tStatus *status)
strcat
(
vname
,
".db"
);
dcli_translate_filename
(
vname
,
vname
);
wb_vrepdb
*
vrepdb
=
new
wb_vrepdb
(
this
,
vname
);
vrepdb
->
name
(
vol_array
[
0
]);
addDbs
(
&
sts
,
vrepdb
);
//
wb_vrepdb *vrepdb = new wb_vrepdb( this, vname);
//
vrepdb->name(vol_array[0]);
//
addDbs( &sts, vrepdb);
vol_cnt
++
;
}
}
...
...
wb/lib/wb/src/wb_vrepwbl.cpp
View file @
8dc40ca9
...
...
@@ -531,6 +531,29 @@ int wb_vrepwbl::getTypeInfo( pwr_tTid tid, pwr_eType *type, size_t *size,
return
1
;
}
void
wb_vrepwbl
::
getClassFlags
(
pwr_tStatus
*
sts
,
pwr_tCid
cid
,
pwr_mClassDef
*
flags
)
{
// Search type in this volume
ref_wblnode
n
=
findClass
(
cid
);
if
(
n
)
{
if
(
!
n
->
is_built
)
n
->
build
(
0
);
*
flags
=
n
->
m_flags
;
*
sts
=
LDH__SUCCESS
;
}
else
{
// Search type in other volumes
wb_cdrep
*
cdrep
=
m_merep
->
cdrep
(
sts
,
cid
);
if
(
EVEN
(
*
sts
))
return
;
*
flags
=
cdrep
->
flags
();
delete
cdrep
;
*
sts
=
LDH__SUCCESS
;
}
}
int
wb_vrepwbl
::
getClassInfo
(
pwr_tCid
cid
,
size_t
*
rsize
,
size_t
*
dsize
)
{
// Search type in this volume
...
...
wb/lib/wb/src/wb_vrepwbl.h
View file @
8dc40ca9
...
...
@@ -81,6 +81,7 @@ public:
int
getAttrInfoRec
(
wb_attrname
*
attr
,
pwr_eBix
bix
,
pwr_tCid
cid
,
size_t
*
size
,
size_t
*
offset
,
pwr_tTid
*
tid
,
int
*
elements
,
pwr_eType
*
type
,
int
level
);
void
getClassFlags
(
pwr_tStatus
*
sts
,
pwr_tCid
cid
,
pwr_mClassDef
*
flags
);
ref_wblnode
findObject
(
pwr_tOix
oix
);
ref_wblnode
findClass
(
const
char
*
name
);
ref_wblnode
findType
(
const
char
*
name
);
...
...
wb/lib/wb/src/wb_wblnode.cpp
View file @
8dc40ca9
...
...
@@ -423,10 +423,14 @@ void wb_wblnode::build( bool recursive)
is_built
=
0
;
}
if
(
isClassDef
())
{
m_oid
.
oix
=
cdh_cixToOix
(
m_oid
.
oix
,
0
,
0
);
if
(
!
m_vrep
->
registerObject
(
m_oid
.
oix
,
this
))
m_vrep
->
error
(
"Duplicate class index"
,
getFileName
(),
line_number
);
if
(
m_vrep
->
vid
()
==
1
)
((
pwr_sClassDef
*
)
rbody
)
->
Flags
.
b
.
System
=
1
;
// Calculate offset for attributes
wb_wblnode
*
child
=
o_fch
;
while
(
child
)
{
...
...
@@ -460,10 +464,14 @@ void wb_wblnode::build( bool recursive)
;
}
}
attr
=
attr
->
o_fws
;
}
}
child
=
child
->
o_fws
;
m_flags
=
((
pwr_sClassDef
*
)
rbody
)
->
Flags
;
}
is_built
=
1
;
...
...
@@ -668,6 +676,8 @@ void wb_wblnode::buildTemplate( ref_wblnode classdef)
}
objbodydef
=
objbodydef
->
o_fws
;
}
m_flags
.
b
.
Template
=
1
;
ref_wblnode
first_child
;
first_child
=
getFirstChild
();
if
(
first_child
)
...
...
@@ -1437,6 +1447,13 @@ void wb_wblnode::iterRbody( wb_dbs *dbs)
bool
wb_wblnode
::
exportHead
(
wb_import
&
i
)
{
pwr_tStatus
sts
;
pwr_mClassDef
flags
;
m_vrep
->
getClassFlags
(
&
sts
,
m_cid
,
&
flags
);
if
(
EVEN
(
sts
))
throw
wb_error
(
sts
);
m_flags
.
m
|=
flags
.
m
;
ref_wblnode
o_lch
=
get_o_lch
();
pwr_tOid
fthoid
=
o_fth
?
o_fth
->
m_oid
:
pwr_cNOid
;
pwr_tOid
fwsoid
=
o_fws
?
o_fws
->
m_oid
:
pwr_cNOid
;
...
...
wb/lib/wb/src/wb_wblnode.h
View file @
8dc40ca9
...
...
@@ -50,6 +50,7 @@ public:
line_number
(
0
),
file
(
0
),
is_built
(
0
),
c_cid
(
0
),
c_cix
(
0
),
c_template
(
0
),
b_bix
(
pwr_eBix__
),
a_tid
(
0
),
a_size
(
0
),
a_offset
(
0
),
a_elements
(
0
),
a_flags
(
0
)
{
m_flags
.
m
=
0
;
strcpy
(
cname
,
""
);
}
wb_wblnode
(
antlr
::
RefToken
t
)
:
...
...
@@ -59,6 +60,7 @@ public:
line_number
(
0
),
file
(
0
),
is_built
(
0
),
c_cid
(
0
),
c_cix
(
0
),
c_template
(
0
),
b_bix
(
pwr_eBix__
),
a_tid
(
0
),
a_size
(
0
),
a_offset
(
0
),
a_elements
(
0
),
a_flags
(
0
)
{
m_flags
.
m
=
0
;
CommonAST
::
setType
(
t
->
getType
());
CommonAST
::
setText
(
t
->
getText
());
}
...
...
@@ -217,6 +219,7 @@ public:
const
char
*
name
()
{
return
getText
().
c_str
();}
char
cname
[
32
];
wb_vrepwbl
*
m_vrep
;
pwr_mClassDef
m_flags
;
wb_wblnode
*
o_fth
;
wb_wblnode
*
o_bws
;
wb_wblnode
*
o_fws
;
...
...
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