From: Alejandro Colomar Date: Wed, 5 Nov 2025 17:29:48 +0000 (+0100) Subject: src/bin/grepc_c: -te, -tue: Add support for enums with underlying type X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4e9df33ffdcc6b960ef4890d6a4746b32d462a0;p=thirdparty%2Fman-pages.git src/bin/grepc_c: -te, -tue: Add support for enums with underlying type This adds support for: enum : int { X }; Signed-off-by: Alejandro Colomar --- diff --git a/src/bin/grepc_c b/src/bin/grepc_c index a3c5d7f80..d7efb7d3f 100755 --- a/src/bin/grepc_c +++ b/src/bin/grepc_c @@ -108,7 +108,7 @@ if test "$t" = 'no'; then fi; -grepc_c_e_decl_() { printf '%s' '(?s)^([\w[]+[\w\s]*)?\benum\b[ \t]*([\w \t[\]]|::)*'; } +grepc_c_e_decl_() { printf '%s' '(?s)^([\w[]+[\w\s]*)?\benum\b[ \t]*[\w \t[\]:]*'; } grepc_c_f_return_() { printf '%s' '(?s)^[\w[](?:[\w\s\(,\)[\]*]|::)+[\w\s\)*\]]\s+\**'; } grepc_c_f_params_() { printf '%s' '\s*(?\((?:[\w\s,;[\]*\?:+-]|(?¶ms))*(?:\.\.\.)?\))'; } grepc_c_f_decl_() { grepc_c_f_return_;