}
/* validate parameter types */
- if (ppPZ_TYPE_P(arameters[0]) != IS_STRING)
+ if (Z_TYPE_P(ppParameters[0]) != IS_STRING)
goto error;
/* find type information */
- p_enum->mpEnumType = TypeManager_FindEnum(ppPZ_STRVAL_P(arameters[0]));
+ p_enum->mpEnumType = TypeManager_FindEnum(Z_STRVAL_P(ppParameters[0]));
if (p_enum->mpEnumType == NULL)
{
- zend_error(E_WARNING, "(Satellite) unknown enum '%s'", ppPZ_STRVAL_P(arameters[0]));
+ zend_error(E_WARNING, "(Satellite) unknown enum '%s'", Z_STRVAL_P(ppParameters[0]));
goto error;
}
/* add to hashtable */
INIT_PZVAL(p_destination_item); /* testing! */
zend_hash_next_index_insert(
- pDZ_ARRVAL_P(estination),
+ Z_ARRVAL_P(pDestination),
&p_destination_item,
sizeof(zval *),
NULL);
/* find type info */
pObject->mpInterface =
- TypeManager_FindInterface(pObject->mCorbaOZ_TYPE_P(bject)_id);
+ TypeManager_FindInterface(pObject->mCorbaObject->type_id);
if (pObject->mpInterface == NULL)
{
zend_error(E_WARNING, "(Satellite) unknown interface '%s'",
- pObject->mCorbaOZ_TYPE_P(bject)_id);
+ pObject->mCorbaObject->type_id);
/* TODO: set exception */
goto error;
}
goto error;
}
- if (Z_TYPE_PP(pp_ior) != IS_STRING)
+ if ((*pp_ior)->type != IS_STRING)
{
/* TODO: set exception */
goto error;
/* initialize data */
if (!OrbitObject_InitializeData(
p_object,
- Z_STRVAL_PP(pp_ior)))
+ (*pp_ior)->value.str.val))
{
goto error;
}
/* find type info */
p_object->mpInterface =
- TypeManager_FindInterface(p_object->mCorbaOZ_TYPE_P(bject)_id);
+ TypeManager_FindInterface(p_object->mCorbaObject->type_id);
if (p_object->mpInterface == NULL)
{
zend_error(E_WARNING, "(Satellite) unknown interface '%s'",
- p_object->mCorbaOZ_TYPE_P(bject)_id);
+ p_object->mCorbaObject->type_id);
goto error;
}
}
/* validate parameter types */
- if (ppPZ_TYPE_P(arameters[0]) != IS_STRING)
+ if (Z_TYPE_P(ppParameters[0]) != IS_STRING)
{
zend_error(E_WARNING, "(Satellite) IOR is not a string");
goto error;
/* initialize data object */
if ( !OrbitObject_InitializeData(
p_object,
- ppPZ_STRVAL_P(arameters[0])) )
+ Z_STRVAL_P(ppParameters[0])) )
{
goto error;
}
{
/* no such operation */
zend_error(E_WARNING, "(Satellite) unknown operation name '%s' in interface '%s'",
- pFunctionName, pObject->mCorbaOZ_TYPE_P(bject)_id);
+ pFunctionName, pObject->mCorbaObject->type_id);
goto error;
}
/*printf("InterfaceType_FindAttribute failed for property %s\n", pPropertyName);*/
/* no such atttribute */
zend_error(E_WARNING, "(Satellite) unknown attribute name '%s' in interface '%s'",
- pPropertyName, pObject->mCorbaOZ_TYPE_P(bject)_id);
+ pPropertyName, pObject->mCorbaObject->type_id);
goto OrbitObject_PutProperty_error;
}
/*printf("InterfaceType_FindAttribute failed for property %s\n", pPropertyName);*/
/* no such atttribute */
zend_error(E_WARNING, "(Satellite) unknown attribute name '%s' in interface '%s'",
- pPropertyName, pObject->mCorbaOZ_TYPE_P(bject)_id);
+ pPropertyName, pObject->mCorbaObject->type_id);
goto OrbitObject_GetProperty_error;
}
}
/* validate parameter types */
- if (ppPZ_TYPE_P(arameters[0]) != IS_STRING)
+ if (Z_TYPE_P(ppParameters[0]) != IS_STRING)
goto error;
/* initialize struct */
- if (!OrbitStruct_Initialize(ppPZ_STRVAL_P(arameters[0]), p_struct))
+ if (!OrbitStruct_Initialize(Z_STRVAL_P(ppParameters[0]), p_struct))
goto error;
*ppStruct = p_struct;
char * p_name = IDL_IDENT(IDL_LIST(declaration).data).str;
p_members->_buffer[i].name = CORBA_string_dup(p_name);
- Z_TYPE(p_members->_buffer[i]) = (CORBA_TypeCode)
+ p_members->_buffer[i].type = (CORBA_TypeCode)
CORBA_Object_duplicate((CORBA_Object)type_code, orbit_get_environment());
- Z_TYPE(p_members->_buffer[i])_def = NULL; /* XXX */
+ p_members->_buffer[i].type_def = NULL; /* XXX */
i++;
} while ((declaration = IDL_LIST(declaration).next));
if (pSource == NULL)
return TRUE;
- if (pSZ_TYPE_P(ource) != IS_BOOL && pSZ_TYPE_P(ource) != IS_LONG)
+ if (Z_TYPE_P(pSource) != IS_BOOL && Z_TYPE_P(pSource) != IS_LONG)
return FALSE;
- *p_value = pSZ_LVAL_P(ource) != 0;
+ *p_value = Z_LVAL_P(pSource) != 0;
return TRUE;
}
return TRUE;
/*convert_to_double(pSource);*/
- if (pSZ_TYPE_P(ource) != IS_DOUBLE)
+ if (Z_TYPE_P(pSource) != IS_DOUBLE)
return FALSE;
- *p_value = pSZ_DVAL_P(ource);
+ *p_value = Z_DVAL_P(pSource);
return TRUE;
}
return TRUE;
convert_to_long((zval*)pSource); /* so long "const" */
- if (pSZ_TYPE_P(ource) != IS_LONG)
+ if (Z_TYPE_P(pSource) != IS_LONG)
return FALSE;
- *p_value = pSZ_LVAL_P(ource);
+ *p_value = Z_LVAL_P(pSource);
return TRUE;
}
return TRUE;
/* convert_to_long((zval *)pSource);*/ /* discard const */;
- if (pSZ_TYPE_P(ource) != IS_LONG)
+ if (Z_TYPE_P(pSource) != IS_LONG)
{
-/* printf("source value type is %i in satellite_zval_to_namedvalue_short\n", pSZ_TYPE_P(ource));*/
+/* printf("source value type is %i in satellite_zval_to_namedvalue_short\n", Z_TYPE_P(pSource));*/
return FALSE;
}
- *p_value = pSZ_LVAL_P(ource);
+ *p_value = Z_LVAL_P(pSource);
return TRUE;
}
if (pSource == NULL)
return TRUE; /* nothing else to do */
- if (pSZ_TYPE_P(ource) != IS_OBJECT)
+ if (Z_TYPE_P(pSource) != IS_OBJECT)
goto error;
/* see that it's a corba object */
if (pSource == NULL)
return TRUE; /* nothing to do */
- if (pSZ_TYPE_P(ource) != IS_ARRAY)
+ if (Z_TYPE_P(pSource) != IS_ARRAY)
goto error; /* bad source type */
- p_hashtable = pSZ_ARRVAL_P(ource);
+ p_hashtable = Z_ARRVAL_P(pSource);
member_count = zend_hash_num_elements(p_hashtable);
/* prepare sequence octet */
#if 0
convert_to_string((zval *)pSource); /* discard const */
- if (pSZ_TYPE_P(ource) == IS_NULL)
+ if (Z_TYPE_P(pSource) == IS_NULL)
return TRUE; /* do nothing */
#endif
- if (pSZ_TYPE_P(ource) != IS_STRING)
+ if (Z_TYPE_P(pSource) != IS_STRING)
goto error;
- *p_value = CORBA_string_dup(pSZ_STRVAL_P(ource));
+ *p_value = CORBA_string_dup(Z_STRVAL_P(pSource));
pDestination->len = strlen(*p_value);
return TRUE;
return TRUE;
/* see that it's an object */
- if (pSZ_TYPE_P(ource) != IS_OBJECT)
+ if (Z_TYPE_P(pSource) != IS_OBJECT)
goto error; /* bad source type */
/* see that it's a structure object */