fixed build errors
This commit is contained in:
parent
5aa192871b
commit
4c61851a48
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
int yylex();
|
int yylex();
|
||||||
|
|
||||||
extern int yyerror(char* s);
|
extern int yyerror(const char* s);
|
||||||
|
|
||||||
#define YY_USER_ACTION beginToken(yytext);
|
#define YY_USER_ACTION beginToken(yytext);
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
#include <sys/log.h>
|
#include <sys/log.h>
|
||||||
#include <sys/col.h>
|
#include <sys/col.h>
|
||||||
|
|
||||||
int yyerror(char*);
|
int yyerror(const char*);
|
||||||
|
|
||||||
extern char* buffer;
|
extern char* buffer;
|
||||||
extern int yylineno;
|
extern int yylineno;
|
||||||
|
@ -234,7 +234,7 @@ const char* ERROR = "error";
|
||||||
const char* WARNING = "warning";
|
const char* WARNING = "warning";
|
||||||
const char* NOTE = "note";
|
const char* NOTE = "note";
|
||||||
|
|
||||||
int print_message(const char* kind, char* message) {
|
int print_message(const char* kind, const char* message) {
|
||||||
// number of characters written
|
// number of characters written
|
||||||
int char_count = 0;
|
int char_count = 0;
|
||||||
// highlight to use
|
// highlight to use
|
||||||
|
@ -289,9 +289,10 @@ int print_message(const char* kind, char* message) {
|
||||||
}
|
}
|
||||||
|
|
||||||
char_count += printf("%s\n\n", RESET);
|
char_count += printf("%s\n\n", RESET);
|
||||||
|
|
||||||
|
return char_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
int yyerror(char *s) {
|
int yyerror(const char *s) {
|
||||||
print_message(ERROR, s);
|
return print_message(ERROR, s);
|
||||||
return 0;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue