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 | import sys
|
---|
7 |
|
---|
8 | sys.path.append( "../glapi_parser" )
|
---|
9 | import apiutil
|
---|
10 |
|
---|
11 |
|
---|
12 | apiutil.CopyrightC()
|
---|
13 |
|
---|
14 | print """/* DO NOT EDIT! THIS CODE IS AUTOGENERATED BY unpack_extend.py */
|
---|
15 |
|
---|
16 | #ifndef UNPACK_EXTEND_H
|
---|
17 | #define UNPACK_EXTEND_H 1
|
---|
18 |
|
---|
19 | """
|
---|
20 |
|
---|
21 |
|
---|
22 | #
|
---|
23 | # Print extern declarations for all special unpacker functions
|
---|
24 | #
|
---|
25 | for func_name in apiutil.AllSpecials( "unpacker" ):
|
---|
26 | if "extpack" in apiutil.ChromiumProps(func_name):
|
---|
27 | print 'extern void crUnpackExtend%s(void);' % func_name
|
---|
28 | else:
|
---|
29 | print 'extern void crUnpack%s(void);' % func_name
|
---|
30 |
|
---|
31 | print """
|
---|
32 | #endif
|
---|
33 | """
|
---|
34 |
|
---|
35 |
|
---|