Lines Matching refs:argv
162 int main(argc, argv) in main() argument
164 char **argv;
177 ProgramName = argv[0];
184 if (argc == 2 && argv[1][0] == '@') {
193 if ((afd = open(argv[1]+1, O_RDONLY)) < 0)
194 fatalerr("cannot open \"%s\"\n", argv[1]+1);
198 fatalerr("failed to read %s\n", argv[1]+1);
225 nargv[0] = argv[0];
229 argv = nargv;
231 for(argc--, argv++; argc; argc--, argv++) {
233 if (endmarker && strcmp (endmarker, *argv) == 0) {
237 if (**argv != '-') {
239 if (endmarker && **argv == '+')
241 *fp++ = argv[0];
244 switch(argv[0][1]) {
246 endmarker = &argv[0][2];
250 if (argv[0][2] == '\0') {
251 argv++;
254 for (p=argv[0] + 2; *p ; p++)
259 define(argv[0] + 2, &maininclist);
264 *incp++ = argv[0]+2;
266 *(incp-1) = *(++argv);
271 defincdir = argv[0]+2;
280 if (argv[0][2] == '\0') {
281 argv++;
283 width = atoi(argv[0]);
285 width = atoi(argv[0]+2);
293 if (argv[0][2] == '\0') {
294 argv++;
296 objsuffix = argv[0];
298 objsuffix = argv[0]+2;
302 if (argv[0][2] == '\0') {
303 argv++;
305 objprefix = argv[0];
307 objprefix = argv[0]+2;
313 if (argv[0][2])
314 _debugmask = atoi(argv[0]+2);
319 startat = argv[0]+2;
321 startat = *(++argv);
330 makefile = argv[0]+2;
332 makefile = *(++argv);
350 warning("ignoring option %s\n", argv[0]);