/*
 * This file was generated by orbit-idl - DO NOT EDIT!
 */

#include <string.h>
#include "test-tc.h"

#if ( (TC_IMPL_TC_TestTCStruct_0 == 't') \
&& (TC_IMPL_TC_TestTCStruct_1 == 'e') \
&& (TC_IMPL_TC_TestTCStruct_2 == 's') \
&& (TC_IMPL_TC_TestTCStruct_3 == 't') \
&& (TC_IMPL_TC_TestTCStruct_4 == '_') \
&& (TC_IMPL_TC_TestTCStruct_5 == 't') \
&& (TC_IMPL_TC_TestTCStruct_6 == 'c') \
) && !defined(TC_DEF_TC_TestTCStruct)
#define TC_DEF_TC_TestTCStruct 1
static const char *anon_subnames_array1[] = {"long_value", "string_value"};
static const CORBA_TypeCode anon_subtypes_array2[] = {(CORBA_TypeCode) & TC_CORBA_long_struct, (CORBA_TypeCode) & TC_CORBA_string_struct};
const struct CORBA_TypeCode_struct TC_TestTCStruct_struct = {
   {{(ORBit_RootObject_Interface *) & ORBit_TypeCode_epv, TRUE, -1}, ORBIT_PSEUDO_TYPECODE},
   CORBA_tk_struct, "TestTCStruct", "IDL:TestTCStruct:1.0",
   0, 2,
   (const char **) anon_subnames_array1,
   (CORBA_TypeCode *) anon_subtypes_array2,
   NULL,
   CORBA_OBJECT_NIL, 0, -1, 0, 0
};
#endif
#if ( (TC_IMPL_TC_TestTC_0 == 't') \
&& (TC_IMPL_TC_TestTC_1 == 'e') \
&& (TC_IMPL_TC_TestTC_2 == 's') \
&& (TC_IMPL_TC_TestTC_3 == 't') \
&& (TC_IMPL_TC_TestTC_4 == '_') \
&& (TC_IMPL_TC_TestTC_5 == 't') \
&& (TC_IMPL_TC_TestTC_6 == 'c') \
) && !defined(TC_DEF_TC_TestTC)
#define TC_DEF_TC_TestTC 1
const struct CORBA_TypeCode_struct TC_TestTC_struct = {
   {{(ORBit_RootObject_Interface *) & ORBit_TypeCode_epv, TRUE, -1}, ORBIT_PSEUDO_TYPECODE},
   CORBA_tk_objref, "TestTC", "IDL:TestTC:1.0",
   0, 0,
   NULL,
   NULL,
   NULL,
   CORBA_OBJECT_NIL, 0, -1, 0, 0
};
#endif
gpointer 
TestTCStruct__free(gpointer mem, gpointer dat, CORBA_boolean free_strings)
{
   TestTCStruct *var = mem;
   if (free_strings) {
      CORBA_string__free(&(var->string_value), NULL, free_strings);
   }
   return (gpointer) (var + 1);
}

TestTCStruct *
TestTCStruct__alloc(void)
{
   TestTCStruct *retval;
   retval = ORBit_alloc(sizeof(TestTCStruct), (ORBit_free_childvals) TestTCStruct__free, GUINT_TO_POINTER(1));
   memset(&(retval->string_value), '\0', sizeof(retval->string_value));
   return retval;
}
CORBA_unsigned_long TestTC__classid = 0;
