Ignore:
Timestamp:
2012-07-18T10:27:29+02:00 (21 months ago)
Author:
moo
Message:

refactor: move functions to module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/submodules/xc_disassembler.c

    r987 r993  
    119119 
    120120    zval *output; 
    121 } xc_dasm_sandboxed_t; /* {{{ */ 
    122  
    123 zend_op_array *xc_dasm_sandboxed(void *data TSRMLS_DC) 
     121} xc_dasm_sandboxed_t; /* }}} */ 
     122zend_op_array *xc_dasm_sandboxed(void *data TSRMLS_DC) /* {{{ */ 
    124123{ 
    125124    zend_bool catched = 0; 
     
    189188} 
    190189/* }}} */ 
     190 
     191/* {{{ proto array xcache_dasm_file(string filename) 
     192   Disassemble file into opcode array by filename */ 
     193PHP_FUNCTION(xcache_dasm_file) 
     194{ 
     195    char *filename; 
     196    int filename_len; 
     197 
     198    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { 
     199        return; 
     200    } 
     201    if (!filename_len) RETURN_FALSE; 
     202 
     203    xc_dasm_file(return_value, filename TSRMLS_CC); 
     204} 
     205/* }}} */ 
     206/* {{{ proto array xcache_dasm_string(string code) 
     207   Disassemble php code into opcode array */ 
     208PHP_FUNCTION(xcache_dasm_string) 
     209{ 
     210    zval *code; 
     211 
     212    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &code) == FAILURE) { 
     213        return; 
     214    } 
     215    xc_dasm_string(return_value, code TSRMLS_CC); 
     216} 
     217/* }}} */ 
Note: See TracChangeset for help on using the changeset viewer.