ORBit2 problems (more info)



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]