From 5ef683ef7294e78abf9d7e822a821c522a6218b8 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Sun, 5 Nov 2023 13:03:15 +0100 Subject: bin/grepc: srcfix (Reorder some function definitions) Signed-off-by: Alejandro Colomar --- bin/grepc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.*?^}'; } -- cgit v1.2.3