00001 /* 00002 * getopt.h - cpp wrapper for my_getopt to make it look like getopt. 00003 * Copyright 1997, 2000, 2001, 2002, Benjamin Sittler 00004 * 00005 * Permission is hereby granted, free of charge, to any person 00006 * obtaining a copy of this software and associated documentation 00007 * files (the "Software"), to deal in the Software without 00008 * restriction, including without limitation the rights to use, copy, 00009 * modify, merge, publish, distribute, sublicense, and/or sell copies 00010 * of the Software, and to permit persons to whom the Software is 00011 * furnished to do so, subject to the following conditions: 00012 * 00013 * The above copyright notice and this permission notice shall be 00014 * included in all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00017 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00018 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00019 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 00020 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 00021 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00022 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 00023 * DEALINGS IN THE SOFTWARE. 00024 */ 00025 00026 #ifndef MY_WRAPPER_GETOPT_H_INCLUDED 00027 #define MY_WRAPPER_GETOPT_H_INCLUDED 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif 00032 00033 #include "my_getopt.h" 00034 00035 #undef getopt 00036 #define getopt my_getopt 00037 #undef getopt_long 00038 #define getopt_long my_getopt_long 00039 #undef getopt_long_only 00040 #define getopt_long_only my_getopt_long_only 00041 #undef _getopt_internal 00042 #define _getopt_internal _my_getopt_internal 00043 #undef opterr 00044 #define opterr my_opterr 00045 #undef optind 00046 #define optind my_optind 00047 #undef optopt 00048 #define optopt my_optopt 00049 #undef optarg 00050 #define optarg my_optarg 00051 00052 #ifdef __cplusplus 00053 } 00054 #endif 00055 00056 #endif /* MY_WRAPPER_GETOPT_H_INCLUDED */