projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5575eae
)
get_function_by_name shortcut
author
José Fonseca
<jose.r.fonseca@gmail.com>
Sun, 20 Feb 2011 09:01:25 +0000
(09:01 +0000)
committer
José Fonseca
<jose.r.fonseca@gmail.com>
Tue, 22 Feb 2011 07:15:58 +0000
(07:15 +0000)
stdapi.py
patch
|
blob
|
history
diff --git
a/stdapi.py
b/stdapi.py
index
79df2c3
..
7d0c982
100644
(file)
--- a/
stdapi.py
+++ b/
stdapi.py
@@
-543,6
+543,12
@@
class API:
def add_interfaces(self, interfaces):
self.interfaces.extend(interfaces)
+ def get_function_by_name(self, name):
+ for function in self.functions:
+ if function.name == name:
+ return function
+ return None
+
Bool = Literal("bool", "Bool")
SChar = Literal("signed char", "SInt")