Because argv[0] is never used, shift it out from the argument list.
* src/complain.c (complain_args): Here.
* src/scan-skel.l (at_complain): Adjust argv and argc.
Signed-off-by: Akim Demaille <akim@lrde.epita.fr>
+ case 1:
+ complain_indent (loc, w, indent, "%s", _(argv[0]));
+ break;
- complain_indent (loc, w, indent, "%s", _(argv[1]));
+ complain_indent (loc, w, indent, _(argv[0]), argv[1]);
- complain_indent (loc, w, indent, _(argv[1]), argv[2]);
+ complain_indent (loc, w, indent, _(argv[0]), argv[1], argv[2]);
- complain_indent (loc, w, indent, _(argv[1]), argv[2], argv[3]);
+ complain_indent (loc, w, indent, _(argv[0]), argv[1], argv[2], argv[3]);
- complain_indent (loc, w, indent, _(argv[1]), argv[2], argv[3], argv[4]);
- break;
- case 6:
- complain_indent (loc, w, indent, _(argv[1]), argv[2], argv[3], argv[4],
- argv[5]);
+ complain_indent (loc, w, indent, _(argv[0]), argv[1], argv[2], argv[3],
+ argv[4]);
break;
default:
complain (loc, fatal, "too many arguments for complains");
break;
default:
complain (loc, fatal, "too many arguments for complains");
indent += SUB_INDENT;
else
indent = 0;
indent += SUB_INDENT;
else
indent = 0;
- complain_args (locp, w, &indent, argc - 3, argv + 3);
+ complain_args (locp, w, &indent, argc - 4, argv + 4);
if (w & silent)
indent -= SUB_INDENT;
}
if (w & silent)
indent -= SUB_INDENT;
}