Ignore:
Timestamp:
May 27, 2007, 1:19:22 AM (18 years ago)
Author:
bird
Message:

Always use the GNU make getopt stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmakenew/kmkbuiltin/mkdir.c

    r809 r942  
    8282        mode = NULL;
    8383
    84     /* reinitialize globals */
    85     vflag = 0;
    86 
    87     /* kmk: reset getopt and set progname */
    88     g_progname = argv[0];
    89     opterr = 1;
    90     optarg = NULL;
    91     optopt = 0;
    92 #if defined(__FreeBSD__) || defined(__EMX__) || defined(__APPLE__)
    93     optreset = 1;
    94     optind = 1;
    95 #else
    96     optind = 0; /* init */
    97 #endif
     84        /* reinitialize globals */
     85        vflag = 0;
     86
     87        /* kmk: reset getopt and set progname */
     88        g_progname = argv[0];
     89        opterr = 1;
     90        optarg = NULL;
     91        optopt = 0;
     92        optind = 0; /* init */
    9893        while ((ch = getopt(argc, argv, "m:pv")) != -1)
    9994                switch(ch) {
Note: See TracChangeset for help on using the changeset viewer.