Lines Matching refs:write

419 	    test.write("#ifdef %s\n" % (modules_defines[module]))
421 test.write("""
430 test.write("#endif\n\n")
486 test.write(line)
497 test.write("/* CUT HERE: everything below that line is generated */\n")
565 test.write("#ifdef %s\n" % (modules_defines[module]))
567 test.write("#define gen_nb_%s %d\n" % (name, len(vals)))
568 test.write("""static %s gen_%s(int no, int nr ATTRIBUTE_UNUSED) {\n""" %
572 test.write(" if (no == %d) return(%s);\n" % (i, value))
574 test.write(""" return(0);
585 test.write("#ifdef %s\n" % (modules_defines[module]))
587 test.write("""static void desret_%s(%s val ATTRIBUTE_UNUSED) {
593 test.write("#endif\n\n")
619 test.write("#include <libxml/%s.h>\n" % name)
626 test.write("static int test_%s(void);\n" % module);
632 test.write("""
649 test.write(" test_ret += test_%s();\n" % module)
651 test.write("""
719 test.write("""
728 test.write("""
739 test.write("#if %s\n" % (cond.get_content()))
746 test.write("#ifdef %s\n" % (function_defines[name]))
752 test.write(" int mem_base;\n");
756 test.write(" %s ret_val;\n" % (t_ret[1]))
762 test.write(" %s %s; /* %s */\n" % (crtype, nam, info))
763 test.write(" int n_%s;\n" % (nam))
764 test.write("\n")
770 test.write(" for (n_%s = 0;n_%s < gen_nb_%s;n_%s++) {\n" % (
775 test.write(" mem_base = xmlMemBlocks();\n");
782 test.write(" %s = gen_%s(n_%s, %d);\n" % (nam, type, nam, i))
787 test.write(" %s\n"% (extra_pre_call[name]))
789 test.write("\n ret_val = %s(" % (name))
794 test.write(", ")
798 test.write("(%s)" % rtype)
799 test.write("%s" % nam);
800 test.write(");\n")
802 test.write(" %s\n"% (extra_post_call[name]))
803 test.write(" desret_%s(ret_val);\n" % t_ret[0])
805 test.write("\n %s(" % (name));
810 test.write(", ")
814 test.write("(%s)" % rtype)
815 test.write("%s" % nam)
816 test.write(");\n")
818 test.write(" %s\n"% (extra_post_call[name]))
820 test.write(" call_tests++;\n");
830 test.write(" des_%s(n_%s, " % (type, nam))
832 test.write("(%s)" % rtype)
833 test.write("%s, %d);\n" % (nam, i))
836 test.write(" xmlResetLastError();\n");
839 test.write(""" if (mem_base != xmlMemBlocks()) {
846 test.write(""" printf(" %%d", n_%s);\n""" % (nam))
847 test.write(""" printf("\\n");\n""")
848 test.write(" }\n")
851 test.write(" }\n")
853 test.write(" function_tests++;\n")
858 test.write("#endif\n")
861 test.write("#endif\n")
865 test.write("""
890 test.write("""static int
902 test.write(" test_ret += test_%s();\n" % (name))
905 test.write("""
915 test.write("""static int
919 test.write(""" if (!strcmp(module, "%s")) return(test_%s());\n""" % (
921 test.write(""" return(0);
943 lst.write("Missing support for %d types" % (len(missing_list)))
944 lst.write("\n")
946 lst.write("%s: %d :" % (miss[1], miss[0]))
951 lst.write(" ...")
953 lst.write(" %s" % (n))
954 lst.write("\n")
955 lst.write("\n")
956 lst.write("\n")
957 lst.write("Missing support per module");
959 lst.write("module %s:\n %s\n" % (module, missing_functions[module]))