|
From: <mik...@us...> - 2008-10-09 17:26:37
|
Revision: 1079
http://omc.svn.sourceforge.net/omc/?rev=1079&view=rev
Author: mike-brasher
Date: 2008-10-09 17:26:31 +0000 (Thu, 09 Oct 2008)
Log Message:
-----------
Fixed ISO compiler errors (illegal mixed declarations)
Modified Paths:
--------------
cmpi-bindings/trunk/swig/cmpi_types.i
Modified: cmpi-bindings/trunk/swig/cmpi_types.i
===================================================================
--- cmpi-bindings/trunk/swig/cmpi_types.i 2008-10-08 17:46:22 UTC (rev 1078)
+++ cmpi-bindings/trunk/swig/cmpi_types.i 2008-10-09 17:26:31 UTC (rev 1079)
@@ -459,6 +459,7 @@
SV*
#endif
get_key_at(int index) {
+ Target_Type tdata;
CMPIString *s = NULL;
CMPIStatus st = { CMPI_RC_OK, NULL };
CMPIData data = CMGetKeyAt($self, index, &s, &st);
@@ -470,7 +471,7 @@
}
TARGET_THREAD_BEGIN_BLOCK;
- Target_Type tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
+ tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
#if defined (SWIGPYTHON)
result = PyTuple_New(2);
PyTuple_SetItem(result, 0, tdata);
@@ -793,16 +794,18 @@
#endif
get_property_at(int index)
{
+ Target_Type tdata;
+ Target_Type result;
CMPIString *s = NULL;
CMPIStatus st = { CMPI_RC_OK, NULL };
CMPIData data = CMGetPropertyAt($self, index, &s, &st);
- Target_Type result = Target_Null;
+ result = Target_Null;
if (st.rc)
{
RAISE_IF(st);
return result;
}
- Target_Type tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
+ tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
TARGET_THREAD_BEGIN_BLOCK;
#if defined (SWIGPYTHON)
@@ -932,17 +935,19 @@
#endif
get_arg_at(int index)
{
+ Target_Type tdata;
+ Target_Type result;
CMPIString *s = NULL;
CMPIStatus st = { CMPI_RC_OK, NULL };
CMPIData data = CMGetArgAt($self, index, &s, &st);
- Target_Type result = Target_Null;
+ result = Target_Null;
if (st.rc)
{
RAISE_IF(st);
return result;
}
- Target_Type tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
+ tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
TARGET_THREAD_BEGIN_BLOCK;
#if defined (SWIGPYTHON)
@@ -1182,17 +1187,19 @@
SV*
#endif
get_entry_at(int index) {
+ Target_Type tdata;
+ Target_Type result;
CMPIString *s = NULL;
CMPIStatus st = { CMPI_RC_OK, NULL };
CMPIData data = CMGetContextEntryAt($self, index, &s, &st);
- Target_Type result = Target_Null;
+ result = Target_Null;
if (st.rc)
{
RAISE_IF(st);
return result;
}
- Target_Type tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
+ tdata = SWIG_NewPointerObj((void*) data_clone(&data), SWIGTYPE_p__CMPIData, 1);
TARGET_THREAD_BEGIN_BLOCK;
#if defined (SWIGPYTHON)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|