mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Zend/zend_fibers: include cleanup
This commit is contained in:
committed by
George Peter Banyard
parent
308fd311ea
commit
aa1cd02a43
@@ -17,6 +17,8 @@
|
||||
+----------------------------------------------------------------------+
|
||||
*/
|
||||
|
||||
#include "zend_fibers.h"
|
||||
#include "zend_objects.h" // for zend_object_std_init()
|
||||
#include "zend.h"
|
||||
#include "zend_API.h"
|
||||
#include "zend_ini.h"
|
||||
@@ -42,6 +44,9 @@
|
||||
# include <sys/mman.h>
|
||||
# include <limits.h>
|
||||
|
||||
# include <errno.h>
|
||||
# include <string.h> // for strerror()
|
||||
|
||||
# if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
|
||||
# define MAP_ANONYMOUS MAP_ANON
|
||||
# endif
|
||||
|
||||
@@ -20,14 +20,18 @@
|
||||
#ifndef ZEND_FIBERS_H
|
||||
#define ZEND_FIBERS_H
|
||||
|
||||
#include "zend_API.h"
|
||||
#include "zend_types.h"
|
||||
#include "zend_API.h" // for struct zend_fcall_info
|
||||
#include "zend_portability.h" // for BEGIN_EXTERN_C
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#define ZEND_FIBER_GUARD_PAGES 1
|
||||
|
||||
#define ZEND_FIBER_DEFAULT_C_STACK_SIZE (4096 * (((sizeof(void *)) < 8) ? 256 : 512))
|
||||
#define ZEND_FIBER_VM_STACK_SIZE (1024 * sizeof(zval))
|
||||
|
||||
typedef struct _zend_fiber_context zend_fiber_context;
|
||||
|
||||
BEGIN_EXTERN_C()
|
||||
|
||||
typedef enum {
|
||||
|
||||
Reference in New Issue
Block a user