Last change
on this file since 69310 was 63942, checked in by vboxsync, 8 years ago |
OpenGL: fixed the most annoying coding style flaws, mainly removing spaces after '(' and before ')', no semantic change
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.1 KB
|
Line | |
---|
1 | # Copyright (c) 2001, Stanford University
|
---|
2 | # All rights reserved.
|
---|
3 | #
|
---|
4 | # See the file LICENSE.txt for information on redistributing this software.
|
---|
5 |
|
---|
6 | from __future__ import print_function
|
---|
7 | import sys
|
---|
8 |
|
---|
9 | import apiutil
|
---|
10 |
|
---|
11 |
|
---|
12 | apiutil.CopyrightC()
|
---|
13 |
|
---|
14 | print("""
|
---|
15 | /* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY feedback_funcs.py SCRIPT */
|
---|
16 | #ifndef CR_STATE_FEEDBACK_FUNCS_H
|
---|
17 | #define CR_STATE_FEEDBACK_FUNCS_H
|
---|
18 |
|
---|
19 | #include "cr_error.h"
|
---|
20 |
|
---|
21 | #if defined(WINDOWS)
|
---|
22 | #define STATE_APIENTRY __stdcall
|
---|
23 | #else
|
---|
24 | #define STATE_APIENTRY
|
---|
25 | #endif
|
---|
26 |
|
---|
27 | #define STATE_UNUSED(x) ((void)x)""")
|
---|
28 |
|
---|
29 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
30 |
|
---|
31 | for func_name in apiutil.AllSpecials( "feedback" ):
|
---|
32 | return_type = apiutil.ReturnType(func_name)
|
---|
33 | params = apiutil.Parameters(func_name)
|
---|
34 | print('%s STATE_APIENTRY crStateFeedback%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
|
---|
35 |
|
---|
36 | for func_name in apiutil.AllSpecials( "select" ):
|
---|
37 | return_type = apiutil.ReturnType(func_name)
|
---|
38 | params = apiutil.Parameters(func_name)
|
---|
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
TracBrowser
for help on using the repository browser.