Constify parsehdr error/warning reporting function arguments.

This commit is contained in:
nemerle 2016-05-20 10:24:01 +02:00
parent 7f1a4e26bd
commit 126e206b08
2 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ boolT phDoCB(int id, char *data) {
return true;
}
void phError(char *errmsg) {
void phError(const char *errmsg) {
char msg[200];
sprintf(msg, "PH *ERROR*\nFile: %s L=%d C=%d O=%lu\n%s", fileName, line, col,
@ -66,7 +66,7 @@ void phError(char *errmsg) {
printf(msg);
}
void phWarning(char *errmsg) {
void phWarning(const char *errmsg) {
char msg[200];
sprintf(msg, "PH -warning-\nFile: %s L=%d C=%d O=%lu\n%s\n", fileName, line,

View File

@ -20,8 +20,8 @@ typedef unsigned char boolT; /* 8 bits */
#define ERRF stdout
void phError(char *errmsg);
void phWarning(char *errmsg);
void phError(const char * errmsg);
void phWarning(const char * errmsg);
#define ERR(msg) phError(msg)
#ifdef DEBUG