/[bison]/bison/src/getargs.c
ViewVC logotype

Diff of /bison/src/getargs.c

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

revision 1.24.2.5 by akim, Mon Nov 19 09:21:26 2001 UTC revision 1.24.2.6 by akim, Tue Jan 8 17:41:38 2002 UTC
# Line 159  warranty; not even for MERCHANTABILITY o Line 159  warranty; not even for MERCHANTABILITY o
159  | Process the options.  |  | Process the options.  |
160  `----------------------*/  `----------------------*/
161    
162    /* Under DOS, there is no difference on the case.  This can be
163       troublesome when looking for `.tab' etc.  */
164    #ifdef MSDOS
165    # define AS_FILE_NAME(File) (strlwr (File), (File))
166    #else
167    # define AS_FILE_NAME(File) (File)
168    #endif
169    
170  void  void
171  getargs (int argc, char *argv[])  getargs (int argc, char *argv[])
172  {  {
# Line 186  getargs (int argc, char *argv[]) Line 194  getargs (int argc, char *argv[])
194        case 'g':        case 'g':
195          /* Here, the -g and --graph=FILE options are differentiated.  */          /* Here, the -g and --graph=FILE options are differentiated.  */
196          graph_flag = 1;          graph_flag = 1;
197          spec_graph_file = optarg;          spec_graph_file = AS_FILE_NAME (optarg);
198          break;          break;
199    
200        case 'v':        case 'v':
# Line 194  getargs (int argc, char *argv[]) Line 202  getargs (int argc, char *argv[])
202          break;          break;
203    
204        case 'S':        case 'S':
205          skeleton = optarg;          skeleton = AS_FILE_NAME (optarg);
206          break;          break;
207    
208        case 'd':        case 'd':
209          /* Here, the -d and --defines options are differentiated.  */          /* Here, the -d and --defines options are differentiated.  */
210          defines_flag = 1;          defines_flag = 1;
211          spec_defines_file = optarg;          spec_defines_file = AS_FILE_NAME (optarg);
212          break;          break;
213    
214        case 'l':        case 'l':
# Line 224  getargs (int argc, char *argv[]) Line 232  getargs (int argc, char *argv[])
232          break;          break;
233    
234        case 'o':        case 'o':
235          spec_outfile = optarg;          spec_outfile = AS_FILE_NAME (optarg);
236          break;          break;
237    
238        case 'b':        case 'b':
239          spec_file_prefix = optarg;          spec_file_prefix = AS_FILE_NAME (optarg);
240          break;          break;
241    
242        case 'p':        case 'p':

Legend:
Removed from v.1.24.2.5  
changed lines
  Added in v.1.24.2.6

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