]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
bin/grepc: srcfix (Reorder some function definitions)
authorAlejandro Colomar <alx@kernel.org>
Sun, 5 Nov 2023 12:03:15 +0000 (13:03 +0100)
committerAlejandro Colomar <alx@kernel.org>
Wed, 29 Oct 2025 20:29:21 +0000 (21:29 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
bin/grepc

index 23de67d37f749faaf75a40da434913ea502f8b1d..344cf6a9593c74dae20aae38e5a358a7e0aa8329 100755 (executable)
--- 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.*?^}'; }