summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2014-09-24 20:00:25 +0000
committerAdam Harvey <aharvey@php.net>2014-10-31 10:08:17 -0700
commit5b5f99ef1877d4d77d188d86dd03874135f05c7b (patch)
treecb652ef4f0a3a3e0f67b7f5e85a650bbe8a73152
parent551593707384364705cd954a52c6e4089805f0ef (diff)
downloadphp-git-5b5f99ef1877d4d77d188d86dd03874135f05c7b.tar.gz
Add BEGIN_EXTERN_C() and END_EXTERN_C() to .h files missing them.
-rw-r--r--Zend/zend_float.h4
-rw-r--r--Zend/zend_vm.h4
-rw-r--r--Zend/zend_vm_opcodes.h4
3 files changed, 12 insertions, 0 deletions
diff --git a/Zend/zend_float.h b/Zend/zend_float.h
index 33f8e93fbf..d9e4f4be88 100644
--- a/Zend/zend_float.h
+++ b/Zend/zend_float.h
@@ -21,6 +21,8 @@
#ifndef ZEND_FLOAT_H
#define ZEND_FLOAT_H
+BEGIN_EXTERN_C()
+
/*
Define functions for FP initialization and de-initialization.
*/
@@ -28,6 +30,8 @@ extern ZEND_API void zend_init_fpu(TSRMLS_D);
extern ZEND_API void zend_shutdown_fpu(TSRMLS_D);
extern ZEND_API void zend_ensure_fpu_mode(TSRMLS_D);
+END_EXTERN_C()
+
/* Copy of the contents of xpfpa.h (which is under public domain)
See http://wiki.php.net/rfc/rounding for details.
diff --git a/Zend/zend_vm.h b/Zend/zend_vm.h
index 078be15b74..e403e7cc92 100644
--- a/Zend/zend_vm.h
+++ b/Zend/zend_vm.h
@@ -21,9 +21,13 @@
#ifndef ZEND_VM_H
#define ZEND_VM_H
+BEGIN_EXTERN_C()
+
ZEND_API void zend_vm_use_old_executor(void);
ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode);
+END_EXTERN_C()
+
#define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline)
#endif
diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes.h
index 4ed726d217..89a1afad49 100644
--- a/Zend/zend_vm_opcodes.h
+++ b/Zend/zend_vm_opcodes.h
@@ -21,8 +21,12 @@
#ifndef ZEND_VM_OPCODES_H
#define ZEND_VM_OPCODES_H
+BEGIN_EXTERN_C()
+
ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);
+END_EXTERN_C()
+
#define ZEND_NOP 0
#define ZEND_ADD 1
#define ZEND_SUB 2