diff options
author | Sascha Schumann <sas@php.net> | 2000-06-14 07:06:33 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-06-14 07:06:33 +0000 |
commit | 35f43ad274c504b68ff17d644fd2d16a3feb4a49 (patch) | |
tree | 71584496a80d1dc162252f30fcaa0dfacff24b1f | |
parent | e4e7047e4a9e2210b19b35d09a207e1b2d9dd193 (diff) | |
download | php-git-35f43ad274c504b68ff17d644fd2d16a3feb4a49.tar.gz |
Rename C0x-inline to C9x-inline, and frame preprocessor directives in
zend_gcc_inline.c with #ifndef C9X_INLINE_SEMANTICS..#endif.
-rw-r--r-- | Zend/Zend.m4 | 14 | ||||
-rw-r--r-- | Zend/zend_execute.h | 10 | ||||
-rw-r--r-- | Zend/zend_gcc_inline.c | 12 | ||||
-rw-r--r-- | Zend/zend_operators.h | 2 |
4 files changed, 24 insertions, 14 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index d80cb694b7..227eefdf74 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -101,10 +101,10 @@ AC_ARG_ENABLE(debug, 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, @@ -129,8 +129,8 @@ AC_ARG_ENABLE(memory-limit, 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) @@ -165,8 +165,8 @@ else 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) diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index 490f44c1d3..4707991a44 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -55,7 +55,7 @@ void shutdown_executor(ELS_D); 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(); @@ -69,7 +69,7 @@ ZEND_API inline void safe_free_zval_ptr(zval *p) 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; @@ -113,7 +113,7 @@ ZEND_API int zval_update_constant(zval **pp, void *arg); /* 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; @@ -129,7 +129,7 @@ ZEND_API inline void zend_ptr_stack_clear_multiple(ELS_D) #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; @@ -161,7 +161,7 @@ ZEND_API zend_bool zend_is_executing(void); #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; diff --git a/Zend/zend_gcc_inline.c b/Zend/zend_gcc_inline.c index 6c92a1fbf1..439cd17b29 100644 --- a/Zend/zend_gcc_inline.c +++ b/Zend/zend_gcc_inline.c @@ -1,7 +1,17 @@ -#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 diff --git a/Zend/zend_operators.h b/Zend/zend_operators.h index c522b1d492..20369c7fd5 100644 --- a/Zend/zend_operators.h +++ b/Zend/zend_operators.h @@ -50,7 +50,7 @@ ZEND_API int is_not_equal_function(zval *result, zval *op1, zval *op2); 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; |