From 333417082dab30264386c33095d1f6e64f6939cc Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Fri, 13 Sep 2019 19:26:46 +0000 Subject: Improve validation of function names: 1. Relax checking to accept function types of the form "ret_type (fname)(args)" (suggested by Yuri Pankov ). 2. Tighten checking to require the closing parenthesis. --- regress/mdoc/Fo/warn.in | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'regress/mdoc/Fo/warn.in') 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 -- cgit v1.2.3-56-ge451