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 |
{ |
{ |
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': |
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': |
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': |