Changeset 1364
- Timestamp:
- 2000-08-07T13:50:43+12:00 (24 years ago)
- Location:
- trunk/gsdl/src/mgpp/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/mgpp/lib/getopt.cpp
r855 r1364 171 171 172 172 static char * 173 my_index (str, chr) 174 const char *str; 175 int chr; 173 my_index (const char *str, int chr) 176 174 { 177 175 while (*str) … … 217 215 218 216 static void 219 exchange (argv) 220 char **argv; 217 exchange (char **argv) 221 218 { 222 219 int bottom = first_nonopt; … … 330 327 331 328 int 332 _getopt_internal (argc, argv, optstring, longopts, longind, long_only) 333 int argc; 334 char *const *argv; 335 const char *optstring; 336 const struct option *longopts; 337 int *longind; 338 int long_only; 329 _getopt_internal (int argc, char *const *argv, const char *optstring, const struct option *longopts, int *longind, int long_only) 339 330 { 340 331 int option_index; … … 664 655 665 656 int 666 getopt (argc, argv, optstring) 667 int argc; 668 char *const *argv; 669 const char *optstring; 657 getopt (int argc, char *const *argv, const char *optstring) 670 658 { 671 659 return _getopt_internal (argc, argv, optstring, … … 684 672 685 673 int 686 main (argc, argv) 687 int argc; 688 char **argv; 674 main (int argc, char **argv) 689 675 { 690 676 int c; -
trunk/gsdl/src/mgpp/lib/getopt1.cpp
r855 r1364 54 54 55 55 int 56 getopt_long (argc, argv, options, long_options, opt_index) 57 int argc; 58 char *const *argv; 59 const char *options; 60 const struct option *long_options; 61 int *opt_index; 56 getopt_long (int argc, char *const *argv, const char *options, 57 const struct option *long_options, int opt_index) 62 58 { 63 59 return _getopt_internal (argc, argv, options, long_options, opt_index, 0); … … 70 66 71 67 int 72 getopt_long_only (argc, argv, options, long_options, opt_index) 73 int argc; 74 char *const *argv; 75 const char *options; 76 const struct option *long_options; 77 int *opt_index; 68 getopt_long_only (int argc, char *const *argv, const char *options, 69 const struct option *long_options, int *opt_index) 78 70 { 79 71 return _getopt_internal (argc, argv, options, long_options, opt_index, 1); … … 89 81 90 82 int 91 main (argc, argv) 92 int argc; 93 char **argv; 83 main (int argc, char **argv) 94 84 { 95 85 int c;
Note:
See TracChangeset
for help on using the changeset viewer.