We previously only considered fz_new_() fns as constructors of fz_* structs,
but the fz_/pdf_ prefix is determined by the args, not the return type, so this
was missing possible constructors.
E.g. this picks up pdf_new_stext_page_from_annot() as a constructor of
fz_stext_page.
# Add default constructor fn prefix.
if struct_name.startswith( 'fz_'):
extras.constructor_prefixes.insert( 0, f'fz_new_')
+ extras.constructor_prefixes.insert( 0, f'pdf_new_')
elif struct_name.startswith( 'pdf_'):
extras.constructor_prefixes.insert( 0, f'pdf_new_')
for fnprefix in extras.constructor_prefixes: