summaryrefslogtreecommitdiff
path: root/gen-stubs.bash
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-30 23:12:49 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-30 23:12:49 +0200
commitde2e7fa7b4c0c09003a5c5dd7fd0f5bea010bd84 (patch)
tree41ab4293ce3d62af6c83d52ac490e40955a67bcf /gen-stubs.bash
parent2717739e1954dd8c30010e9c2ae654e9baadd637 (diff)
fix stub generation
unimplement mallocs should error, there are some mixed case functions that were not stubbed.
Diffstat (limited to 'gen-stubs.bash')
-rw-r--r--gen-stubs.bash7
1 files changed, 4 insertions, 3 deletions
diff --git a/gen-stubs.bash b/gen-stubs.bash
index 88f3366..cd5a6cb 100644
--- a/gen-stubs.bash
+++ b/gen-stubs.bash
@@ -7,12 +7,12 @@ filter_classifiers()
ret_type_for()
{
- filter_classifiers <<<"$1" | sed 's/^const[\t ]*//' | grep -Eo '^(struct|unsigned)? *[a-z_]+[\t \*]*'
+ filter_classifiers <<<"$1" | sed 's/^const[\t ]*//' | grep -Eo '^(struct|unsigned)? *[a-zA-Z_]+[\t \*]*'
}
fun_name_for()
{
- filter_classifiers <<<"$1" | sed 's/struct//;s/const//;s/unsigned//;s/^[\t ]*//;s/[a-z_]\+[\t \*]*//' | grep -Eo '^[a-z_]+'
+ filter_classifiers <<<"$1" | sed 's/struct//;s/const//;s/unsigned//;s/^[\t ]*//;s/[a-zA-Z_]\+[\t \*]*//' | grep -Eo '^[a-zA-Z_]+'
}
should_error()
@@ -58,13 +58,14 @@ blacklist()
return
snd_dlsym_link
snd_pcm_hw_strategy
+__SND_DLSYM_VERSION
EOF
)"
}
match()
{
- blacklist | grep -Eh '^(static|__inline__|const|struct|unsigned| )*[a-z_]+[\t \*]*[a-z_]+\(.*\);'
+ blacklist | grep -Eh '^(static|__inline__|const|struct|unsigned| )*[a-zA-Z_]+[\t \*]*[a-zA-Z_]+\(.*\);'
}
preprocess()