Also, update the manual page EXAMPLES regarding blank lines.
Reported-by: наб <nabijaczleweli@nabijaczleweli.xyz>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
}
+grepc_grepc()
+{
+ grepc_macro "$1";
+ grepc_enum_constant "$1";
+ grepc_func "$1";
+ grepc_linux "$1";
+ grepc_glibc "$1";
+ grepc_type "$1";
+}
+
+
main()
{
grepc_parse_cmd $@;
-
grepc_find_files "$identifier";
-
- grepc_macro "$identifier";
- grepc_enum_constant "$identifier";
- grepc_func "$identifier";
- grepc_linux "$identifier";
- grepc_glibc "$identifier";
- grepc_type "$identifier";
+ grepc_grepc "$identifier" \
+ | tail -n+3;
}
.SH EXAMPLES
.EX
.RB \(ti/src/nginx/unit$ " grepc nxt_sprintf;"
-\&
-\&
\&./src/nxt_sprintf.h:15:
-
NXT_EXPORT u_char *nxt_cdecl nxt_sprintf(u_char *buf, u_char *end,
const char *fmt, ...);
\&
\&
\&./src/nxt_sprintf.c:58:
-
u_char * nxt_cdecl
nxt_sprintf(u_char *buf, u_char *end, const char *fmt, ...)
{