Ignore:
Timestamp:
Mar 12, 2018, 8:32:29 PM (7 years ago)
Author:
bird
Message:

Imported make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6) from https://git.savannah.gnu.org/git/make.git.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendor/gnumake/current/getopt.c

    r2596 r3138  
    44before changing it!
    55
    6 Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
    7 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
    8 2010 Free Software Foundation, Inc.
     6Copyright (C) 1987-2016 Free Software Foundation, Inc.
    97
    108NOTE: The canonical source of this file is maintained with the GNU C Library.
     
    8482
    8583
    86 /* This version of `getopt' appears to the caller like standard Unix `getopt'
     84/* This version of `getopt' appears to the caller like standard Unix 'getopt'
    8785   but it behaves differently for the user, since it allows the user
    8886   to intersperse the options with the other arguments.
     
    662660        {
    663661          if (opterr)
    664             fprintf (stderr, _("%s: option `%s' is ambiguous\n"),
     662            fprintf (stderr, _("%s: option '%s' is ambiguous\n"),
    665663                     argv[0], argv[optind]);
    666664          nextchar += strlen (nextchar);
     
    686684                    /* --option */
    687685                    fprintf (stderr,
    688                      _("%s: option `--%s' doesn't allow an argument\n"),
     686                     _("%s: option '--%s' doesn't allow an argument\n"),
    689687                     argv[0], pfound->name);
    690688                   else
    691689                    /* +option or -option */
    692690                    fprintf (stderr,
    693                      _("%s: option `%c%s' doesn't allow an argument\n"),
     691                     _("%s: option '%c%s' doesn't allow an argument\n"),
    694692                     argv[0], argv[optind - 1][0], pfound->name);
    695693
     
    708706                  if (opterr)
    709707                    fprintf (stderr,
    710                            _("%s: option `%s' requires an argument\n"),
     708                           _("%s: option '%s' requires an argument\n"),
    711709                           argv[0], argv[optind - 1]);
    712710                  nextchar += strlen (nextchar);
     
    737735              if (argv[optind][1] == '-')
    738736                /* --option */
    739                 fprintf (stderr, _("%s: unrecognized option `--%s'\n"),
     737                fprintf (stderr, _("%s: unrecognized option '--%s'\n"),
    740738                         argv[0], nextchar);
    741739              else
    742740                /* +option or -option */
    743                 fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),
     741                fprintf (stderr, _("%s: unrecognized option '%c%s'\n"),
    744742                         argv[0], argv[optind][0], nextchar);
    745743            }
     
    847845          {
    848846            if (opterr)
    849               fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),
     847              fprintf (stderr, _("%s: option '-W %s' is ambiguous\n"),
    850848                       argv[0], argv[optind]);
    851849            nextchar += strlen (nextchar);
     
    866864                    if (opterr)
    867865                      fprintf (stderr, _("\
    868 %s: option `-W %s' doesn't allow an argument\n"),
     866%s: option '-W %s' doesn't allow an argument\n"),
    869867                               argv[0], pfound->name);
    870868
     
    881879                    if (opterr)
    882880                      fprintf (stderr,
    883                                _("%s: option `%s' requires an argument\n"),
     881                               _("%s: option '%s' requires an argument\n"),
    884882                               argv[0], argv[optind - 1]);
    885883                    nextchar += strlen (nextchar);
     
    10081006
    10091007        case 'c':
    1010           printf ("option c with value `%s'\n", optarg);
     1008          printf ("option c with value '%s'\n", optarg);
    10111009          break;
    10121010
Note: See TracChangeset for help on using the changeset viewer.