Lines Matching defs:output
182 # enter the output phase, where we generate the two files chvalid.c and'
185 # To do this, we first output the 'static' data (heading, fixed
186 # definitions, etc.), then output the 'dynamic' data (the results
187 # of the above processing), and finally output closing 'static' data
201 output = open("chvalid.c", "w")
266 output.write(
294 # Now output the generated data.
298 # portion of a range has a "small" number of ranges, we output a macro for inline
299 # compares, otherwise we output a 256-byte table and a macro to use it.
303 fkeys.sort() # Put some order to our output
327 output.write("const unsigned char %s_tab[256] = {\n" % f)
332 output.write(pline + "\n")
334 output.write(pline + " 0x%02x };\n\n" % Functs[f][0][255])
448 output.write(pline + "\n")
454 output.write(pline + "};\n")
460 output.write(pline + "\n")
463 output.write(pline + "};\n") # finish off last group
475 output.write(pline + "};\n\n")
477 output.write(
543 output.write("""
551 output.write(" * Use %s_ch or %sQ instead" % (f, f))
553 output.write(" * Use %sQ instead" % f)
554 output.write("""
559 output.write("int\n%s(unsigned int ch) {\n return(%sQ(ch));\n}\n\n" % (f,f))
562 # Run complete - write trailers and close the output files
574 output.write("""#define bottom_chvalid
577 output.close()