widl: Modify generic_msg() to behave like all the other Wine tracing methods, that is to not append a '\n' to the message.
This commit is contained in:
parent
599c74296c
commit
4152085af1
|
@ -839,7 +839,7 @@ static void write_coclass_guid(type_t *cocl)
|
||||||
static void write_com_interface(type_t *iface)
|
static void write_com_interface(type_t *iface)
|
||||||
{
|
{
|
||||||
if (!iface->funcs && !iface->ref) {
|
if (!iface->funcs && !iface->ref) {
|
||||||
parser_warning("%s has no methods", iface->name);
|
parser_warning("%s has no methods\n", iface->name);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -113,10 +113,10 @@ UUID *parse_uuid(const char *u)
|
||||||
yy_pop_state();
|
yy_pop_state();
|
||||||
lineno = (int)strtol(yytext, &cptr, 10);
|
lineno = (int)strtol(yytext, &cptr, 10);
|
||||||
if(!lineno)
|
if(!lineno)
|
||||||
parser_error("Malformed '#...' line-directive; invalid linenumber");
|
parser_error("Malformed '#...' line-directive; invalid linenumber\n");
|
||||||
fname = strchr(cptr, '"');
|
fname = strchr(cptr, '"');
|
||||||
if(!fname)
|
if(!fname)
|
||||||
parser_error("Malformed '#...' line-directive; missing filename");
|
parser_error("Malformed '#...' line-directive; missing filename\n");
|
||||||
fname++;
|
fname++;
|
||||||
cptr = strchr(fname, '"');
|
cptr = strchr(fname, '"');
|
||||||
if(!cptr)
|
if(!cptr)
|
||||||
|
@ -352,7 +352,7 @@ static void addcchar(char c)
|
||||||
cbufalloc += 1024;
|
cbufalloc += 1024;
|
||||||
cbuffer = xrealloc(cbuffer, cbufalloc * sizeof(cbuffer[0]));
|
cbuffer = xrealloc(cbuffer, cbufalloc * sizeof(cbuffer[0]));
|
||||||
if(cbufalloc > 65536)
|
if(cbufalloc > 65536)
|
||||||
parser_warning("Reallocating string buffer larger than 64kB");
|
parser_warning("Reallocating string buffer larger than 64kB\n");
|
||||||
}
|
}
|
||||||
cbuffer[cbufidx++] = c;
|
cbuffer[cbufidx++] = c;
|
||||||
}
|
}
|
||||||
|
@ -414,7 +414,7 @@ int do_import(char *fname)
|
||||||
first_import = import;
|
first_import = import;
|
||||||
|
|
||||||
if (!(path = wpp_find_include( fname, input_name )))
|
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].temp_name = temp_name;
|
||||||
import_stack[ptr].input_name = input_name;
|
import_stack[ptr].input_name = input_name;
|
||||||
|
@ -427,7 +427,7 @@ int do_import(char *fname)
|
||||||
if (ret) exit(1);
|
if (ret) exit(1);
|
||||||
|
|
||||||
if((f = fopen(temp_name, "r")) == NULL)
|
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;
|
import_stack[ptr].state = YY_CURRENT_BUFFER;
|
||||||
yy_switch_to_buffer(yy_create_buffer(f, YY_BUF_SIZE));
|
yy_switch_to_buffer(yy_create_buffer(f, YY_BUF_SIZE));
|
||||||
|
|
|
@ -509,7 +509,7 @@ static void write_proxy(type_t *iface, unsigned int *proc_offset)
|
||||||
gen_stub(iface, cur, cname, *proc_offset);
|
gen_stub(iface, cur, cname, *proc_offset);
|
||||||
*proc_offset += get_size_procformatstring_func( cur );
|
*proc_offset += get_size_procformatstring_func( cur );
|
||||||
if (midx == -1) midx = idx;
|
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++;
|
midx++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,8 +62,6 @@ static void generic_msg(const char *s, const char *t, const char *n, va_list ap)
|
||||||
free(cpy);
|
free(cpy);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue