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