VirtualBox

source: vbox/trunk/src/VBox/HostServices/SharedOpenGL/unpacker/unpack_header.py@ 69498

Last change on this file since 69498 was 69390, checked in by vboxsync, 7 years ago

HostServices/SharedOpenGL: scm updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 739 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;
8import pickle;
9import types;
10import string;
11import re;
12
13sys.path.append( "../opengl_stub" )
14
15import stub_common;
16
17parsed_file = open( "../glapi_parser/gl_header.parsed", "rb" )
18gl_mapping = pickle.load( parsed_file )
19
20stub_common.CopyrightC()
21
22print("""#ifndef CR_UNPACKFUNCTIONS_H
23#define CR_UNPACKFUNCTIONS_H
24""")
25
26for func_name in sorted(gl_mapping.keys()):
27 ( return_type, arg_names, arg_types ) = gl_mapping[func_name]
28 print('void crUnpack%s();' %( func_name ))
29print('void crUnpackExtend();')
30print('\n#endif /* CR_UNPACKFUNCTIONS_H */')
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