Changeset 63939 in vbox for trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_funcs.py
- Timestamp:
- Sep 22, 2016 7:58:05 AM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 110825
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/feedback/feedback_funcs.py
r17269 r63939 4 4 # See the file LICENSE.txt for information on redistributing this software. 5 5 6 from __future__ import print_function 6 7 import sys 7 8 … … 11 12 apiutil.CopyrightC() 12 13 13 print 14 print(""" 14 15 /* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY feedback_funcs.py SCRIPT */ 15 16 #ifndef CR_STATE_FEEDBACK_FUNCS_H … … 24 25 #endif 25 26 26 #define STATE_UNUSED(x) ((void)x)""" 27 #define STATE_UNUSED(x) ((void)x)""") 27 28 28 29 keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt") … … 31 32 return_type = apiutil.ReturnType(func_name) 32 33 params = apiutil.Parameters(func_name) 33 print '%s STATE_APIENTRY crStateFeedback%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))34 print('%s STATE_APIENTRY crStateFeedback%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))) 34 35 35 36 for func_name in apiutil.AllSpecials( "select" ): 36 37 return_type = apiutil.ReturnType(func_name) 37 38 params = apiutil.Parameters(func_name) 38 print '%s STATE_APIENTRY crStateSelect%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))39 print '\n#endif /* CR_STATE_FEEDBACK_FUNCS_H */'39 print('%s STATE_APIENTRY crStateSelect%s( %s );' % (return_type, func_name, apiutil.MakeDeclarationString(params))) 40 print('\n#endif /* CR_STATE_FEEDBACK_FUNCS_H */')
Note:
See TracChangeset
for help on using the changeset viewer.