From: Scott Wood Date: Thu, 27 Sep 2007 22:46:59 +0000 (-0500) Subject: idlcomp: Make idl_error() accept a const pointer. X-Git-Url: http://git.buserror.net/cgi-bin/gitweb.cgi?p=polintos%2Fscott%2Fpriv.git;a=commitdiff_plain;h=5d151caf35ee9a990dda9a3af370ca30a8b7f638;hp=bc696ad9b0d5a2ad04e2de5ad8b89f746dd78491 idlcomp: Make idl_error() accept a const pointer. --- diff --git a/idlcomp/idlc.h b/idlcomp/idlc.h index 84c28ae..651fae6 100644 --- a/idlcomp/idlc.h +++ b/idlcomp/idlc.h @@ -43,7 +43,7 @@ using std::vector; int yylex(); int idl_lex(); #define cdl_lex idl_lex -void idl_error(char *s); +void idl_error(const char *s); #define cdl_error idl_error diff --git a/idlcomp/main.cc b/idlcomp/main.cc index a38319f..c21532e 100644 --- a/idlcomp/main.cc +++ b/idlcomp/main.cc @@ -797,7 +797,7 @@ extern "C" int yywrap() extern char *yytext; -void idl_error(char *s) +void idl_error(const char *s) { if (strlen(yytext)) fprintf(stderr, "%s:%d: %s at \"%s\".\n", cur_input_file, curline, s, yytext);