lib/com_err only use error_message for the exported libcom_err
This avoids using the same function name in compile_et internally Andrew Bartlett Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
5ff461d0af
commit
995d305f8c
@@ -33,7 +33,7 @@
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
void error_message (const char *, ...)
|
||||
void _lex_error_message (const char *, ...)
|
||||
__attribute__ ((format (printf, 1, 2)));
|
||||
|
||||
int yylex(void);
|
||||
|
@@ -95,7 +95,7 @@ getstring(void)
|
||||
continue;
|
||||
}
|
||||
if(c == '\n'){
|
||||
error_message("unterminated string");
|
||||
_lex_error_message("unterminated string");
|
||||
lineno++;
|
||||
break;
|
||||
}
|
||||
@@ -115,7 +115,7 @@ getstring(void)
|
||||
}
|
||||
|
||||
void
|
||||
error_message (const char *format, ...)
|
||||
_lex_error_message (const char *format, ...)
|
||||
{
|
||||
va_list args;
|
||||
|
||||
|
@@ -170,5 +170,5 @@ name2number(const char *str)
|
||||
void
|
||||
yyerror (char *s)
|
||||
{
|
||||
error_message ("%s\n", s);
|
||||
_lex_error_message ("%s\n", s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user