Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(452)

Side by Side Diff: third_party/getopt/getopt.cc

Issue 1439113002: win: Compile getopt as C++ and wrap in crashpad namespace (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/getopt/getopt.c ('k') | third_party/getopt/getopt.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 */
OLDNEW
« no previous file with comments | « third_party/getopt/getopt.c ('k') | third_party/getopt/getopt.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698