Re: [PATCH] Re: Serious bug in idl compiler (non-compiling generated files)
- From: Jules Colding <colding omesc com>
- To: ORBit2 <orbit-list gnome org>
- Subject: Re: [PATCH] Re: Serious bug in idl compiler (non-compiling generated files)
- Date: Tue, 21 Dec 2004 14:00:06 +0100
On Tue, 2004-12-21 at 13:27 +0100, Jules Colding wrote:
Bummer, the former patch was reverted. This is the correct one:
diff -uprN ORBit2.orig/ChangeLog ORBit2/ChangeLog
--- ORBit2.orig/ChangeLog 2004-12-17 13:39:42.000000000 +0100
+++ ORBit2/ChangeLog 2004-12-21 13:59:13.078436629 +0100
@@ -1,3 +1,8 @@
+2004-12-21 Jules Colding <colding omesc com>
+
+ * src/idl-compiler/orbit-idl-c-utils.c (orbit_cbe_get_const): Fix IDL compilation
+ of "const char N = '\x0A';" definitions.
+
2004-12-17 Michael Meeks <michael meeks novell com>
* src/orb/orb-core/corba-any.c (ORBit_demarshal_value):
diff -uprN ORBit2.orig/src/idl-compiler/orbit-idl-c-utils.c ORBit2/src/idl-compiler/orbit-idl-c-utils.c
--- ORBit2.orig/src/idl-compiler/orbit-idl-c-utils.c 2004-08-13 12:37:27.000000000 +0200
+++ ORBit2/src/idl-compiler/orbit-idl-c-utils.c 2004-12-21 13:56:49.369160312 +0100
@@ -345,7 +345,7 @@ orbit_cbe_get_const(IDL_tree tree)
g_string_printf(tmpstr, "%s", IDL_BOOLEAN(tree).value?"CORBA_TRUE":"CORBA_FALSE");
break;
case IDLN_CHAR:
- g_string_printf(tmpstr, "'%s'", IDL_CHAR(tree).value);
+ g_string_printf(tmpstr, "'\\x%X'", *(unsigned char *)IDL_CHAR(tree).value);
break;
case IDLN_FLOAT:
g_string_printf(tmpstr, "%f", IDL_FLOAT(tree).value);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]