if first:
print ''
if show_num:
- print ' /* % 3u. %s */' % (cat_num, cat_name)
+ print ' /* %3u. %s */' % (cat_num, cat_name)
else:
print ' /* %s */' % (cat_name)
print ''
print 'static const enum_elt all_enums[%u] =' % (len(name_table))
print '{'
for [name, enum] in name_table:
- print ' { % 5u, 0x%08X }, /* %s */' % (string_offsets[name], enum, name)
+ print ' { %5u, 0x%08X }, /* %s */' % (string_offsets[name], enum, name)
print '};'
print ''
else:
i = name_table.index( [name, enum] )
- print ' % 4u, /* %s */' % (i, name)
+ print ' %4u, /* %s */' % (i, name)
print '};'
print 'static const glprocs_table_t static_functions[] = {'
for (offset, disp_name, real_name) in table:
- print ' NAME_FUNC_OFFSET( % 5u, gl%s, _gloffset_%s ),' % (offset, disp_name, real_name)
+ print ' NAME_FUNC_OFFSET( %5u, gl%s, _gloffset_%s ),' % (offset, disp_name, real_name)
print ' NAME_FUNC_OFFSET( -1, NULL, 0 )'
print '};'