Changeset 780 for trunk/Decompiler.class.php
- Timestamp:
- 04/22/2011 11:33:46 AM (2 years ago)
- Files:
-
- 1 modified
-
trunk/Decompiler.class.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r777 r780 737 737 $EX['last'] = count($opcodes) - 1; 738 738 $EX['silence'] = 0; 739 $EX['recvs'] = array(); 740 $EX['uses'] = array(); 739 741 740 742 for ($next = 0, $last = $EX['last']; … … 1140 1142 } 1141 1143 $resvar = "$lvalue = " . str($rvalue, $EX); 1144 if (0) { 1145 if ($op2['op_type'] == XC_IS_VAR) { 1146 $resvar .= ' /* isvar */'; 1147 } 1148 else if ($op2['op_type'] == XC_IS_TMP_VAR) { 1149 $resvar .= ' /* istmp */'; 1150 } 1151 } 1142 1152 break; 1143 1153 // }}} … … 1842 1852 } 1843 1853 // }}} 1854 function duses(&$EX, $indent) // {{{ 1855 { 1856 if (!$EX['uses']) { 1857 return; 1858 } 1859 1860 $uses = array(); 1861 foreach ($EX['uses'] as $name => $value) { 1862 $uses = '$' . $name; 1863 } 1864 echo ' use(', implode(', ', $uses), ')'; 1865 } 1866 // }}} 1844 1867 function dfunction($func, $indent = '', $nobody = false) // {{{ 1845 1868 { … … 1850 1873 $EX['op_array'] = &$func['op_array']; 1851 1874 $EX['recvs'] = array(); 1875 $EX['uses'] = array(); 1852 1876 } 1853 1877 else { … … 1856 1880 $EX = &$this->dop_array($func['op_array'], $newindent); 1857 1881 $body = ob_get_clean(); 1858 if (!isset($EX['recvs'])) {1859 $EX['recvs'] = array();1860 }1861 1882 } 1862 1883 … … 1868 1889 $this->dargs($EX, $indent); 1869 1890 echo ")"; 1891 $this->duses($EX, $indent); 1870 1892 if ($nobody) { 1871 1893 echo ";\n";

