static const char EMSG_NO_MATH[] = "Math support is not compiled in";
#endif
-static void syntax_error(const char * const message) {
-
- fprintf(stderr, "awk: %s:%i: %s\n", programname, lineno, message);
+static void syntax_error(const char * const message)
+{
+ error_msg("%s:%i: %s", programname, lineno, message);
awk_exit(1);
}
free(s);
break;
case 'W':
- fprintf(stderr, "Warning: unrecognized option '-W %s' ignored\n", optarg);
+ error_msg("Warning: unrecognized option '-W %s' ignored\n", optarg);
break;
default: