diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-09-13 19:26:46 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-09-13 19:26:46 +0000 |
commit | 333417082dab30264386c33095d1f6e64f6939cc (patch) | |
tree | 848b1ddd19c1d1104764ca4b8dfd818c6e77d90a /regress/mdoc/Fo/warn.in | |
parent | f6bc3c824b41837a8b513e2805d3fd8a638f9912 (diff) | |
download | mandoc-333417082dab30264386c33095d1f6e64f6939cc.tar.gz mandoc-333417082dab30264386c33095d1f6e64f6939cc.tar.zst mandoc-333417082dab30264386c33095d1f6e64f6939cc.zip |
Improve validation of function names:
1. Relax checking to accept function types of the form
"ret_type (fname)(args)" (suggested by Yuri Pankov <yuripv dot net>).
2. Tighten checking to require the closing parenthesis.
Diffstat (limited to 'regress/mdoc/Fo/warn.in')
-rw-r--r-- | regress/mdoc/Fo/warn.in | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/regress/mdoc/Fo/warn.in b/regress/mdoc/Fo/warn.in index eb7cf2a6..af4c1448 100644 --- a/regress/mdoc/Fo/warn.in +++ b/regress/mdoc/Fo/warn.in @@ -1,5 +1,5 @@ -.\" $OpenBSD: warn.in,v 1.2 2017/07/04 14:53:25 schwarze Exp $ -.Dd $Mdocdate: July 4 2017 $ +.\" $OpenBSD: warn.in,v 1.3 2019/09/13 19:18:48 schwarze Exp $ +.Dd $Mdocdate: September 13 2019 $ .Dt FO-WARN 1 .Os .Sh NAME @@ -12,3 +12,17 @@ .Fc .Ft double .Fn atan2 "double y, double x" +.Ft int +.Fn close) "int fd" +.Ft typedef void +.Fn (handler) int +.Ft typedef void +.Fn (*fp) int +.Ft int +.Fn (open "const char *path" +.Ft FILE * +.Fn (*popen "const char *cmd" +.Ft void +.Fn (trail)x void +.Ft void +.Fn *star void |