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
80f66ebc
Commit
80f66ebc
authored
Jan 11, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pwrc command 'set parameter' couldn't handle attribute objects
parent
ff59fc71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
12 deletions
+3
-12
wb/lib/wb/src/wb_utl.cpp
wb/lib/wb/src/wb_utl.cpp
+3
-12
No files found.
wb/lib/wb/src/wb_utl.cpp
View file @
80f66ebc
...
...
@@ -3655,7 +3655,6 @@ int utl_set_object_parameter (
pwr_tClassId
*
classp
;
pwr_tObjid
hierobjdid
;
char
*
s
;
pwr_tObjid
objdid
;
char
*
t
;
char
elementstr
[
20
];
int
element
;
...
...
@@ -3744,7 +3743,7 @@ int utl_set_object_parameter (
{
/* Print this object */
/* Get objdid for the object */
sts
=
ldh_NameTo
Objid
(
ldhses
,
&
objdid
,
name
);
sts
=
ldh_NameTo
AttrRef
(
ldhses
,
name
,
&
aref
);
if
(
EVEN
(
sts
))
{
return
FOE__OBJECT
;
...
...
@@ -3763,7 +3762,6 @@ int utl_set_object_parameter (
IF_OUT
u_subheader
(
utlctx
,
"Name"
,
name
);
IF_OUT
u_row
(
utlctx
);
aref
=
cdh_ObjidToAref
(
objdid
);
sts
=
utl_set_parameter
(
&
aref
,
ldhses
,
parameter
,
valuestr
,
element
,
utlctx
);
...
...
@@ -6048,8 +6046,6 @@ static int utl_set_parameter (
static
char
yes_or_no
[
200
];
int
sts
,
size
,
k
;
int
parsize
;
pwr_tClassId
cid
;
pwr_tOName
hier_name
;
char
*
object_par
;
char
*
object_element
;
int
elements
;
...
...
@@ -6087,15 +6083,10 @@ static int utl_set_parameter (
static
$
DESCRIPTOR
(
yon_desc
,
yes_or_no
);
#endif
sts
=
ldh_ObjidToName
(
ldhses
,
objid
,
ldh_eName_Hierarchy
,
hier_name
,
sizeof
(
hier_name
),
&
size
);
sts
=
ldh_AttrRefToName
(
ldhses
,
arp
,
cdh_mNName
,
&
np
,
&
size
);
if
(
EVEN
(
sts
))
return
sts
;
/* Get the class of the object */
sts
=
ldh_GetObjectClass
(
ldhses
,
objid
,
&
cid
);
strcpy
(
aname
,
hier_name
);
strcpy
(
aname
,
np
);
strcat
(
aname
,
"."
);
strcat
(
aname
,
parameter
);
...
...
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