Missing OrbitDebugFlags in orbit-debug.h, invalid C89 code
- From: Albert Chin <orbit-list thewrittenword com>
- To: orbit-list gnome org
- Subject: Missing OrbitDebugFlags in orbit-debug.h, invalid C89 code
- Date: Wed, 16 Oct 2002 14:13:43 -0500
1. ERRORS missing from orbit-debug.h. IRIX C compiler complains without
this.
2. Invalid C89 code.
--
albert chin (china@thewrittenword.com)
-- snip snip
--- src/orb/orb-core/orbit-debug.h.orig Wed Oct 16 14:08:07 2002
+++ src/orb/orb-core/orbit-debug.h Wed Oct 16 14:08:14 2002
@@ -24,6 +24,7 @@
# define dprintf(args...)
# define tprintf(args...)
#else
+#define ERRORS (OrbitDebugFlags)0
#define MESSAGES (OrbitDebugFlags)0
#define TYPES (OrbitDebugFlags)0
#define OBJECTS (OrbitDebugFlags)0
--- test/everything/client.c.orig Fri Oct 4 09:20:33 2002
+++ test/everything/client.c Wed Oct 16 14:12:37 2002
@@ -1458,9 +1458,12 @@
CORBA_char *inout_str = NULL, *out_str, *ret_str;
CORBA_char **out_str_shim = &out_str;
- gpointer args[] = { NULL, &inout_str, &out_str_shim };
+ gpointer args[] = { NULL, NULL, NULL };
gpointer ret = &ret_str;
+ args[1] = &inout_str;
+ args[2] = &out_str_shim;
+
/* Not a broken connection */
g_assert (ev->_major == CORBA_NO_EXCEPTION);
@@ -1484,8 +1487,11 @@
const CORBA_char *inout_str,
CORBA_Environment *ev)
{
- gpointer args[] = { &in_str, &inout_str, NULL };
+ gpointer args[] = { NULL, NULL, NULL };
ORBit_IMethod *m_data;
+
+ args[0] = &in_str;
+ args[1] = &inout_str;
m_data = &test_BasicServer__iinterface.methods._buffer[3];
/* if this failed, we re-ordered the IDL ... */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]