From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=AWL,BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS, UNPARSEABLE_RELAY shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id B2DF21F66E for ; Fri, 21 Aug 2020 17:58:07 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1k9BIj-0005HF-87; Fri, 21 Aug 2020 17:58:05 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k9BIh-0005H7-TG for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 17:58:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=y/XdQ/RACuclfHvnGlPslSUl3zVewHTwHr+3se2RI/k=; b=OPI8JA+SkIlU4Iq7joucjDkSHB RRTGUfhyK8ZAyfk6lau/lE5Mx95ZzHbntRj+Wcajy1oE5X8+16nN32HABC10DnbCFBcsQ5a7VEUC5 afmNPefXU5Sct8VuvY/ZFgNNFlPT6C5vvj7m06aQiO+VtQkbUNAifEwV3L+lPGxZdElU=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=y/XdQ/RACuclfHvnGlPslSUl3zVewHTwHr+3se2RI/k=; b=OfZwCK1cS4YjQhg9uaJS3AU6IZ paAS4txiJqX/6AKZqRvI28NN5Er8OlAV9QnALKUzoPmqdQL8UuG2tqecYb434QsQvm3jOyz1zTWa1 EeSVedfxTD1pLWYyAjEqjLxzP8AMQgnnUzFrS2JCfQmUQ99ETLube6LfzpZVDmIrwhIw=; Received: from uvt.stare.cz ([185.63.96.79] helo=mx.stare.cz) by sfi-mx-3.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1k9BIg-000WIR-9U for sox-devel@lists.sourceforge.net; Fri, 21 Aug 2020 17:58:03 +0000 Received: from localhost (stare.cz [local]) by stare.cz (OpenSMTPD) with ESMTPA id 106d53c0; Fri, 21 Aug 2020 19:57:45 +0200 (CEST) Date: Fri, 21 Aug 2020 19:57:44 +0200 From: Jan Stary To: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Message-ID: <20200821175744.GA93610@www.stare.cz> References: <20200821081621.GA85272@www.stare.cz> <20200821151610.GA82566@www.stare.cz> <20200821152130.GA6847@www.stare.cz> <20200821174358.GA88757@www.stare.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Headers-End: 1k9BIg-000WIR-9U Subject: Re: Build system cleanup X-BeenThere: sox-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: sox-devel@lists.sourceforge.net Cc: sox-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: sox-devel-bounces@lists.sourceforge.net > >>> [$9 *], m4_argn([8], m4_shift2($@))) dnl OpenBSD m4 can't count > > > > Can you please give a minimal example of an m4 input > > that demonstrates the problem? If something as fundamental > > as counting the number of arguments is broken, > > it needs fixing of course, instead of having > > software have to work around that. > > Sure. Run m4 over the below. It should print '10' three times. > $ cat in divert(-1)dnl changequote([, ]) define([dquote], [[$@]]) define([argn], [pushdef([_$0], [popdef([_$0])]dquote([$]incr([$1])))_$0($@)]) define([foo], [argn([10], $@)]) define([bar], [argn([9], shift($@))]) define([baz], [argn([8], shift(shift($@)))]) define([numbers], [[1], [2], [3], [4], [5], [6], [7], [8], [9], [10]]) divert(0)dnl foo(numbers) bar(numbers) baz(numbers) $ m4 in 101 90 10 Thanks, I'll look into that. _______________________________________________ SoX-devel mailing list SoX-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sox-devel