diff options
author | foobar <sniper@php.net> | 2005-01-10 14:57:36 +0000 |
---|---|---|
committer | foobar <sniper@php.net> | 2005-01-10 14:57:36 +0000 |
commit | a96507c1eca5837d8ab1329044d5e27f95a4e71f (patch) | |
tree | 4e694282697aba0da76d1da031ef4dd5a463e062 | |
parent | 9a8114e3885d4b041547994cf13f44fdcd587b81 (diff) | |
download | php-git-a96507c1eca5837d8ab1329044d5e27f95a4e71f.tar.gz |
- Added missing header sections.
-rw-r--r-- | Zend/header | 19 | ||||
-rw-r--r-- | Zend/zend_arg_defs.c | 22 | ||||
-rw-r--r-- | Zend/zend_strtod.c | 2 | ||||
-rw-r--r-- | Zend/zend_vm_def.h | 20 | ||||
-rw-r--r-- | Zend/zend_vm_execute.h | 20 | ||||
-rw-r--r-- | Zend/zend_vm_gen.php | 32 | ||||
-rw-r--r-- | Zend/zend_vm_opcodes.h | 20 |
7 files changed, 133 insertions, 2 deletions
diff --git a/Zend/header b/Zend/header new file mode 100644 index 0000000000..5e490f4131 --- /dev/null +++ b/Zend/header @@ -0,0 +1,19 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ diff --git a/Zend/zend_arg_defs.c b/Zend/zend_arg_defs.c index 8570d38087..5e8cd3d9b3 100644 --- a/Zend/zend_arg_defs.c +++ b/Zend/zend_arg_defs.c @@ -1,8 +1,27 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Zeev Suraski <zeev@zend.com> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + ZEND_BEGIN_ARG_INFO(first_arg_force_ref, 0) ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO(); - ZEND_BEGIN_ARG_INFO(second_arg_force_ref, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(1) @@ -14,7 +33,6 @@ ZEND_BEGIN_ARG_INFO(third_arg_force_ref, 0) ZEND_ARG_PASS_INFO(1) ZEND_END_ARG_INFO(); - ZEND_BEGIN_ARG_INFO(fourth_arg_force_ref, 0) ZEND_ARG_PASS_INFO(0) ZEND_ARG_PASS_INFO(0) diff --git a/Zend/zend_strtod.c b/Zend/zend_strtod.c index 1d502c3c94..52103bb355 100644 --- a/Zend/zend_strtod.c +++ b/Zend/zend_strtod.c @@ -89,6 +89,8 @@ * directly -- and assumed always to succeed. */ +/* $Id$ */ + #include <zend_strtod.h> #if defined(HAVE_INTTYPES_H) diff --git a/Zend/zend_vm_def.h b/Zend/zend_vm_def.h index 10c13814e0..9deef41cce 100644 --- a/Zend/zend_vm_def.h +++ b/Zend/zend_vm_def.h @@ -1,3 +1,23 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + ZEND_VM_HANDLER(1, ZEND_ADD, CONST|TMP|VAR|CV, CONST|TMP|VAR|CV) { zend_op *opline = EX(opline); diff --git a/Zend/zend_vm_execute.h b/Zend/zend_vm_execute.h index f65f57e334..f014e5609c 100644 --- a/Zend/zend_vm_execute.h +++ b/Zend/zend_vm_execute.h @@ -1,3 +1,23 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + #define ZEND_VM_CONTINUE() return 0 #define ZEND_VM_RETURN() return 1 diff --git a/Zend/zend_vm_gen.php b/Zend/zend_vm_gen.php index 4e26792efa..4d6c0f3611 100644 --- a/Zend/zend_vm_gen.php +++ b/Zend/zend_vm_gen.php @@ -1,4 +1,29 @@ <?php + +$header_text = <<< DATA +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + +----------------------------------------------------------------------+ +*/ + +/* \$Id$ */ + + +DATA; + /* This script creates zend_vm_execute.h and zend_vm_opcodes.h from existing zend_vm_def.h and zend_vm_execute.skl @@ -930,6 +955,10 @@ function gen_vm($def, $skel) { // Generate opcode #defines (zend_vm_opcodes.h) $code_len = strlen((string)$max_opcode); $f = fopen("zend_vm_opcodes.h", "w+") or die("ERROR: Cannot create zend_vm_opcodes.h\n"); + + // Insert header + out($f, $GLOBALS['header_text']); + foreach ($opcodes as $code => $dsc) { $code = str_pad((string)$code,$code_len," ",STR_PAD_LEFT); $op = str_pad($dsc["op"],$max_opcode_len); @@ -942,6 +971,9 @@ function gen_vm($def, $skel) { $f = fopen("zend_vm_execute.h", "w+") or die("ERROR: Cannot create zend_vm_execute.h\n"); $executor_file = realpath("zend_vm_execute.h"); + // Insert header + out($f, $GLOBALS['header_text']); + // Generate specialized executor gen_executor($f, $skl, ZEND_VM_SPEC, ZEND_VM_KIND, "execute", "zend_init_opcodes_handlers", 0); diff --git a/Zend/zend_vm_opcodes.h b/Zend/zend_vm_opcodes.h index dbc5a169be..0bc3baef92 100644 --- a/Zend/zend_vm_opcodes.h +++ b/Zend/zend_vm_opcodes.h @@ -1,3 +1,23 @@ +/* + +----------------------------------------------------------------------+ + | Zend Engine | + +----------------------------------------------------------------------+ + | Copyright (c) 1998-2005 Zend Technologies Ltd. (http://www.zend.com) | + +----------------------------------------------------------------------+ + | This source file is subject to version 2.00 of the Zend license, | + | that is bundled with this package in the file LICENSE, and is | + | available through the world-wide-web at the following url: | + | http://www.zend.com/license/2_00.txt. | + | If you did not receive a copy of the Zend license and are unable to | + | obtain it through the world-wide-web, please send a note to | + | license@zend.com so we can mail you a copy immediately. | + +----------------------------------------------------------------------+ + | Authors: Andi Gutmans <andi@zend.com> | + +----------------------------------------------------------------------+ +*/ + +/* $Id$ */ + #define ZEND_NOP 0 #define ZEND_ADD 1 #define ZEND_SUB 2 |