Last change
on this file since 63939 was 63939, checked in by vboxsync, 8 years ago |
Build/scripts (bugref:6627): Python build scripts updated to generate the same code when used with Python 2 and 3.
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.0 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 | #include "cr_server.h"
|
---|
16 | #include "feedbackspu.h"
|
---|
17 | #include "feedbackspu_proto.h"
|
---|
18 | """)
|
---|
19 | custom = ["CreateContext", "VBoxCreateContext", "MakeCurrent", "DestroyContext"]
|
---|
20 |
|
---|
21 | keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
|
---|
22 |
|
---|
23 | for func_name in keys:
|
---|
24 | if apiutil.FindSpecial( "feedback_state", func_name ):
|
---|
25 | if func_name in custom:
|
---|
26 | continue
|
---|
27 | return_type = apiutil.ReturnType(func_name)
|
---|
28 | params = apiutil.Parameters(func_name)
|
---|
29 | print('%s FEEDBACKSPU_APIENTRY feedbackspu_%s( %s )' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
|
---|
30 | print('{')
|
---|
31 | print('\tcrState%s( %s );' % (func_name, apiutil.MakeCallString(params)))
|
---|
32 | print('')
|
---|
33 | print('\tfeedback_spu.super.%s( %s );' % (func_name, apiutil.MakeCallString(params)))
|
---|
34 | print('}')
|
---|
Note:
See
TracBrowser
for help on using the repository browser.