Lines Matching refs:fputs

587     fputs($f,$s);
595 fputs($f,"#line ".($line_no+1)." \"".$executor_file."\"\n");
2658 fputs($f,"#include <stdio.h>\n");
2659 fputs($f,"#include <zend.h>\n");
2660 fputs($f,"#include <zend_vm_opcodes.h>\n\n");
2662 fputs($f,"static const char *zend_vm_opcodes_names[".($max_opcode + 1)."] = {\n");
2664 fputs($f,"\t".(isset($opcodes[$i]["op"])?'"'.$opcodes[$i]["op"].'"':"NULL").",\n");
2666 fputs($f, "};\n\n");
2668 fputs($f,"static uint32_t zend_vm_opcodes_flags[".($max_opcode + 1)."] = {\n");
2672 fputs($f, "};\n\n");
2674 fputs($f, "ZEND_API const char* ZEND_FASTCALL zend_get_opcode_name(zend_uchar opcode) {\n");
2675 fputs($f, "\tif (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) {\n");
2676 fputs($f, "\t\treturn NULL;\n");
2677 fputs($f, "\t}\n");
2678 fputs($f, "\treturn zend_vm_opcodes_names[opcode];\n");
2679 fputs($f, "}\n");
2681 fputs($f, "ZEND_API uint32_t ZEND_FASTCALL zend_get_opcode_flags(zend_uchar opcode) {\n");
2682 fputs($f, "\tif (UNEXPECTED(opcode > ZEND_VM_LAST_OPCODE)) {\n");
2683 fputs($f, "\t\topcode = ZEND_NOP;\n");
2684 fputs($f, "\t}\n");
2685 fputs($f, "\treturn zend_vm_opcodes_flags[opcode];\n");
2686 fputs($f, "}\n");
2688 fputs($f, "ZEND_API zend_uchar zend_get_opcode_id(const char *name, size_t length) {\n");
2689 fputs($f, "\tzend_uchar opcode;\n");
2690fputs($f, "\tfor (opcode = 0; opcode < (sizeof(zend_vm_opcodes_names) / sizeof(zend_vm_opcodes_nam…
2691 fputs($f, "\t\tconst char *opcode_name = zend_vm_opcodes_names[opcode];\n");
2692 fputs($f, "\t\tif (opcode_name && strncmp(opcode_name, name, length) == 0) {\n");
2693 fputs($f, "\t\t\treturn opcode;\n");
2694 fputs($f, "\t\t}\n");
2695 fputs($f, "\t}\n");
2696 fputs($f, "\treturn ZEND_VM_LAST_OPCODE + 1;\n");
2697 fputs($f, "}\n");