def write_contents(f):
 opcode = find_module('opcode')
 targets = (['_unknown_opcode'] * 256)
 for (opname, op) in opcode.opmap.items():
  targets[op] = ('TARGET_%s' % opname)
 f.write('static void *opcode_targets[256] = {\n')
 f.write(',\n'.join([('    &&%s' % s) for s in targets]))
 f.write('\n};\n')

def write_contents ( f ) : opcode = find_module ( 'opcode' ) targets = ( [ '_unknown_opcode' ] * 256 ) for ( opname , op ) in opcode . opmap . items ( ) : targets [ op ] = ( 'TARGET_%s' % opname ) f . write ( 'static void *opcode_targets[256] = {\n' ) f . write ( ',\n' . join ( [ ( '    &&%s' % s ) for s in targets ] ) ) f . write ( '\n};\n' )
write c code contents to the target file object .