Last change
on this file since 71930 was 69392, checked in by vboxsync, 7 years ago |
GuestHost/OpenGL: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
1.5 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 |
|
---|
7 | from __future__ import print_function
|
---|
8 | import sys
|
---|
9 |
|
---|
10 | sys.path.append( "../glapi_parser" )
|
---|
11 | import apiutil
|
---|
12 |
|
---|
13 |
|
---|
14 | apiutil.CopyrightC()
|
---|
15 |
|
---|
16 | print("""
|
---|
17 | /* DO NOT EDIT - THIS FILE AUTOMATICALLY GENERATED BY state_funcs.py SCRIPT */
|
---|
18 | #ifndef CR_STATE_FUNCS_H
|
---|
19 | #define CR_STATE_FUNCS_H
|
---|
20 |
|
---|
21 | #include "chromium.h"
|
---|
22 | #include "cr_error.h"
|
---|
23 |
|
---|
24 | #include <iprt/cdefs.h>
|
---|
25 |
|
---|
26 | #if defined(WINDOWS)
|
---|
27 | #define STATE_APIENTRY __stdcall
|
---|
28 | #else
|
---|
29 | #define STATE_APIENTRY
|
---|
30 | #endif
|
---|
31 |
|
---|
32 | #ifdef __cplusplus
|
---|
33 | extern "C" {
|
---|
34 | #endif
|
---|
35 |
|
---|
36 | #define STATE_UNUSED(x) ((void)x)""")
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 | for func_name in apiutil.AllSpecials( "state" ):
|
---|
41 | return_type = apiutil.ReturnType(func_name)
|
---|
42 | params = apiutil.Parameters(func_name)
|
---|
43 | print('DECLEXPORT(%s) STATE_APIENTRY crState%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
|
---|
44 |
|
---|
45 | for func_name in apiutil.AllSpecials( "state_feedback" ):
|
---|
46 | return_type = apiutil.ReturnType(func_name)
|
---|
47 | params = apiutil.Parameters(func_name)
|
---|
48 | print('DECLEXPORT(%s) STATE_APIENTRY crStateFeedback%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
|
---|
49 |
|
---|
50 | for func_name in apiutil.AllSpecials( "state_select" ):
|
---|
51 | return_type = apiutil.ReturnType(func_name)
|
---|
52 | params = apiutil.Parameters(func_name)
|
---|
53 | print('DECLEXPORT(%s) STATE_APIENTRY crStateSelect%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
|
---|
54 |
|
---|
55 |
|
---|
56 | print("""
|
---|
57 | #ifdef __cplusplus
|
---|
58 | }
|
---|
59 | #endif
|
---|
60 |
|
---|
61 | #endif /* CR_STATE_FUNCS_H */
|
---|
62 | """)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.