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
6348fe36
Commit
6348fe36
authored
Apr 07, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Files sorted
parent
9cd6ecef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
wb/lib/wb/src/wb_vrepwbl.cpp
wb/lib/wb/src/wb_vrepwbl.cpp
+14
-0
No files found.
wb/lib/wb/src/wb_vrepwbl.cpp
View file @
6348fe36
...
...
@@ -193,11 +193,18 @@ bool wb_vrepwbl::exportTree(wb_treeimport &i, pwr_tOid oid)
return
true
;
}
static
int
wbl_sort_files
(
const
void
*
file1
,
const
void
*
file2
)
{
return
(
strcmp
(
(
*
(
wb_wblfile
**
)
file1
)
->
file_name
,
(
*
(
wb_wblfile
**
)(
file2
))
->
file_name
));
}
int
wb_vrepwbl
::
load
(
const
char
*
fname
)
{
int
i
;
char
file_spec
[
200
];
pwr_tStatus
sts
,
rsts
;
int
file_cnt_sort
=
0
;
rsts
=
LDH__SUCCESS
;
...
...
@@ -218,6 +225,8 @@ int wb_vrepwbl::load( const char *fname)
sts
=
load_files
(
file_spec
);
if
(
EVEN
(
sts
))
rsts
=
sts
;
file_cnt_sort
=
file_cnt
;
// Load types
sprintf
(
file_spec
,
"%s/*_t_*.wb_load"
,
fname
);
sts
=
load_files
(
file_spec
);
...
...
@@ -234,6 +243,11 @@ int wb_vrepwbl::load( const char *fname)
if
(
EVEN
(
sts
))
rsts
=
sts
;
}
if
(
file_cnt
>
file_cnt_sort
)
qsort
(
&
file
[
file_cnt_sort
],
file_cnt
-
file_cnt_sort
,
sizeof
(
file
[
0
]),
wbl_sort_files
);
for
(
i
=
0
;
i
<
file_cnt
;
i
++
)
{
for
(
ref_wblnode
n
=
file
[
i
]
->
rootAST
;
n
;
n
=
n
->
getNextSibling
())
n
->
registerNode
(
this
);
...
...
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