summaryrefslogtreecommitdiffstats
path: root/bin/grepc
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-05-09 13:20:54 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-05-09 13:21:23 +0200
commite89cdff69dae98e2fca1e5b58a52f34c3a2b3aa2 (patch)
tree2e6fd51cf92c782bf199a98ed906cd1aed8a39fe /bin/grepc
parent8312a65f4b6ae51c287683dbf77b3735285fbab9 (diff)
grepc: grepc_glibc_math: Support glibc math functions
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
Diffstat (limited to 'bin/grepc')
-rwxr-xr-xbin/grepc13
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/grepc b/bin/grepc
index f8c933d..4d6c430 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -95,6 +95,18 @@ function grepc_syscall()
}
+function grepc_glibc_math()
+{
+ grepc_func_def "M_DECL_FUNC \(__$1\)";
+}
+
+
+function grepc_glibc()
+{
+ grepc_glibc_math "$1";
+}
+
+
function grepc_type_struct_union_enum()
{
grepc_helper '\.[ch]$' \
@@ -154,6 +166,7 @@ function main()
grepc_enum_constant "$1";
grepc_func "$1";
grepc_syscall "$1";
+ grepc_glibc "$1";
grepc_type "$1";
}