/[groff]/groff/src/include/getopt_int.h
ViewVC logotype

Diff of /groff/src/include/getopt_int.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by wl, Thu Jun 16 09:47:48 2005 UTC revision 1.4 by wl, Thu Jun 23 11:33:00 2005 UTC
# Line 3  Line 3 
3     Free Software Foundation, Inc.     Free Software Foundation, Inc.
4     This file is part of the GNU C Library.     This file is part of the GNU C Library.
5    
6     The GNU C Library is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or modify
7     modify it under the terms of the GNU Lesser General Public     it under the terms of the GNU General Public License as published by
8     License as published by the Free Software Foundation; either     the Free Software Foundation; either version 2, or (at your option)
9     version 2.1 of the License, or (at your option) any later version.     any later version.
10    
11     The GNU C Library is distributed in the hope that it will be useful,     This program is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     Lesser General Public License for more details.     GNU General Public License for more details.
15    
16     You should have received a copy of the GNU Lesser General Public     You should have received a copy of the GNU General Public License along
17     License along with the GNU C Library; if not, write to the Free     with this program; if not, write to the Free Software Foundation,
18     Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA     Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
    02111-1307 USA.  */  
19    
20  #ifndef _GETOPT_INT_H  #ifndef _GETOPT_INT_H
21  #define _GETOPT_INT_H   1  #define _GETOPT_INT_H   1
22    
23  extern int _getopt_internal (int ___argc, char *const *___argv,  extern int _getopt_internal (int ___argc, char **___argv,
24                               const char *__shortopts,                               const char *__shortopts,
25                               const struct option *__longopts, int *__longind,                               const struct option *__longopts, int *__longind,
26                               int __long_only);                               int __long_only, int __posixly_correct);
27    
28    
29  /* Reentrant versions which can handle parsing multiple argument  /* Reentrant versions which can handle parsing multiple argument
# Line 65  struct _getopt_data Line 64  struct _getopt_data
64       This is what Unix does.       This is what Unix does.
65       This mode of operation is selected by either setting the environment       This mode of operation is selected by either setting the environment
66       variable POSIXLY_CORRECT, or using `+' as the first character       variable POSIXLY_CORRECT, or using `+' as the first character
67       of the list of option characters.       of the list of option characters, or by calling getopt.
68    
69       PERMUTE is the default.  We permute the contents of ARGV as we       PERMUTE is the default.  We permute the contents of ARGV as we
70       scan, so that eventually all the non-options are at the end.       scan, so that eventually all the non-options are at the end.
# Line 88  struct _getopt_data Line 87  struct _getopt_data
87        REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER        REQUIRE_ORDER, PERMUTE, RETURN_IN_ORDER
88      } __ordering;      } __ordering;
89    
90    /* If the POSIXLY_CORRECT environment variable is set.  */    /* If the POSIXLY_CORRECT environment variable is set
91         or getopt was called.  */
92    int __posixly_correct;    int __posixly_correct;
93    
94    
# Line 111  struct _getopt_data Line 111  struct _getopt_data
111     default values and to clear the initialization flag.  */     default values and to clear the initialization flag.  */
112  #define _GETOPT_DATA_INITIALIZER        { 1, 1 }  #define _GETOPT_DATA_INITIALIZER        { 1, 1 }
113    
114  extern int _getopt_internal_r (int ___argc, char *const *___argv,  extern int _getopt_internal_r (int ___argc, char **___argv,
115                                 const char *__shortopts,                                 const char *__shortopts,
116                                 const struct option *__longopts, int *__longind,                                 const struct option *__longopts, int *__longind,
117                                 int __long_only, struct _getopt_data *__data);                                 int __long_only, int __posixly_correct,
118                                   struct _getopt_data *__data);
119    
120  extern int _getopt_long_r (int ___argc, char *const *___argv,  extern int _getopt_long_r (int ___argc, char **___argv,
121                             const char *__shortopts,                             const char *__shortopts,
122                             const struct option *__longopts, int *__longind,                             const struct option *__longopts, int *__longind,
123                             struct _getopt_data *__data);                             struct _getopt_data *__data);
124    
125  extern int _getopt_long_only_r (int ___argc, char *const *___argv,  extern int _getopt_long_only_r (int ___argc, char **___argv,
126                                  const char *__shortopts,                                  const char *__shortopts,
127                                  const struct option *__longopts,                                  const struct option *__longopts,
128                                  int *__longind,                                  int *__longind,

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26