Lines Matching refs:arg
153 char* arg;
156 while (tokscan(s, &s, " %s ", &arg) == 1)
158 if (streq(arg, "archive"))
160 else if (streq(arg, "dontcare"))
162 else if (streq(arg, "implicit"))
164 else if (streq(arg, "metarule"))
166 else if (streq(arg, "virtual"))
184 char* arg;
229 tokscan(s, &val, " %s ", &arg);
231 mamvar(pp, arg, strdup(val));
235 tokscan(s, &s, " %s ", &arg);
236 if (n) r = mamrule(pp, arg);
237 else if (!(r = getrule(pp, arg)) && !(r = alias(pp, arg)))
239 errorf(mp, mp, 1, "%s: reference to undefined rule", arg);
260 tokscan(s, &s, " %s ", &arg);
261 if (streq(arg, "-"))
266 else r = mamrule(pp, arg);
281 tokscan(s, &s, " %s ", &arg);
282 if (!streq(pp->fp->rule->name, arg) && !alias(pp, arg))
283 errorf(mp, mp, 1, "%s: %s %s expected", arg, op, pp->fp->rule->name);
289 tokscan(s, NiL, " %s %lu %s ", &arg, &t, &val);
290 if (!(r = getrule(pp, arg)) && !(r = alias(pp, arg)))
292 errorf(mp, mp, 1, "%s: reference to undefined rule", arg);
300 tokscan(s, NiL, " %s %d ", &arg, &n);
301 if (!(r = getrule(pp, arg)) && !(r = alias(pp, arg)))
303 errorf(mp, mp, 1, "%s: reference to undefined rule", arg);
310 tokscan(s, &s, " %s ", &arg);
311 if (streq(arg, "mam"))
313 tokscan(s, NiL, " %s ", &arg);
315 mp->version = strdup(arg);
317 else if (streq(arg, "start"))
330 else if (streq(arg, "finish"))
336 errorf(mp, mp, 1, "%s: not enough done ops", arg);
343 else if (streq(arg, "pwd"))
348 else if (streq(arg, "view"))
353 else errorf(mp, mp, 1, "%s: unknown %s attribute", arg, op);