bold debug msgs text
parent
3874c3d4bb
commit
19307045b3
|
@ -7,7 +7,7 @@
|
|||
extern int yylineno;
|
||||
|
||||
void yyerror(const char *s) {
|
||||
fprintf(stderr, "\033[91mError at line %i: %s\033[0m\n", yylineno, s);
|
||||
fprintf(stderr, "\033[1;91mError at line %i: %s\033[0m\n", yylineno, s);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
|
|
@ -161,12 +161,12 @@ int main(int argc, char **argv) {
|
|||
if (argc > 1) {
|
||||
FILE *f = fopen(argv[1], "r");
|
||||
if (!f) {
|
||||
perror("\033[91mFailed to open file\033[0m");
|
||||
perror("\033[1;91mFailed to open file\033[0m");
|
||||
return 1;
|
||||
}
|
||||
yyin = f;
|
||||
}
|
||||
yyparse();
|
||||
printf("\033[92mGOOD CODE\033[0m");
|
||||
printf("\033[1;92mGOOD CODE\033[0m\n");
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue