Bug 50 - ORB_init() reorders its arguments
Summary: ORB_init() reorders its arguments
Status: CLOSED DUPLICATE
Alias: None
Product: TAO
Classification: Unclassified
Component: ORB (show other bugs)
Version: 0.4
Hardware: All All
: P2 normal
Assignee: DOC Center Support List (internal)
URL:
Depends on:
Blocks:
 
Reported: 1999-07-09 19:48 CDT by Carlos O'Ryan
Modified: 1999-07-09 19:51 CDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos O'Ryan 1999-07-09 19:48:35 CDT
Calling ORB_init() is supposed to eat its arguments, but it re-orders the
arguments it does not consume, more precisely:

args:
  -Files file1 file2 file3 -SomethingOther huhu -SomethingOther2 hihi

args stack now:
- -Files
file1
file2
file3
- -SomethingOther
huhu
- -SomethingOther2
hihi

assume the -SomethingOther options gets parsed first:
args stack now:
- -Files
file1
file2
file3
hihi                         <--- rearranged by consume_arg
- -SomethingOther2             <--- rearranged by consume_arg
huhu                         <--- rearranged by consume_arg
- -SomethingOther              <--- rearranged by consume_arg

		Thanks to  Lothar Werzinger <lwerzinger@krones.de> for reporting this problem.
Comment 1 Carlos O'Ryan 1999-07-09 19:49:59 CDT
My mistake


*** This bug has been marked as a duplicate of 49 ***
Comment 2 Carlos O'Ryan 1999-07-09 19:51:59 CDT
It is really a verbatim copy, closing it.