Changeset 2591 for trunk/src/kmk/getopt.c
- Timestamp:
- Jun 17, 2012, 10:45:31 PM (13 years ago)
- Location:
- trunk/src/kmk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk
- Property svn:ignore
-
old new 13 13 stamp-* 14 14 makebook* 15 15 16 .*gdbinit 17 .gdb_history 18 16 19 *.dep 17 20 *.dvi … … 31 34 *.pg 32 35 *.pgs 36 33 37 README 34 38 README.DOS 35 39 README.W32 40 README.OS2 36 41 aclocal.m4 37 42 autom4te.cache … … 52 57 config.h.W32 53 58 config.h-vms 59 54 60 loadavg 55 61 loadavg.c 56 62 make 63 57 64 .deps 58 65 .dep_segment 66 ID 67 TAGS 68 59 69 _* 60 70 sun4 … … 72 82 sol2 73 83 i486-linux 84 74 85 customs 86 75 87 install-sh 76 88 mkinstalldirs 89 90 .directive.asc
-
- Property svn:ignore
-
trunk/src/kmk/getopt.c
r1993 r2591 5 5 6 6 Copyright (C) 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 7 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software8 Foundation, Inc.7 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 8 2010 Free Software Foundation, Inc. 9 9 10 10 NOTE: The canonical source of this file is maintained with the GNU C Library. … … 683 683 { 684 684 if (opterr) 685 if (argv[optind - 1][1] == '-') 686 /* --option */ 687 fprintf (stderr, 688 _("%s: option `--%s' doesn't allow an argument\n"), 689 argv[0], pfound->name); 690 else 691 /* +option or -option */ 692 fprintf (stderr, 693 _("%s: option `%c%s' doesn't allow an argument\n"), 694 argv[0], argv[optind - 1][0], pfound->name); 685 { 686 if (argv[optind - 1][1] == '-') 687 /* --option */ 688 fprintf (stderr, 689 _("%s: option `--%s' doesn't allow an argument\n"), 690 argv[0], pfound->name); 691 else 692 /* +option or -option */ 693 fprintf (stderr, 694 _("%s: option `%c%s' doesn't allow an argument\n"), 695 argv[0], argv[optind - 1][0], pfound->name); 696 } 695 697 696 698 nextchar += strlen (nextchar);
Note:
See TracChangeset
for help on using the changeset viewer.