Lines Matching refs:text
76 text = r"""
84 text += "GLAPI {f.rt} APIENTRY {f.name}({f.decArgs});\n".format(f=func)
85 text += "#undef MAPI_TMP_DEFINES\n"
86 text += "#endif /* MAPI_TMP_DEFINES */\n"
87 return text
90 text = "#ifdef MAPI_TMP_TABLE\n"
91 text += "#define MAPI_TABLE_NUM_STATIC %d\n" % (len(allFunctions))
92 text += "#define MAPI_TABLE_NUM_DYNAMIC %d\n" % (genCommon.MAPI_TABLE_NUM_DYNAMIC,)
93 text += "#undef MAPI_TMP_TABLE\n"
94 text += "#endif /* MAPI_TMP_TABLE */\n"
95 return text
98 text = "#ifdef MAPI_TMP_NOOP_ARRAY\n"
99 text += "#ifdef DEBUG\n\n"
102 text += "static {f.rt} APIENTRY noop{f.basename}({f.decArgs})\n".format(f=func)
103 text += "{\n"
105 text += " "
107 text += " (void) {a.name};".format(a=arg)
108 text += "\n"
109 text += " noop_warn(\"{f.name}\");\n".format(f=func)
111 text += " return ({f.rt}) 0;\n".format(f=func)
112 text += "}\n\n"
114 text += "const mapi_func table_noop_array[] = {\n"
116 text += " (mapi_func) noop{f.basename},\n".format(f=func)
118 text += " (mapi_func) noop_generic,\n"
119 text += " (mapi_func) noop_generic\n"
120 text += "};\n\n"
121 text += "#else /* DEBUG */\n\n"
122 text += "const mapi_func table_noop_array[] = {\n"
124 text += " (mapi_func) noop_generic,\n"
125 text += " (mapi_func) noop_generic\n"
127 text += "};\n\n"
128 text += "#endif /* DEBUG */\n"
129 text += "#undef MAPI_TMP_NOOP_ARRAY\n"
130 text += "#endif /* MAPI_TMP_NOOP_ARRAY */\n"
131 return text
134 text = "#ifdef MAPI_TMP_PUBLIC_STUBS\n"
136 text += "static const struct mapi_stub public_stubs[] = {\n"
138 text += " { \"%s\", %d, NULL },\n" % (func.name, func.slot)
139 text += "};\n"
140 text += "#undef MAPI_TMP_PUBLIC_STUBS\n"
141 text += "#endif /* MAPI_TMP_PUBLIC_STUBS */\n"
142 return text
145 text = "#ifdef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
149 text += r"""
159 text += "\n"
160 text += "#endif /* MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN */\n"
161 return text
164 text = "#ifdef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
165 text += "static const mapi_func public_entries[] = {\n"
167 text += " (mapi_func) %s,\n" % (func.name,)
168 text += "};\n"
169 text += "#endif /* MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN */\n"
170 return text
173 text = "#ifdef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
174 text += "#undef MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN\n"
175 text += "#endif /* MAPI_TMP_PUBLIC_ENTRIES_NO_HIDDEN */\n"
176 return text
179 text = "#ifdef MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN\n"
180 text += "__asm__(\n"
183 text += 'STUB_ASM_ENTRY("%s")"\\n"\n' % (func.name,)
184 text += '"\\t"STUB_ASM_CODE("%d")"\\n"\n\n' % (func.slot,)
186 text += ");\n"
187 text += "#undef MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN\n"
188 text += "#endif /* MAPI_TMP_STUB_ASM_GCC_NO_HIDDEN */\n"
189 return text