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
0940f4bd
Commit
0940f4bd
authored
Sep 02, 2014
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Xtt opplace argument without path
parent
119c8f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
11 deletions
+27
-11
xtt/exe/rt_xtt/src/xtt_main.cpp
xtt/exe/rt_xtt/src/xtt_main.cpp
+27
-11
No files found.
xtt/exe/rt_xtt/src/xtt_main.cpp
View file @
0940f4bd
...
...
@@ -673,20 +673,36 @@ Xtt::Xtt( int *argc, char **argv[], int *return_sts) :
// Opplace argument
strcpy
(
opplace_str
,
(
*
argv
)[
i
]);
sts
=
gdh_NameToObjid
(
opplace_str
,
&
op_objid
);
if
(
EVEN
(
sts
))
{
printf
(
"** Unable to find opplace
\n
"
);
exit
(
sts
);
if
(
strchr
(
opplace_str
,
'-'
)
==
0
)
{
char
oname
[
80
];
sts
=
gdh_GetClassList
(
pwr_cClass_OpPlace
,
&
op_objid
);
while
(
ODD
(
sts
))
{
sts
=
gdh_ObjidToName
(
op_objid
,
oname
,
sizeof
(
oname
),
cdh_mName_object
);
if
(
ODD
(
sts
)
&&
cdh_NoCaseStrcmp
(
oname
,
opplace_str
)
==
0
)
{
sts
=
gdh_ObjidToName
(
op_objid
,
opplace_str
,
sizeof
(
opplace_str
),
cdh_mName_volumeStrict
);
opplace_found
=
1
;
break
;
}
sts
=
gdh_GetNextObject
(
op_objid
,
&
op_objid
);
}
}
else
{
sts
=
gdh_NameToObjid
(
opplace_str
,
&
op_objid
);
if
(
EVEN
(
sts
))
{
printf
(
"** Unable to find opplace
\n
"
);
exit
(
sts
);
}
sts
=
gdh_GetObjectClass
(
op_objid
,
&
op_class
);
if
(
EVEN
(
sts
))
exit
(
sts
);
sts
=
gdh_GetObjectClass
(
op_objid
,
&
op_class
);
if
(
EVEN
(
sts
))
exit
(
sts
);
if
(
op_class
!=
pwr_cClass_OpPlace
)
{
printf
(
"** Error in opplace object class
\n
"
);
exit
(
sts
);
if
(
op_class
!=
pwr_cClass_OpPlace
)
{
printf
(
"** Error in opplace object class
\n
"
);
exit
(
sts
);
}
opplace_found
=
1
;
}
opplace_found
=
1
;
}
}
...
...
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