/[emacs]/emacs/lib-src/getopt1.c
ViewVC logotype

Diff of /emacs/lib-src/getopt1.c

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

revision 1.6 by eggert, Tue Oct 19 07:17:16 1999 UTC revision 1.6.18.1 by miles, Fri Apr 4 06:19:55 2003 UTC
# Line 1  Line 1 
1  /* getopt_long and getopt_long_only entry points for GNU getopt.  /* getopt_long and getopt_long_only entry points for GNU getopt.
2     Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98     Copyright (C) 1987,88,89,90,91,92,93,94,96,97,98
3       Free Software Foundation, Inc.       Free Software Foundation, Inc.
4     NOTE: The canonical source of this file is maintained with the GNU C Library.     This file is part of the GNU C Library.
    Bugs can be reported to bug-glibc@gnu.org.  
5    
6     This program is free software; you can redistribute it and/or modify it     This program is free software; you can redistribute it and/or modify
7     under the terms of the GNU General Public License as published by the     it under the terms of the GNU General Public License as published by
8     Free Software Foundation; either version 2, or (at your option) any     the Free Software Foundation; either version 2, or (at your option)
9     later version.     any later version.
10    
11     This program 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     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.     GNU General Public License for more details.
15    
16     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License along
17     along with this program; if not, write to the Free Software Foundation,     with this program; if not, write to the Free Software Foundation,
18     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */     Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
19    
20  #ifdef HAVE_CONFIG_H  #ifdef HAVE_CONFIG_H
21  #include <config.h>  #include <config.h>
22    #endif
23    
24    #ifdef _LIBC
25    # include <getopt.h>
26  #else  #else
27    # include "getopt.h"
28    #endif
29    
30  #if !defined __STDC__ || !__STDC__  #if !defined __STDC__ || !__STDC__
31  /* This is a separate conditional since some stdc systems  /* This is a separate conditional since some stdc systems
32     reject `defined (const)'.  */     reject `defined (const)'.  */
# Line 28  Line 34 
34  #define const  #define const
35  #endif  #endif
36  #endif  #endif
 #endif  
   
 #include "getopt.h"  
37    
38  #include <stdio.h>  #include <stdio.h>
39    
# Line 90  getopt_long_only (argc, argv, options, l Line 93  getopt_long_only (argc, argv, options, l
93    return _getopt_internal (argc, argv, options, long_options, opt_index, 1);    return _getopt_internal (argc, argv, options, long_options, opt_index, 1);
94  }  }
95    
96    # ifdef _LIBC
97    libc_hidden_def (getopt_long)
98    libc_hidden_def (getopt_long_only)
99    # endif
100    
101  #endif  /* Not ELIDE_CODE.  */  #endif  /* Not ELIDE_CODE.  */
102    
# Line 186  main (argc, argv) Line 193  main (argc, argv)
193  }  }
194    
195  #endif /* TEST */  #endif /* TEST */
196    

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.6.18.1

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