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
81ae574b
Commit
81ae574b
authored
Jul 08, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Function to keep name of extern references in dumpfile
parent
eab989b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
wb/lib/wb/src/wb_print_wbl.cpp
wb/lib/wb/src/wb_print_wbl.cpp
+8
-2
wb/lib/wb/src/wb_print_wbl.h
wb/lib/wb/src/wb_print_wbl.h
+2
-0
No files found.
wb/lib/wb/src/wb_print_wbl.cpp
View file @
81ae574b
...
...
@@ -21,6 +21,7 @@ wb_print_wbl::wb_print_wbl(ostream& os, int levelIndentation) :
m_idxFlag
(
true
),
m_level
(
0
),
m_levelInd
(
levelIndentation
),
m_keepName
(
false
),
m_os
(
os
)
{
memset
(
m_indBuf
,
' '
,
sizeof
(
m_indBuf
));
...
...
@@ -493,8 +494,13 @@ bool wb_print_wbl::printValue (wb_volume& v,
sprintf
(
sval
,
"0"
);
else
{
o
=
v
.
object
(
*
(
pwr_tOid
*
)
val
);
if
(
o
)
sprintf
(
sval
,
"
\"
%s
\"
"
,
o
.
longName
().
c_str
());
if
(
o
)
{
if
(
o
.
oid
().
vid
>=
cdh_cUserVolMin
&&
o
.
oid
().
vid
!=
v
.
vid
()
&&
!
m_keepName
)
// Other user volume. Loadfile might not be created yet at load time.
sprintf
(
sval
,
"
\"
%s
\"
"
,
cdh_ObjidToString
(
NULL
,
*
(
pwr_tObjid
*
)
val
,
1
));
else
sprintf
(
sval
,
"
\"
%s
\"
"
,
o
.
longName
().
c_str
());
}
else
sprintf
(
sval
,
"
\"
%s
\"
"
,
cdh_ObjidToString
(
NULL
,
*
(
pwr_tObjid
*
)
val
,
1
));
}
...
...
wb/lib/wb/src/wb_print_wbl.h
View file @
81ae574b
...
...
@@ -27,6 +27,7 @@ protected:
int
m_level
;
int
m_levelInd
;
char
m_indBuf
[
256
];
bool
m_keepName
;
ostream
&
m_os
;
...
...
@@ -71,6 +72,7 @@ public:
int
getErrCnt
()
const
{
return
m_errCnt
;}
void
resetErrCnt
()
{
m_errCnt
=
0
;
}
void
keepName
()
{
m_keepName
=
true
;}
void
printHierarchy
(
wb_volume
&
v
,
wb_object
&
o
);
//< Prints a hierarchy
void
printObject
(
wb_volume
&
v
,
wb_object
&
o
,
bool
recursive
=
true
);
//< Prints an object
...
...
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