blob: 92a5c1cef7eb869e4c3664c1d56c1ea37a7aca27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright (c) 2001, Stanford University
# All rights reserved.
#
# See the file LICENSE.txt for information on redistributing this software.
from __future__ import print_function
import sys
import apiutil
apiutil.CopyrightC()
print("""
/* DO NOT EDIT - generated by feedback.py */
#ifndef FEEDBACKSPU_PROTO_H
#define FEEDBACKSPU_PROTO_H
#include "feedbackspu.h"
""")
keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
for func_name in keys:
if apiutil.FindSpecial( "feedback_state", func_name ):
return_type = apiutil.ReturnType(func_name)
params = apiutil.Parameters(func_name)
print('extern %s FEEDBACKSPU_APIENTRY feedbackspu_%s(%s);' % (return_type, func_name, apiutil.MakeDeclarationString(params)))
print("""
#endif
""")
|