From 4ef634f0d16fbda69aef241fb561f27496c09867 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'regress/mdoc/Fo/warn.in') 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 -- cgit