From: Alejandro Colomar Date: Wed, 5 Nov 2025 15:29:03 +0000 (+0100) Subject: src/bin/grepc_c: -tuf: Reuse grepc_c_uf_body_() X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f42d2a27233f80043f3cf5a1898ea0841a8d3d0;p=thirdparty%2Fman-pages.git src/bin/grepc_c: -tuf: Reuse grepc_c_uf_body_() Signed-off-by: Alejandro Colomar --- diff --git a/src/bin/grepc_c b/src/bin/grepc_c index 7220e08cf..48a7b69b1 100755 --- a/src/bin/grepc_c +++ b/src/bin/grepc_c @@ -139,7 +139,8 @@ grepc_c_uf_def() { grepc_c_f_decl_ '\w+'; grepc_c_uf_body_ "$1"; echo; } grepc_c_uf_linux_def() { grepc_c_fld_decl_ '\w+'; - echo '(?:(?!^}).)*'"$1"'.*?^}'; } + grepc_c_uf_body_ "$1"; + echo; } grepc_c_um() { echo '(?s)^[ \t]*#\s*define\s[\s\\]*\w+\b(\([^\)]*\))?(?:(?![^\\]$).)*'"$1"'.*?[^\\]$'; } grepc_c_ut_su() { echo '(?s)^(?!^[ \t]*typedef\b)([\w[]([\w\s\(,\)[\]*]|::)*[\w\s\)*\]]\s+)?\b(struct|union)\b([\w \t[\]]|::)*\w+[ \t]*\n*([ \t]*){(?:(?!^\5?}).)*?'"$1"'.*?^\5}.*?;'; } grepc_c_ut_td_simple() { echo '(?s)^[ \t]*typedef\s+[^{};]*'"$1"'[^{};]+;'; }