VirtualBox

source: vbox/trunk/src/VBox/Additions/common/crOpenGL/feedback/feedbackspu_proto.py@ 76447

Last change on this file since 76447 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: 763 bytes
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
6from __future__ import print_function
7import sys
8
9import apiutil
10
11
12apiutil.CopyrightC()
13
14print("""
15/* DO NOT EDIT - generated by feedback.py */
16
17#ifndef FEEDBACKSPU_PROTO_H
18#define FEEDBACKSPU_PROTO_H
19
20#include "feedbackspu.h"
21
22""")
23
24keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
25
26for func_name in keys:
27 if apiutil.FindSpecial( "feedback_state", func_name ):
28 return_type = apiutil.ReturnType(func_name)
29 params = apiutil.Parameters(func_name)
30 print('extern %s FEEDBACKSPU_APIENTRY feedbackspu_%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
31
32
33print("""
34#endif
35""")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette