zend_gcc_inline.c with #ifndef C9X_INLINE_SEMANTICS..#endif.
AC_DEFUN(LIBZEND_OTHER_CHECKS,[
AC_ARG_ENABLE(c0x-inline,
-[ --enable-c0x-inline Enable C0x-inline semantics],[
- ZEND_C0X_INLINE=$enableval
+[ --enable-c0x-inline Enable C9x-inline semantics],[
+ ZEND_C9X_INLINE=$enableval
],[
- ZEND_C0X_INLINE=no
+ ZEND_C9X_INLINE=no
])
AC_ARG_ENABLE(experimental-zts,
ZEND_MEMORY_LIMIT=no
])
-AC_MSG_CHECKING(whether to enable C0x-inline semantics)
-AC_MSG_RESULT($ZEND_C0X_INLINE)
+AC_MSG_CHECKING(whether to enable C9x-inline semantics)
+AC_MSG_RESULT($ZEND_C9X_INLINE)
AC_MSG_CHECKING(whether to enable experimental ZTS)
AC_MSG_RESULT($ZEND_EXPERIMENTAL_ZTS)
ZEND_SCANNER_TYPE=c
fi
-if test "$ZEND_C0X_INLINE" = "yes"; then
- AC_DEFINE(C0X_INLINE_SEMANTICS, 1, [whether to enable C0x-inline semantics])
+if test "$ZEND_C9X_INLINE" = "yes"; then
+ AC_DEFINE(C9X_INLINE_SEMANTICS, 1, [whether to enable C9x-inline semantics])
else
ZEND_GCC=libZend_gcc.la
AC_SUBST(ZEND_GCC)
void execute(zend_op_array *op_array ELS_DC);
ZEND_API int zend_is_true(zval *op);
ZEND_API inline void safe_free_zval_ptr(zval *p)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
ELS_FETCH();
ZEND_API int zend_eval_string(char *str, zval *retval_ptr CLS_DC ELS_DC);
ZEND_API inline int i_zend_is_true(zval *op)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
int result;
/* dedicated Zend executor functions - do not use! */
ZEND_API inline void zend_ptr_stack_clear_multiple(ELS_D)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
void **p = EG(argument_stack).top_element-2;
int delete_count = (ulong) *p;
#endif
ZEND_API inline int zend_ptr_stack_get_arg(int requested_arg, void **data ELS_DC)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
void **p = EG(argument_stack).top_element-2;
int arg_count = (ulong) *p;
#define active_opline (*EG(opline_ptr))
ZEND_API inline void zend_assign_to_variable_reference(znode *result, zval **variable_ptr_ptr, zval **value_ptr_ptr, temp_variable *Ts ELS_DC)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
zval *variable_ptr = *variable_ptr_ptr;
zval *value_ptr;
-#define C0X_INLINE_SEMANTICS
+/*
+ * If C9X_INLINE_SEMANTICS is already defined here,
+ * we assume the user does not want GCC inline semantics,
+ * but compiles this file always.
+ */
+
+#ifndef C9X_INLINE_SEMANTICS
+
+#define C9X_INLINE_SEMANTICS
#include "zend.h"
#include "zend_execute.h"
#include "zend_operators.h"
+
+#endif
ZEND_API int is_smaller_function(zval *result, zval *op1, zval *op2);
ZEND_API int is_smaller_or_equal_function(zval *result, zval *op1, zval *op2);
ZEND_API inline int is_numeric_string(char *str, int length, long *lval, double *dval)
-#if defined(C0X_INLINE_SEMANTICS)
+#if defined(C9X_INLINE_SEMANTICS)
{
long local_lval;
double local_dval;