source: svn/trunk/processor/dispatch.m4 @ 311

Last change on this file since 311 was 311, checked in by Xuefer, 10 years ago

restruct cached compile, add md5 table to recognize and merge file with same content

File size: 1.3 KB
Line 
1dnl DISPATCH(1:type, 2:elm)
2define(`DISPATCH', `
3    DBG(`$0($*)')
4    ifelse(
5        `$1', `zend_bool',        `PROC_INT(`$2', `u',  `$1')'
6    , `$1', `zend_uchar',       `PROC_INT(`$2', `u',  `$1')'
7    , `$1', `char',             `PROC_INT(`$2', `d',  `$1')'
8    , `$1', `int32_t',          `PROC_INT(`$2', `d',  `$1')'
9    , `$1', `unsigned char',    `PROC_INT(`$2', `u',  `$1')'
10    , `$1', `zend_uint',        `PROC_INT(`$2', `u',  `$1')'
11    , `$1', `uint',             `PROC_INT(`$2', `u',  `$1')'
12    , `$1', `unsigned int',     `PROC_INT(`$2', `u',  `$1')'
13    , `$1', `zend_ulong',       `PROC_INT(`$2', `lu', `$1')'
14    , `$1', `ulong',            `PROC_INT(`$2', `lu', `$1')'
15    , `$1', `size_t',           `PROC_INT(`$2', `u', `$1')'
16    , `$1', `long',             `PROC_INT(`$2', `ld', `$1')'
17    , `$1', `time_t',           `PROC_INT(`$2', `ld', `$1')'
18    , `$1', `zend_ushort',      `PROC_INT(`$2', `hu', `$1')'
19    , `$1', `int',              `PROC_INT(`$2', `d',  `$1')'
20    , `$1', `double',           `PROC_INT(`$2', `f',  `$1')'
21    , `$1', `opcode_handler_t', `/* is copying enough? */COPY(`$2')'
22    , `$1', `zval_data_type',   `PROC_INT(`$2', `u',  `$1')'
23    , `$1', `xc_entry_type_t',  `PROC_INT(`$2', `d',  `$1')'
24    , `$1', `xc_hash_value_t',  `PROC_INT(`$2', `lu', `$1')'
25    , `$1', `xc_md5sum_t',      `/* is copying enough? */COPY(`$2')'
26    , `', `', `m4_errprint(`Unknown type "$1"')'
27    )
28')
Note: See TracBrowser for help on using the repository browser.