ORBit2 problems (more info)
- From: Laszlo PETER <Laszlo Peter ireland sun com>
- To: ORBit list <orbit-list gnome org>
- Subject: ORBit2 problems (more info)
- Date: Fri, 13 Jul 2001 16:14:22 +0100
Hi,
I got a little further with the idl compilation problems in test/inhibit.
orbit-idl put things like this in the header file:
#pragma include_defs foo.h# 5#if !defined(ORBIT_DECL_Foo_Child) && !defined(_Foo_Child_defined)
I found this in src/idl-compiler/orbit-idl-c-headers.c,
function ch_output_codefrag():
if(!strncmp(list->data,
"#pragma include_defs",
sizeof("#pragma include_defs")-1)) {
in my case list->data contained
"#pragma\tinclude_defs foo.h"
That's why it wasn't processed. Changing the space to a tab
in the strncmp() produced this output:
#pragma include_defs foo.h
# 5#if !defined(ORBIT_DECL_Foo_Child) && !defined(_Foo_Child_defined)
The else branch for the above if is:
} else
fprintf(ci->fh, "%s", (char *)list->data);
Changing the "%s" to "%s\n" orbit-idl produced the proper output.
I still have the core dump problem in test/everything though.
Any help would be appreciated.
Thanks,
Laca
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]