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

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

#if ( (TC_IMPL_TC_TestAnyStruct_0 == 't') \
&& (TC_IMPL_TC_TestAnyStruct_1 == 'e') \
&& (TC_IMPL_TC_TestAnyStruct_2 == 's') \
&& (TC_IMPL_TC_TestAnyStruct_3 == 't') \
&& (TC_IMPL_TC_TestAnyStruct_4 == '_') \
&& (TC_IMPL_TC_TestAnyStruct_5 == 'a') \
&& (TC_IMPL_TC_TestAnyStruct_6 == 'n') \
&& (TC_IMPL_TC_TestAnyStruct_7 == 'y') \
) && !defined(TC_DEF_TC_TestAnyStruct)
#define TC_DEF_TC_TestAnyStruct 1
static const char *anon_subnames_array1[] = {"string_value", "long_value"};
static const CORBA_TypeCode anon_subtypes_array2[] = {(CORBA_TypeCode) & TC_CORBA_string_struct, (CORBA_TypeCode) & TC_CORBA_long_struct};
const struct CORBA_TypeCode_struct TC_TestAnyStruct_struct = {
   {{(ORBit_RootObject_Interface *) & ORBit_TypeCode_epv, TRUE, -1}, ORBIT_PSEUDO_TYPECODE},
   CORBA_tk_struct, "TestAnyStruct", "IDL:TestAnyStruct: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_TestAny_0 == 't') \
&& (TC_IMPL_TC_TestAny_1 == 'e') \
&& (TC_IMPL_TC_TestAny_2 == 's') \
&& (TC_IMPL_TC_TestAny_3 == 't') \
&& (TC_IMPL_TC_TestAny_4 == '_') \
&& (TC_IMPL_TC_TestAny_5 == 'a') \
&& (TC_IMPL_TC_TestAny_6 == 'n') \
&& (TC_IMPL_TC_TestAny_7 == 'y') \
) && !defined(TC_DEF_TC_TestAny)
#define TC_DEF_TC_TestAny 1
const struct CORBA_TypeCode_struct TC_TestAny_struct = {
   {{(ORBit_RootObject_Interface *) & ORBit_TypeCode_epv, TRUE, -1}, ORBIT_PSEUDO_TYPECODE},
   CORBA_tk_objref, "TestAny", "IDL:TestAny:1.0",
   0, 0,
   NULL,
   NULL,
   NULL,
   CORBA_OBJECT_NIL, 0, -1, 0, 0
};
#endif
gpointer 
TestAnyStruct__free(gpointer mem, gpointer dat, CORBA_boolean free_strings)
{
   TestAnyStruct *var = mem;
   if (free_strings) {
      CORBA_string__free(&(var->string_value), NULL, free_strings);
   }
   return (gpointer) (var + 1);
}

TestAnyStruct *
TestAnyStruct__alloc(void)
{
   TestAnyStruct *retval;
   retval = ORBit_alloc(sizeof(TestAnyStruct), (ORBit_free_childvals) TestAnyStruct__free, GUINT_TO_POINTER(1));
   memset(&(retval->string_value), '\0', sizeof(retval->string_value));
   return retval;
}
CORBA_unsigned_long TestAny__classid = 0;
