summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-11-05 13:03:15 +0100
committerAlejandro Colomar <alx@kernel.org>2023-11-05 13:03:15 +0100
commit5ef683ef7294e78abf9d7e822a821c522a6218b8 (patch)
treef647abfbf48147439b0eca78508216517159d5a3
parent6fc13c5479d9c71ab3a4be86a6e1593868ca8b3e (diff)
bin/grepc: srcfix (Reorder some function definitions)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rwxr-xr-xbin/grepc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/grepc b/bin/grepc
index 23de67d..344cf6a 100755
--- a/bin/grepc
+++ b/bin/grepc
@@ -198,8 +198,8 @@ grepc_e() { echo '(?s)^([\w[]+[\w\s]*)?\benum\b[ \t]*([\w \t[\]]|::)*\n*([ \t]*
grepc_fp() { echo '(?s)^[\w[](?:[\w\s\(,\)[\]*]|::)+[\w\s\)*\]]\s+\**\(?'"$1"'\)?\s*(\((?:[\w\s,[\]*]|::|(?1))*(?:\.\.\.)?\))(?:[\w\s\(,\)[\]]|::)*;'; }
grepc_fd() { echo '(?s)^[\w[](?:[\w\s\(,\)[\]*]|::)*[\w\s\)*\]]\s+\**\(?'"$1"'\)?\s*(\((?:[\w\s,[\]*]|::|(?1))*(?:\.\.\.)?\))[ \t]*\n([ \t]*){.*?^\2}'; }
grepc_fgd_libm() { grepc_fd "M_DECL_FUNC \(__$1\)"; }
-grepc_fgp_libio() { grepc_fp "_IO_$1"; }
grepc_fgd_libio() { grepc_fd "_IO_$1"; }
+grepc_fgp_libio() { grepc_fp "_IO_$1"; }
grepc_fgp() { grepc_fgp_libio "$1"; }
grepc_fsp() { echo '(?s)^asmlinkage\s+[\w\s]+\**sys_'"$1"'\s*\(.*?\)'; }
grepc_fsd() { echo '(?s)^(COMPAT_)?SYSCALL_DEFINE.\('"$1"'\b.*?^}'; }