utils.c 283 B

1234567891011121314151617181920212223
  1. #include <stdio.h>
  2. extern char *line;
  3. extern unsigned linenum;
  4. int nerrors = 0;
  5. int
  6. err(char *msg)
  7. {
  8. nerrors++;
  9. return fprintf(stderr, "line: %u: %s; line: %s\n", linenum, msg, line);
  10. }
  11. int
  12. notimplemented(void)
  13. {
  14. err("this function is not yet implemented :(");
  15. return 1;
  16. }