rem: var fileName = output_dir + compound.name + '_bind.h'; 
add: var fileName = output_dir + compound.filebase + '_bind.h'; 
context: function write_header( compound ){    var template =        '#ifndef BIND_' + compound.name + '_H\n' +        '#define BIND_' + compound.name + '_H\n' +        '\n';    if (compound.isVariant)	template += '#include <variant_binding.h>\n';    else	template += '#include <value_binding.h>\n';    template +=        '#include <static_binding.h>\n' +        '\n' +        'class ' + compound.name + ';\n' +        '\n' +        'namespace KJSEmbed\n' +        '{\n' +        '   class ' + compound.binding + ' : public ' + compound.bindingBase + '\n' +        '   {\n' +        '       public:\n' +        '           ' + compound.binding + '( KJS::ExecState *exec, const ' + compound.name + ' &value );\n' +        '           static const KJS::ClassInfo info;\n' +        '           virtual const KJS::ClassInfo* classInfo() const { return &info; }\n' +        '   };\n\n' +        '   class ' + compound.data + ' \n' +        '   { \n' +        '       public: \n' +         '           static const KJSEmbed::Method p_methods[]; \n' +        '           static const KJSEmbed::Method p_statics[]; \n' +        '           static const KJSEmbed::Enumerator p_enums[]; \n' +        '           static const KJSEmbed::Constructor p_constructor; \n' +        '           static KJS::JSObject *ctorMethod( KJS::ExecState *exec, const KJS::List &args );\n' +        '           static const KJSEmbed::Enumerator *enums() { return p_enums;} \n' +        '           static const KJSEmbed::Method *methods() { return p_methods;} \n' +        '           static const KJSEmbed::Method *statics() { return p_statics;} \n' +        '           static const KJSEmbed::Constructor *constructor() { return &p_constructor;} \n' +        '           static const KJS::JSObject *construct(KJS::ExecState *exec, const KJS::List &args)\n' +        '                                           { return (*p_constructor.construct)(exec,args); } \n' +        '   };\n\n' +        '}\n' +        '#endif // BIND_' + compound.name + '_H\n\n';    var fileName = output_dir + compound.name + '_bind.h';    header = new File( fileName );    if( !header.open( File.WriteOnly ) )        throw "Unable to open output header, " + fileName;    header.writeln( template );    header.close();}
meta: 1078	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1078/b3d4de9ac5be1c72f674d604a931a64f8122556c/generateheader.js/clean/kjsembed/autobind/values/generateheader.js