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
91a94d91
Commit
91a94d91
authored
Jan 14, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
volume object printed and backslash before " in string
parent
349320fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
3 deletions
+35
-3
wb/lib/wb/src/wb_print_wbl.cpp
wb/lib/wb/src/wb_print_wbl.cpp
+35
-3
No files found.
wb/lib/wb/src/wb_print_wbl.cpp
View file @
91a94d91
...
...
@@ -530,9 +530,22 @@ bool wb_print_wbl::printValue (wb_volume& v,
}
#endif
break
;
case
pwr_eType_String
:
sprintf
(
sval
,
"
\"
%.*s
\"
"
,
varSize
,
(
char
*
)
val
);
case
pwr_eType_String
:
{
char
*
s
=
sval
;
char
*
t
=
(
char
*
)
val
;
*
s
++
=
'"'
;
for
(
int
i
=
0
;
i
<
varSize
;
i
++
)
{
if
(
*
t
==
0
)
break
;
if
(
*
t
==
'"'
)
*
s
++
=
'\\'
;
*
s
++
=
*
t
++
;
}
*
s
++
=
'"'
;
*
s
=
0
;
// sprintf(sval, "\"%.*s\"", varSize, (char *)val);
break
;
}
case
pwr_eType_Time
:
sts
=
time_AtoAscii
((
pwr_tTime
*
)
val
,
time_eFormat_DateAndTime
,
timbuf
,
sizeof
(
timbuf
));
...
...
@@ -583,6 +596,25 @@ void wb_print_wbl::printVolume(wb_volume& v, bool recursive)
indent
(
1
)
<<
"Volume "
<<
v
.
name
()
<<
" "
<<
cname
<<
" "
<<
cdh_VolumeIdToString
(
NULL
,
v
.
vid
(),
0
,
0
)
<<
" "
<<
endl
;
// Print volume body
pwr_tOid
oid
;
oid
.
vid
=
v
.
vid
();
oid
.
oix
=
0
;
wb_object
vo
=
v
.
object
(
oid
);
wb_cdef
cdef
=
v
.
cdef
(
vo
);
wb_object
co
=
v
.
object
(
cdh_ClassIdToObjid
(
v
.
cid
()));
wb_name
t
(
"Template"
);
wb_object
templ
=
co
.
child
(
t
);
if
(
!
templ
)
{
m_errCnt
++
;
m_os
<<
"Template not found for class "
<<
cdef
.
name
()
<<
endl
;
return
;
}
printBody
(
v
,
vo
,
templ
,
cdef
,
pwr_eBix_sys
);
// Print top objects and their children
if
(
recursive
)
{
for
(;
o
;
o
=
o
.
after
())
...
...
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