Changeset 26485 in vbox for trunk/include
- Timestamp:
- Feb 14, 2010 6:59:06 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 57654
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/getopt.h
r26476 r26485 205 205 /** The index of an index option, otherwise UINT32_MAX. */ 206 206 uint32_t uIndex; 207 /* More members will be added later for dealing with initial 208 call, optional sorting, '--' and so on. */ 207 /** The flags passed to RTGetOptInit. */ 208 uint32_t fFlags; 209 /** Number of non-options that we're skipping during a sorted get. The value 210 * INT32_MAX is used to indicate that there are no more options. This is used 211 * to implement '--'. */ 212 int32_t cNonOptions; 213 214 /* More members may be added later for dealing with new features. */ 209 215 } RTGETOPTSTATE; 210 216 /** Pointer to RTGetOpt state. */ … … 235 241 PCRTGETOPTDEF paOptions, size_t cOptions, 236 242 int iFirst, uint32_t fFlags); 243 244 /** @name RTGetOptInit flags. 245 * @{ */ 246 /** Sort the arguments so that options comes first, then non-options. */ 247 #define RTGETOPTINIT_FLAGS_OPTS_FIRST RT_BIT_32(0) 248 /** Prevent add the standard version and help options: 249 * - "--help", "-h" and "-?" returns 'h'. 250 * - "--version" and "-V" return 'V'. 251 */ 252 #define RTGETOPTINIT_FLAGS_NO_STD_OPTS RT_BIT_32(1) 253 /** @} */ 237 254 238 255 /**
Note:
See TracChangeset
for help on using the changeset viewer.