wrc: Add a trailing linefeed to a couple of error() messages.
Unlike most of the other wrc error functions, error() does not append a trailing linefeed. Signed-off-by: Francois Gouget <fgouget@free.fr> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7ccf07ae8f
commit
c35b41a3f2
|
@ -1192,7 +1192,7 @@ static void push_buffer(pp_entry_t *ppp, char *filename, char *incname, int pop)
|
||||||
if(ppy_debug)
|
if(ppy_debug)
|
||||||
printf("push_buffer(%d): %p %p %p %d\n", bufferstackidx, ppp, filename, incname, pop);
|
printf("push_buffer(%d): %p %p %p %d\n", bufferstackidx, ppp, filename, incname, pop);
|
||||||
if(bufferstackidx >= MAXBUFFERSTACK)
|
if(bufferstackidx >= MAXBUFFERSTACK)
|
||||||
error("Buffer stack overflow");
|
error("Buffer stack overflow\n");
|
||||||
|
|
||||||
memset(&bufferstack[bufferstackidx], 0, sizeof(bufferstack[0]));
|
memset(&bufferstack[bufferstackidx], 0, sizeof(bufferstack[0]));
|
||||||
bufferstack[bufferstackidx].bufferstate = YY_CURRENT_BUFFER;
|
bufferstack[bufferstackidx].bufferstate = YY_CURRENT_BUFFER;
|
||||||
|
|
|
@ -421,7 +421,7 @@ static const char * const pp_if_state_str[] = {
|
||||||
void pp_push_if(pp_if_state_t s)
|
void pp_push_if(pp_if_state_t s)
|
||||||
{
|
{
|
||||||
if(if_stack_idx >= MAXIFSTACK)
|
if(if_stack_idx >= MAXIFSTACK)
|
||||||
error("#if-stack overflow; #{if,ifdef,ifndef} nested too deeply (> %d)", MAXIFSTACK);
|
error("#if-stack overflow; #{if,ifdef,ifndef} nested too deeply (> %d)\n", MAXIFSTACK);
|
||||||
|
|
||||||
if(pp_flex_debug)
|
if(pp_flex_debug)
|
||||||
fprintf(stderr, "Push if %s:%d: %s(%d) -> %s(%d)\n", pp_status.input, pp_status.line_number, pp_if_state_str[pp_if_state()], if_stack_idx, pp_if_state_str[s], if_stack_idx+1);
|
fprintf(stderr, "Push if %s:%d: %s(%d) -> %s(%d)\n", pp_status.input, pp_status.line_number, pp_if_state_str[pp_if_state()], if_stack_idx, pp_if_state_str[s], if_stack_idx+1);
|
||||||
|
|
Loading…
Reference in New Issue