Annotation of researchv10no/cmd/odist/pax/include/option.h, revision 1.1.1.1

1.1       root        1: /*
                      2:  * G. S. Fowler
                      3:  * AT&T Bell Laboratories
                      4:  *
                      5:  * command line option parse assist definitions
                      6:  */
                      7: 
                      8: #ifndef __OPTION_H__
                      9: #define __OPTION_H__
                     10: 
                     11: #if __cplusplus
                     12: extern "C" {
                     13: #endif
                     14: 
                     15: extern char*   opt_arg;                /* {:,#} string argument        */
                     16: extern int     opt_again;              /* see cmdargs()                */
                     17: extern char**  opt_argv;               /* most recent argv             */
                     18: extern int     opt_char;               /* char pos in argv[opt_index]  */
                     19: extern int     opt_index;              /* argv index                   */
                     20: extern char*   opt_msg;                /* error/usage message buffer   */
                     21: extern long    opt_num;                /* # numeric argument           */
                     22: extern char    opt_option[3];          /* current flag {-,+} + option  */
                     23: extern int     opt_pchar;              /* prev opt_char for backup     */
                     24: extern int     opt_pindex;             /* prev opt_index for backup    */
                     25: 
                     26: #if __cplusplus
                     27: }
                     28: #endif
                     29: 
                     30: #if __STDC__ || __cplusplus || c_plusplus
                     31: #if __cplusplus
                     32: extern "C" {
                     33: #endif
                     34: extern int     optget(char**, const char*);
                     35: extern char*   optusage(const char*);
                     36: #if __cplusplus
                     37: }
                     38: #endif
                     39: #else
                     40: extern int     optget();
                     41: extern char*   optusage();
                     42: #endif
                     43: 
                     44: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.