~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to lib/getopt_int.h

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Internal declarations for getopt.
2
 
   Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2011 Free Software
 
2
   Copyright (C) 1989-1994, 1996-1999, 2001, 2003-2004, 2009-2012 Free Software
3
3
   Foundation, Inc.
4
4
   This file is part of the GNU C Library.
5
5
 
40
40
   stop option processing when the first non-option is seen.
41
41
   This is what Unix does.
42
42
   This mode of operation is selected by either setting the environment
43
 
   variable POSIXLY_CORRECT, or using `+' as the first character
 
43
   variable POSIXLY_CORRECT, or using '+' as the first character
44
44
   of the list of option characters, or by calling getopt.
45
45
 
46
46
   PERMUTE is the default.  We permute the contents of ARGV as we
52
52
   written to expect options and other ARGV-elements in any order
53
53
   and that care about the ordering of the two.  We describe each
54
54
   non-option ARGV-element as if it were the argument of an option
55
 
   with character code 1.  Using `-' as the first character of the
 
55
   with character code 1.  Using '-' as the first character of the
56
56
   list of option characters selects this mode of operation.
57
57
 
58
 
   The special argument `--' forces an end of option-scanning regardless
59
 
   of the value of `ordering'.  In the case of RETURN_IN_ORDER, only
60
 
   `--' can cause `getopt' to return -1 with `optind' != ARGC.  */
 
58
   The special argument '--' forces an end of option-scanning regardless
 
59
   of the value of 'ordering'.  In the case of RETURN_IN_ORDER, only
 
60
   '--' can cause 'getopt' to return -1 with 'optind' != ARGC.  */
61
61
 
62
62
enum __ord
63
63
  {
99
99
  /* Handle permutation of arguments.  */
100
100
 
101
101
  /* Describe the part of ARGV that contains non-options that have
102
 
     been skipped.  `first_nonopt' is the index in ARGV of the first
103
 
     of them; `last_nonopt' is the index after the last of them.  */
 
102
     been skipped.  'first_nonopt' is the index in ARGV of the first
 
103
     of them; 'last_nonopt' is the index after the last of them.  */
104
104
 
105
105
  int __first_nonopt;
106
106
  int __last_nonopt;