Changeset 1364


Ignore:
Timestamp:
2000-08-07T13:50:43+12:00 (24 years ago)
Author:
jrm21
Message:

Modified function decl.s from Classic C to Std. C

Location:
trunk/gsdl/src/mgpp/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/mgpp/lib/getopt.cpp

    r855 r1364  
    171171
    172172static char *
    173 my_index (str, chr)
    174      const char *str;
    175      int chr;
     173my_index (const char *str, int chr)
    176174{
    177175  while (*str)
     
    217215
    218216static void
    219 exchange (argv)
    220      char **argv;
     217exchange (char **argv)
    221218{
    222219  int bottom = first_nonopt;
     
    330327
    331328int
    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)
    339330{
    340331  int option_index;
     
    664655
    665656int
    666 getopt (argc, argv, optstring)
    667      int argc;
    668      char *const *argv;
    669      const char *optstring;
     657getopt (int argc, char *const *argv, const char *optstring)
    670658{
    671659  return _getopt_internal (argc, argv, optstring,
     
    684672
    685673int
    686 main (argc, argv)
    687      int argc;
    688      char **argv;
     674main (int argc, char **argv)
    689675{
    690676  int c;
  • trunk/gsdl/src/mgpp/lib/getopt1.cpp

    r855 r1364  
    5454
    5555int
    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;
     56getopt_long (int argc, char *const *argv, const char *options,
     57         const struct option *long_options, int opt_index)
    6258{
    6359  return _getopt_internal (argc, argv, options, long_options, opt_index, 0);
     
    7066
    7167int
    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;
     68getopt_long_only (int argc, char *const *argv, const char *options,
     69          const struct option *long_options, int *opt_index)
    7870{
    7971  return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
     
    8981
    9082int
    91 main (argc, argv)
    92      int argc;
    93      char **argv;
     83main (int argc, char **argv)
    9484{
    9585  int c;
Note: See TracChangeset for help on using the changeset viewer.