widl: Modify generic_msg() to behave like all the other Wine tracing methods, that is to not append a '\n' to the message.

oldstable
Francois Gouget 2007-10-18 17:11:30 +02:00 committed by Alexandre Julliard
parent 599c74296c
commit 4152085af1
4 changed files with 7 additions and 9 deletions

View File

@ -839,7 +839,7 @@ static void write_coclass_guid(type_t *cocl)
static void write_com_interface(type_t *iface)
{
if (!iface->funcs && !iface->ref) {
parser_warning("%s has no methods", iface->name);
parser_warning("%s has no methods\n", iface->name);
return;
}

View File

@ -113,10 +113,10 @@ UUID *parse_uuid(const char *u)
yy_pop_state();
lineno = (int)strtol(yytext, &cptr, 10);
if(!lineno)
parser_error("Malformed '#...' line-directive; invalid linenumber");
parser_error("Malformed '#...' line-directive; invalid linenumber\n");
fname = strchr(cptr, '"');
if(!fname)
parser_error("Malformed '#...' line-directive; missing filename");
parser_error("Malformed '#...' line-directive; missing filename\n");
fname++;
cptr = strchr(fname, '"');
if(!cptr)
@ -352,7 +352,7 @@ static void addcchar(char c)
cbufalloc += 1024;
cbuffer = xrealloc(cbuffer, cbufalloc * sizeof(cbuffer[0]));
if(cbufalloc > 65536)
parser_warning("Reallocating string buffer larger than 64kB");
parser_warning("Reallocating string buffer larger than 64kB\n");
}
cbuffer[cbufidx++] = c;
}
@ -414,7 +414,7 @@ int do_import(char *fname)
first_import = import;
if (!(path = wpp_find_include( fname, input_name )))
parser_error("Unable to open include file %s", fname);
parser_error("Unable to open include file %s\n", fname);
import_stack[ptr].temp_name = temp_name;
import_stack[ptr].input_name = input_name;
@ -427,7 +427,7 @@ int do_import(char *fname)
if (ret) exit(1);
if((f = fopen(temp_name, "r")) == NULL)
parser_error("Unable to open %s", temp_name);
parser_error("Unable to open %s\n", temp_name);
import_stack[ptr].state = YY_CURRENT_BUFFER;
yy_switch_to_buffer(yy_create_buffer(f, YY_BUF_SIZE));

View File

@ -509,7 +509,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
gen_stub(iface, cur, cname, *proc_offset);
*proc_offset += get_size_procformatstring_func( cur );
if (midx == -1) midx = idx;
else if (midx != idx) parser_error("method index mismatch in write_proxy");
else if (midx != idx) parser_error("method index mismatch in write_proxy\n");
midx++;
}
}

View File

@ -62,8 +62,6 @@ static void generic_msg(const char *s, const char *t, const char *n, va_list ap)
free(cpy);
}
}
fprintf(stderr, "\n");
}