1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00

Update the VM generation script, per Bob.

This commit is contained in:
Adam Harvey
2014-10-31 10:10:49 -07:00
parent 087150de95
commit 4bb836be20

View File

@@ -1181,7 +1181,9 @@ function gen_vm($def, $skel) {
out($f, $GLOBALS['header_text']);
fputs($f, "#ifndef ZEND_VM_OPCODES_H\n#define ZEND_VM_OPCODES_H\n\n");
fputs($f, "BEGIN_EXTERN_C()\n\n");
fputs($f, "ZEND_API const char *zend_get_opcode_name(zend_uchar opcode);\n\n");
fputs($f, "END_EXTERN_C()\n\n");
foreach ($opcodes as $code => $dsc) {
$code = str_pad((string)$code,$code_len," ",STR_PAD_LEFT);