VirtualBox

Changeset 18744 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Apr 6, 2009 11:08:34 AM (16 years ago)
Author:
vboxsync
Message:

Runtime/getopt: provide way to figure out which option definition matched

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/getopt.h

    r18187 r18744  
    187187     * (For parsing ls -latrT4 kind of option lists.) */
    188188    const char     *pszNextShort;
     189    /** The option definition which matched. NULL otherwise. */
     190    PCRTGETOPTDEF   pDef;
    189191    /* More members will be added later for dealing with initial
    190192       call, optional sorting, '--' and so on. */
     
    297299 *
    298300 * @returns 0 when done parsing.
     301 * @returns the iShort value of the option. pState->pDef points to the option
     302 *          definition which matched.
    299303 * @returns IPRT error status on parse error.
    300304 * @returns VINF_GETOPT_NOT_OPTION when encountering a non-option argument and
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette