VirtualBox

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

最後變更 在這個檔案從71755是 69390,由 vboxsync 提交於 7 年 前

HostServices/SharedOpenGL: scm updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 739 位元組
 
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 */')
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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