Changeset 3138 for vendor/gnumake/current/getopt.c
- Timestamp:
- Mar 12, 2018, 8:32:29 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/gnumake/current/getopt.c
r2596 r3138 4 4 before changing it! 5 5 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. 6 Copyright (C) 1987-2016 Free Software Foundation, Inc. 9 7 10 8 NOTE: The canonical source of this file is maintained with the GNU C Library. … … 84 82 85 83 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' 87 85 but it behaves differently for the user, since it allows the user 88 86 to intersperse the options with the other arguments. … … 662 660 { 663 661 if (opterr) 664 fprintf (stderr, _("%s: option `%s' is ambiguous\n"),662 fprintf (stderr, _("%s: option '%s' is ambiguous\n"), 665 663 argv[0], argv[optind]); 666 664 nextchar += strlen (nextchar); … … 686 684 /* --option */ 687 685 fprintf (stderr, 688 _("%s: option `--%s' doesn't allow an argument\n"),686 _("%s: option '--%s' doesn't allow an argument\n"), 689 687 argv[0], pfound->name); 690 688 else 691 689 /* +option or -option */ 692 690 fprintf (stderr, 693 _("%s: option `%c%s' doesn't allow an argument\n"),691 _("%s: option '%c%s' doesn't allow an argument\n"), 694 692 argv[0], argv[optind - 1][0], pfound->name); 695 693 … … 708 706 if (opterr) 709 707 fprintf (stderr, 710 _("%s: option `%s' requires an argument\n"),708 _("%s: option '%s' requires an argument\n"), 711 709 argv[0], argv[optind - 1]); 712 710 nextchar += strlen (nextchar); … … 737 735 if (argv[optind][1] == '-') 738 736 /* --option */ 739 fprintf (stderr, _("%s: unrecognized option `--%s'\n"),737 fprintf (stderr, _("%s: unrecognized option '--%s'\n"), 740 738 argv[0], nextchar); 741 739 else 742 740 /* +option or -option */ 743 fprintf (stderr, _("%s: unrecognized option `%c%s'\n"),741 fprintf (stderr, _("%s: unrecognized option '%c%s'\n"), 744 742 argv[0], argv[optind][0], nextchar); 745 743 } … … 847 845 { 848 846 if (opterr) 849 fprintf (stderr, _("%s: option `-W %s' is ambiguous\n"),847 fprintf (stderr, _("%s: option '-W %s' is ambiguous\n"), 850 848 argv[0], argv[optind]); 851 849 nextchar += strlen (nextchar); … … 866 864 if (opterr) 867 865 fprintf (stderr, _("\ 868 %s: option `-W %s' doesn't allow an argument\n"),866 %s: option '-W %s' doesn't allow an argument\n"), 869 867 argv[0], pfound->name); 870 868 … … 881 879 if (opterr) 882 880 fprintf (stderr, 883 _("%s: option `%s' requires an argument\n"),881 _("%s: option '%s' requires an argument\n"), 884 882 argv[0], argv[optind - 1]); 885 883 nextchar += strlen (nextchar); … … 1008 1006 1009 1007 case 'c': 1010 printf ("option c with value `%s'\n", optarg);1008 printf ("option c with value '%s'\n", optarg); 1011 1009 break; 1012 1010
Note:
See TracChangeset
for help on using the changeset viewer.