main.h 467 B

12345678910111213141516171819
  1. #include <errnames.h>
  2. #include <cdefs.h>
  3. #define ERRTAG(s) \
  4. const char errtag[] = s;
  5. #define ERRLIST(s) \
  6. const char errlist[] = s "\0";
  7. /* No envp is passed to main. Normally the compiler would not catch it,
  8. so make sure there's a prototype for main().
  9. If needed, envp = argv + argc + 1
  10. Those few tools that ignore argc/argv should define int main(noargs). */
  11. int main(int argc, char** argv);
  12. #define noargs int argc __unused, char** argv __unused