Skip to content

Commit

Permalink
Zend/zend_execute: include cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann authored and Girgias committed Jan 10, 2023
1 parent 588a07f commit ecc880f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 32 deletions.
26 changes: 10 additions & 16 deletions Zend/zend_execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,25 @@

#define ZEND_INTENSIVE_DEBUGGING 0

#include <stdio.h>
#include <signal.h>

#include "zend.h"
#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_API.h"
#include "zend_ptr_stack.h"
#include "zend_API.h" // for ZEND_FUNCTION()
#include "zend_arena.h"
#include "zend_constants.h"
#include "zend_extensions.h"
#include "zend_ini.h"
#include "zend_exceptions.h"
#include "zend_interfaces.h"
#include "zend_closures.h"
#include "zend_generators.h"
#include "zend_vm.h"
#include "zend_dtrace.h"
#include "zend_inheritance.h"
#include "zend_type_info.h"
#include "zend_generators.h" // for zend_ce_generator
#include "zend_inheritance.h" // for zend_do_link_class()
#include "zend_smart_str.h"
#include "zend_observer.h"
#include "zend_system_id.h"
#include "zend_call_stack.h"
#include "Optimizer/zend_func_info.h"

/* Virtual current working directory support */
#include "zend_virtual_cwd.h"

#include <stdio.h>
#include <signal.h>

#ifdef HAVE_GCC_GLOBAL_REGS
# if defined(__GNUC__) && ZEND_GCC_VERSION >= 4008 && defined(i386)
# define ZEND_VM_FP_GLOBAL_REG "%esi"
Expand Down Expand Up @@ -5283,6 +5274,9 @@ static zend_always_inline zend_execute_data *_zend_vm_stack_push_call_frame(uint
/* This callback disables optimization of "vm_stack_data" variable in VM */
ZEND_API void (ZEND_FASTCALL *zend_touch_vm_stack_data)(void *vm_stack_data) = NULL;

#include "zend_fibers.h" // needed by zend_vm_execute.h
#include "zend_interfaces.h" // needed by zend_vm_execute.h
#include "zend_objects.h" // needed by zend_vm_execute.h
#include "zend_vm_execute.h"

ZEND_API zend_result zend_set_user_opcode_handler(zend_uchar opcode, user_opcode_handler_t handler)
Expand Down
14 changes: 10 additions & 4 deletions Zend/zend_execute.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@
#ifndef ZEND_EXECUTE_H
#define ZEND_EXECUTE_H

#include "zend_compile.h"
#include "zend_hash.h"
#include "zend_operators.h"
#include "zend_variables.h"
#include "zend_compile.h" // for zend_op_array
#include "zend_list.h" // for zend_rsrc_list_get_rsrc_type()
#include "zend_portability.h" // for BEGIN_EXTERN_C
#include "zend_types.h" // for zend_execute_data

#if ZEND_DEBUG
#include "zend_globals.h" // for struct _zend_executor_globals
#include "zend_globals_macros.h" // for EG()
#endif

BEGIN_EXTERN_C()
struct _zend_fcall_info;
Expand Down Expand Up @@ -182,6 +187,7 @@ ZEND_API zend_result ZEND_FASTCALL zval_update_constant_ex(zval *pp, zend_class_
ZEND_API zend_result ZEND_FASTCALL zval_update_constant_with_ctx(zval *pp, zend_class_entry *scope, zend_ast_evaluate_ctx *ctx);

/* dedicated Zend executor functions - do not use! */
typedef struct _zend_vm_stack *zend_vm_stack;
struct _zend_vm_stack {
zval *top;
zval *end;
Expand Down
16 changes: 4 additions & 12 deletions Zend/zend_execute_API.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,18 @@
+----------------------------------------------------------------------+
*/

#include <stdio.h>
#include <signal.h>

#include "zend.h"
#include "zend_compile.h"
#include "zend_execute.h"
#include "zend_API.h"
#include "zend_stack.h"
#include "zend_constants.h"
#include "zend_extensions.h"
#include "zend_exceptions.h"
#include "zend_closures.h"
#include "zend_generators.h"
#include "zend_vm.h"
#include "zend_float.h"
#include "zend_fibers.h"
#include "zend_weakrefs.h"
#include "zend_inheritance.h"
#include "zend_observer.h"
#include "zend_call_stack.h"

#include <stdio.h>
#include <signal.h>

#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
Expand Down

0 comments on commit ecc880f

Please sign in to comment.