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 | 4ef634f0d16fbda69aef241fb561f27496c09867 (patch) | |
tree | 647f01e796b5b830b46968f589435f4bcd69b255 /regress/mdoc/Fo/warn.in | |
parent | cdc19ab62bcbc6a6f545f4f8f654f00a9a662f10 (diff) | |
download | mandoc-4ef634f0d16fbda69aef241fb561f27496c09867.tar.gz |
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 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/regress/mdoc/Fo/warn.in b/regress/mdoc/Fo/warn.in index bd58dabe..70e9f92b 100644 --- a/regress/mdoc/Fo/warn.in +++ b/regress/mdoc/Fo/warn.in @@ -1,4 +1,4 @@ -.\" $OpenBSD: warn.in,v 1.2 2017/07/04 14:53:25 schwarze Exp $ +.\" $OpenBSD: warn.in,v 1.3 2019/09/13 19:18:48 schwarze Exp $ .Dd $Mdocdate$ .Dt FO-WARN 1 .Os @@ -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 |