show PC of labels
[xorcyst.git] / RCS / getopt.h,v
blobda06a85f6df4ea7f85e4708346eb437b210aaa28
1 head    1.1;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
8 1.1
9 date    2004.12.06.04.54.00;    author kenth;   state Exp;
10 branches;
11 next    ;
14 desc
18 1.1
19 log
20 @Initial revision
22 text
23 @/*
24  *  getopt.h - cpp wrapper for my_getopt to make it look like getopt.
25  *  Copyright 1997, 2000, 2001, 2002, Benjamin Sittler
26  *
27  *  Permission is hereby granted, free of charge, to any person
28  *  obtaining a copy of this software and associated documentation
29  *  files (the "Software"), to deal in the Software without
30  *  restriction, including without limitation the rights to use, copy,
31  *  modify, merge, publish, distribute, sublicense, and/or sell copies
32  *  of the Software, and to permit persons to whom the Software is
33  *  furnished to do so, subject to the following conditions:
34  *  
35  *  The above copyright notice and this permission notice shall be
36  *  included in all copies or substantial portions of the Software.
37  *  
38  *  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39  *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40  *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
41  *  NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
42  *  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
43  *  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44  *  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45  *  DEALINGS IN THE SOFTWARE.
46  */
48 #ifndef MY_WRAPPER_GETOPT_H_INCLUDED
49 #define MY_WRAPPER_GETOPT_H_INCLUDED
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
55 #include "my_getopt.h"
57 #undef getopt
58 #define getopt my_getopt
59 #undef getopt_long
60 #define getopt_long my_getopt_long
61 #undef getopt_long_only
62 #define getopt_long_only my_getopt_long_only
63 #undef _getopt_internal
64 #define _getopt_internal _my_getopt_internal
65 #undef opterr
66 #define opterr my_opterr
67 #undef optind
68 #define optind my_optind
69 #undef optopt
70 #define optopt my_optopt
71 #undef optarg
72 #define optarg my_optarg
74 #ifdef __cplusplus
76 #endif
78 #endif /* MY_WRAPPER_GETOPT_H_INCLUDED */