Lines Matching full:print

50             print('   %s (GLAPIENTRYP %s)(%s); /* %d */' % (
54 print('#ifndef GLAPIENTRYP')
55 print('# ifndef GLAPIENTRY')
56 print('# define GLAPIENTRY')
57 print('# endif')
58 print('')
59 print('# define GLAPIENTRYP GLAPIENTRY *')
60 print('#endif')
61 print('')
62 print('')
63 print('#ifdef __cplusplus')
64 print('extern "C" {')
65 print('#endif')
66 print('')
67 print('struct _glapi_table')
68 print('{')
72 print('};')
73 print('')
74 print('#ifdef __cplusplus')
75 print('}')
76 print('#endif')
92 print("""
106 print('#include "main/glheader.h"')
111 print('#define CALL_by_offset(disp, cast, offset, parameters) \\')
112 print(' (*(cast (GET_by_offset(disp, offset)))) parameters')
113 print('#define GET_by_offset(disp, offset) \\')
114 print(' (offset >= 0) ? (((_glapi_proc *)(disp))[offset]) : NULL')
115 print('#define SET_by_offset(disp, offset, fn) \\')
116 print(' do { \\')
117 print(' if ( (offset) < 0 ) { \\')
118 print(' /* fprintf( stderr, "[%s:%u] SET_by_offset(%p, %d, %s)!\\n", */ \\')
119 print(' /* __func__, __LINE__, disp, offset, # fn); */ \\')
120 print(' /* abort(); */ \\')
121 print(' } \\')
122 print(' else { \\')
123 print(' ( (_glapi_proc *) (disp) )[offset] = (_glapi_proc) fn; \\')
124 print(' } \\')
125 print(' } while(0)')
126 print('')
138 print('/* total number of offsets below */')
139 print('#define _gloffset_COUNT %d' % (len(abi_functions + functions)))
140 print('')
143 print('#define _gloffset_%s %d' % (f.name, f.offset))
147 print('#define %s_size %u' % (remap_table, count))
148 print('extern int %s[ %s_size ];' % (remap_table, remap_table))
149 print('')
152 print('#define %s_remap_index %u' % (f.name, index))
154 print('')
157 print('#define _gloffset_%s %s[%s_remap_index]' % (f.name, remap_table, f.name))
159 print('')
164 print('typedef %s (GLAPIENTRYP _glptr_%s)(%s);' % (f.return_type, f.name, arg_string))
165 print('#define CALL_%s(disp, parameters) \\' % (f.name))
166 print(' (* GET_%s(disp)) parameters' % (f.name))
167 print('static inline _glptr_%s GET_%s(struct _glapi_table *disp) {' % (f.name, f.name))
168 print(' return (_glptr_%s) (GET_by_offset(disp, _gloffset_%s));' % (f.name, f.name))
169 print('}')
170 print()
171print('static inline void SET_%s(struct _glapi_table *disp, %s (GLAPIENTRYP fn)(%s)) {' % (f.name,…
172 print(' SET_by_offset(disp, _gloffset_%s, fn);' % (f.name))
173 print('}')
174 print()
206 printer.Print(api)