Lines Matching refs:text

66         text = generateHeader(functions)
68 text = generateSource(functions)
69 sys.stdout.write(text)
77 text = "defined(" + result["extension"] + ")"
78 result["extension"] = text
93 text = textwrap.dedent(r"""
109 text += "enum {\n"
111 text += generateGuardBegin(func, eglFunc)
112 text += " __EGL_DISPATCH_" + func.name + ",\n"
113 text += generateGuardEnd(func, eglFunc)
114 text += " __EGL_DISPATCH_COUNT\n"
115 text += "};\n"
119 text += generateGuardBegin(func, eglFunc)
120 text += "{f.rt} EGLAPIENTRY {ex[prefix]}{f.name}({f.decArgs});\n".format(f=func, ex=eglFunc)
121 text += generateGuardEnd(func, eglFunc)
123 text += textwrap.dedent(r"""
129 return text
133 text = ""
134 text += '#include "egldispatchstubs.h"\n'
135 text += '#include "g_egldispatchstubs.h"\n'
136 text += '#include <stddef.h>\n'
137 text += "\n"
141 text += generateGuardBegin(func, eglFunc)
142 text += generateDispatchFunc(func, eglFunc)
143 text += generateGuardEnd(func, eglFunc)
145 text += "\n"
146 text += "const char * const __EGL_DISPATCH_FUNC_NAMES[__EGL_DISPATCH_COUNT + 1] = {\n"
148 text += generateGuardBegin(func, eglFunc)
149 text += ' "' + func.name + '",\n'
150 text += generateGuardEnd(func, eglFunc)
151 text += " NULL\n"
152 text += "};\n"
154 text += "const __eglMustCastToProperFunctionPointerType __EGL_DISPATCH_FUNCS[__EGL_DISPATCH_COUNT + 1] = {\n"
156 text += generateGuardBegin(func, eglFunc)
158 text += " (__eglMustCastToProperFunctionPointerType) " + eglFunc.get("prefix", "") + func.name + ",\n"
160 text += " NULL, // " + func.name + "\n"
161 text += generateGuardEnd(func, eglFunc)
162 text += " NULL\n"
163 text += "};\n"
165 return text
181 text = ""
184 text += "static "
186 text += "PUBLIC "
187 text += textwrap.dedent(
195 text += " {f.rt} _ret = {ef[retval]};\n".format(f=func, ef=eglFunc)
197 text += " _pfn_{f.name} _ptr_{f.name} = (_pfn_{f.name}) ".format(f=func)
199 text += "__eglDispatchFetchByCurrent(__EGL_DISPATCH_{f.name});\n".format(f=func)
218 text += "{lookupFunc}({lookupArg}, __EGL_DISPATCH_{f.name});\n".format(
223 text += " if(_ptr_{f.name} != NULL) {{\n".format(f=func)
224 text += " "
226 text += "_ret = "
227 text += "_ptr_{f.name}({f.callArgs});\n".format(f=func)
228 text += " }\n"
231 text += " return _ret;\n"
232 text += "}\n"
233 return text