Zebediah Figura (@zfigura) commented about tools/widl/write_sltg.c:
- sltg_write_helpstrings(typelib);
- *name_table_offset = output_buffer_pos - library_block_start;
- sltg_write_nametable(typelib);
- sltg_write_remainder();
- if (strendswith(typelib_name, ".res")) /* create a binary resource file */
- {
char typelib_id[13] = "#1";
expr_t *expr = get_attrp(typelib->typelib->attrs, ATTR_ID);
if (expr)
sprintf(typelib_id, "#%d", expr->cval);
add_output_to_resources("TYPELIB", typelib_id);
output_typelib_regscript(typelib->typelib);
This is missing an equivalent of 04d8725080fd. We should probably factor out this whole block into write_typelib_regscript().