From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from new3-smtp.messagingengine.com (new3-smtp.messagingengine.com [66.111.4.229]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 4ab71a51 for ; Tue, 10 Sep 2019 03:20:26 -0500 (EST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 78EB33902 for ; Tue, 10 Sep 2019 04:20:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 10 Sep 2019 04:20:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yuripv.net; h=to :from:subject:message-id:date:mime-version:content-type :content-transfer-encoding; s=fm1; bh=p8Z+kzw6PaJfb1UyTNfnCF4yN1 mrByPEPFQ6snmzyEE=; b=dTKlboL3XVnHMgQey7q/hCIMuhLREAsSSWF50abM9T gdw9zWnkcuTUNp3dtpTM9CxY9Q7tAcxvKORIAcHztcwPR9VaOvFIk7qo2vb9sPLl 8URdvIzd5DpqM/Qu917HAC6QRNR93w2FhHMI+4ahJ134sVyJ6svFNf4hPPacnivm IMY8+jenGD+sC43CqhXIb7bbQvUgDkxsj3M7XSIcJ+vcjaSx0SX58fEl4yzBqFgh 30b0LmTE0WTVF960GH1+UCJs9moO5mGsWM9QRjxjPDM9xUNwS3sN06OcfvaZzswZ kID0Y24WEsleAWM6gucUZB83bfM1DQwx4yqKygbreQ+g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=p8Z+kz w6PaJfb1UyTNfnCF4yN1mrByPEPFQ6snmzyEE=; b=HLp6B2gy87QQ3w1nlm4B4e mIaDjMUyxrl29/t8kn/9kh16wNICq3/H9U6i49DMX1JBMaVBNZStyEInrobHZqGl myXcnXKvBLIyi5uHIbbNTuzvjzr9VDXHC+9xfMYgrFU0lAJoEQ4budUZ+G4UnHa9 T798vgGo5vMlK+lepSeXGeRA6CuZnpkdXRWUU3+OG9+rK3xpkKyi/aI4iTRVpgzv AbxBf8NMwFYXQFFEdWGzAW9K3BXsREfHU6fCn/AQOH4y6bIOsJnyKExnY3T51IRn oRNq2pZdgkpFBMU6P5xy2QJa/268U1FGvaYM92aWFP4g55Bf6F0jR/KBqtjwFXUg == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudekkedgtddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepvffhuffkffgfgggtgfesthejredttdefjeenucfhrhhomhepjghurhhiucfr rghnkhhovhcuoeihuhhrihhpvheshihurhhiphhvrdhnvghtqeenucfkphepuddtledrje dtrddugeegrdduhedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeihuhhrihhpvheshihu rhhiphhvrdhnvghtnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.11] (unknown [109.70.144.150]) by mail.messagingengine.com (Postfix) with ESMTPA id 7408ED60057 for ; Tue, 10 Sep 2019 04:20:25 -0400 (EDT) To: mandoc-discuss From: Yuri Pankov Subject: "WARNING: parenthesis in function name" correctness Message-ID: <421eeed3-8da5-b852-4581-1058de113831@yuripv.net> Date: Tue, 10 Sep 2019 11:20:24 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.0 X-Mailinglist: mandoc-discuss Reply-To: discuss@mandoc.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit I'm looking into fixing sbuf.9 which currently has somewhat unreadable: .Ft typedef\ int ( sbuf_drain_func ) ( void\ *arg, const\ char\ *data, int\ len ) ; ...into somewhat nicer: .Ft typedef int .Fo (sbuf_drain_func) .Fa "void *arg" .Fa "const char *data" .Fa "int len" .Fc ...but that gives me a: mandoc: share/man/man9/sbuf.9:69:5: WARNING: parenthesis in function name: (sbuf_drain_func) Looking at the code, parenthesis are only allowed in the following form: .Ft (*func_ptr) ...while here we don't have a "*" -- it's the way it's typedef'ed in the source, and I want to follow it, so I wonder if that check/warning is really useful. -- To unsubscribe send an email to discuss+unsubscribe@mandoc.bsd.lv