mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Revert "#include cleanup (#10216)"
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816>.
This reverts commit e628c66f9d
.
This commit is contained in:
parent
c8955c078a
commit
2d3427c507
@ -51,8 +51,8 @@
|
|||||||
* with more specialized routines when the requested size is known.
|
* with more specialized routines when the requested size is known.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "zend_alloc.h"
|
|
||||||
#include "zend.h"
|
#include "zend.h"
|
||||||
|
#include "zend_alloc.h"
|
||||||
#include "zend_globals.h"
|
#include "zend_globals.h"
|
||||||
#include "zend_operators.h"
|
#include "zend_operators.h"
|
||||||
#include "zend_multiply.h"
|
#include "zend_multiply.h"
|
||||||
|
@ -21,8 +21,10 @@
|
|||||||
#ifndef ZEND_ALLOC_H
|
#ifndef ZEND_ALLOC_H
|
||||||
#define ZEND_ALLOC_H
|
#define ZEND_ALLOC_H
|
||||||
|
|
||||||
#include "zend_portability.h" // for BEGIN_EXTERN_C
|
#include <stdio.h>
|
||||||
#include "zend_types.h" // for zend_result
|
|
||||||
|
#include "../TSRM/TSRM.h"
|
||||||
|
#include "zend.h"
|
||||||
|
|
||||||
#ifndef ZEND_MM_ALIGNMENT
|
#ifndef ZEND_MM_ALIGNMENT
|
||||||
# error "ZEND_MM_ALIGNMENT was not defined during configure"
|
# error "ZEND_MM_ALIGNMENT was not defined during configure"
|
||||||
|
@ -18,7 +18,6 @@
|
|||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "zend_hash.h"
|
|
||||||
#include "zend.h"
|
#include "zend.h"
|
||||||
#include "zend_globals.h"
|
#include "zend_globals.h"
|
||||||
#include "zend_variables.h"
|
#include "zend_variables.h"
|
||||||
|
@ -21,11 +21,8 @@
|
|||||||
#ifndef ZEND_HASH_H
|
#ifndef ZEND_HASH_H
|
||||||
#define ZEND_HASH_H
|
#define ZEND_HASH_H
|
||||||
|
|
||||||
#include "zend_alloc.h" // for pefree()
|
#include "zend.h"
|
||||||
#include "zend_long.h"
|
#include "zend_sort.h"
|
||||||
#include "zend_portability.h" // for BEGIN_EXTERN_C
|
|
||||||
#include "zend_sort.h" // for zend_sort()
|
|
||||||
#include "zend_string.h" // for ZSTR_VAL()
|
|
||||||
|
|
||||||
#define HASH_KEY_IS_STRING 1
|
#define HASH_KEY_IS_STRING 1
|
||||||
#define HASH_KEY_IS_LONG 2
|
#define HASH_KEY_IS_LONG 2
|
||||||
|
@ -21,12 +21,6 @@
|
|||||||
#ifndef ZEND_PORTABILITY_H
|
#ifndef ZEND_PORTABILITY_H
|
||||||
#define ZEND_PORTABILITY_H
|
#define ZEND_PORTABILITY_H
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
|
||||||
#include "config.w32.h"
|
|
||||||
#else
|
|
||||||
#include "php_config.h" // for HAVE_*
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define BEGIN_EXTERN_C() extern "C" {
|
#define BEGIN_EXTERN_C() extern "C" {
|
||||||
#define END_EXTERN_C() }
|
#define END_EXTERN_C() }
|
||||||
|
@ -17,7 +17,9 @@
|
|||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "zend.h"
|
||||||
#include "zend_sort.h"
|
#include "zend_sort.h"
|
||||||
|
#include <limits.h>
|
||||||
|
|
||||||
static inline void zend_sort_2(void *a, void *b, compare_func_t cmp, swap_func_t swp) /* {{{ */ {
|
static inline void zend_sort_2(void *a, void *b, compare_func_t cmp, swap_func_t swp) /* {{{ */ {
|
||||||
if (cmp(a, b) > 0) {
|
if (cmp(a, b) > 0) {
|
||||||
|
@ -20,9 +20,6 @@
|
|||||||
#ifndef ZEND_SORT_H
|
#ifndef ZEND_SORT_H
|
||||||
#define ZEND_SORT_H
|
#define ZEND_SORT_H
|
||||||
|
|
||||||
#include "zend_portability.h" // for BEGIN_EXTERN_C
|
|
||||||
#include "zend_types.h" // for compare_func_t, swap_func_t
|
|
||||||
|
|
||||||
BEGIN_EXTERN_C()
|
BEGIN_EXTERN_C()
|
||||||
ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
|
ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
|
||||||
ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
|
ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp);
|
||||||
|
@ -16,7 +16,6 @@
|
|||||||
+----------------------------------------------------------------------+
|
+----------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "zend_string.h"
|
|
||||||
#include "zend.h"
|
#include "zend.h"
|
||||||
#include "zend_globals.h"
|
#include "zend_globals.h"
|
||||||
|
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
#ifndef ZEND_STRING_H
|
#ifndef ZEND_STRING_H
|
||||||
#define ZEND_STRING_H
|
#define ZEND_STRING_H
|
||||||
|
|
||||||
#include "zend_alloc.h" // for pemalloc()
|
#include "zend.h"
|
||||||
#include "zend_portability.h" // for BEGIN_EXTERN_C
|
|
||||||
#include "zend_types.h" // for zend_string
|
|
||||||
|
|
||||||
BEGIN_EXTERN_C()
|
BEGIN_EXTERN_C()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user