OLD | NEW |
1 /* | 1 /* |
2 Copyright (C) 1997 Gregory Pietsch | 2 Copyright (C) 1997 Gregory Pietsch |
3 | 3 |
4 [These files] are hereby placed in the public domain without restrictions. Just | 4 [These files] are hereby placed in the public domain without restrictions. Just |
5 give the author credit, don't claim you wrote it or prevent anyone else from | 5 give the author credit, don't claim you wrote it or prevent anyone else from |
6 using it. | 6 using it. |
7 */ | 7 */ |
8 | 8 |
9 /**************************************************************************** | 9 /**************************************************************************** |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ****************************************************************************/ | 92 ****************************************************************************/ |
93 | 93 |
94 /* include files */ | 94 /* include files */ |
95 #include <stdio.h> | 95 #include <stdio.h> |
96 #include <stdlib.h> | 96 #include <stdlib.h> |
97 #include <string.h> | 97 #include <string.h> |
98 #ifndef GETOPT_H | 98 #ifndef GETOPT_H |
99 #include "getopt.h" | 99 #include "getopt.h" |
100 #endif | 100 #endif |
101 | 101 |
| 102 namespace crashpad { |
| 103 |
102 /* macros */ | 104 /* macros */ |
103 | 105 |
104 /* types */ | 106 /* types */ |
105 typedef enum GETOPT_ORDERING_T | 107 typedef enum GETOPT_ORDERING_T |
106 { | 108 { |
107 PERMUTE, | 109 PERMUTE, |
108 RETURN_IN_ORDER, | 110 RETURN_IN_ORDER, |
109 REQUIRE_ORDER | 111 REQUIRE_ORDER |
110 } GETOPT_ORDERING_T; | 112 } GETOPT_ORDERING_T; |
111 | 113 |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)l
ongopts, longind, 0); | 410 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)l
ongopts, longind, 0); |
409 } | 411 } |
410 | 412 |
411 int | 413 int |
412 getopt_long_only (int argc, char **argv, const char *shortopts, | 414 getopt_long_only (int argc, char **argv, const char *shortopts, |
413 const GETOPT_LONG_OPTION_T * longopts, int *longind) | 415 const GETOPT_LONG_OPTION_T * longopts, int *longind) |
414 { | 416 { |
415 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)l
ongopts, longind, 1); | 417 return getopt_internal (argc, argv, (char*)shortopts, (GETOPT_LONG_OPTION_T*)l
ongopts, longind, 1); |
416 } | 418 } |
417 | 419 |
| 420 } // namespace crashpad |
| 421 |
418 /* end of file GETOPT.C */ | 422 /* end of file GETOPT.C */ |
OLD | NEW |