function idl_format_param($header, $impl) { replaceParams($header, true); replaceParams($impl, false); }
); fprintf($f, "using namespace HPHP;\n\n"); generatePHPBridgeModuleHeader($name, $f); foreach ($funcs as $func) { generatePHPBridgeImplementation($func, $f); } foreach ($classes as $class) { foreach ($class['methods'] as $method) { generatePHPBridgeImplementation($method, $f, $class['name'], $method['static']); } } } /*****************************************************************************/ if ($format == 'param') { replaceParams($param_header, true); replaceParams($param_impl, false); } /*****************************************************************************/ if ($format == 'profile') { $header = $argv[3]; ($f = fopen($header, 'w')) || die("cannot open {$header}"); if ($mode == 'sep') { $inc_file = "\"ext_{$name}.h\""; } else { $inc_file = "<runtime/ext/ext_{$name}.h>"; } fprintf($f, <<<EOT #ifndef __EXTPROFILE_{$NAME}_H__ #define __EXTPROFILE_{$NAME}_H__