From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: tuhs-bounces@minnie.tuhs.org X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.1 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 5e60f2b0 for ; Sun, 1 Jul 2018 11:53:53 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id 75106A1858; Sun, 1 Jul 2018 21:53:52 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id DA7CE9E5C7; Sun, 1 Jul 2018 21:53:32 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id EC8E29E5C6; Sun, 1 Jul 2018 21:35:03 +1000 (AEST) Received: from smtp-out-2.mxes.net (smtp-out-2.mxes.net [67.222.241.118]) by minnie.tuhs.org (Postfix) with ESMTPS id 94FDB9E5C1 for ; Sun, 1 Jul 2018 21:35:03 +1000 (AEST) Received: from mua (mua.mxes.net [10.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTPSA id 0CCC72754E; Sun, 1 Jul 2018 07:35:01 -0400 (EDT) From: To: "'Dave Horsfall'" , "'The Eunuchs Hysterical Society'" References: <3386fb80b5282f7bca0ccf34252182c2398232c1@webmail.yaccman.com> <5D272962-0063-4D28-B551-F381D3D10239@alchemistowl.org> In-Reply-To: Date: Sun, 1 Jul 2018 07:34:58 -0400 Message-ID: <009101d4112f$8bb30f50$a3192df0$@ronnatalie.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQJU3jXBdoDaG1dxPUrWZ7XbX5xdxQISgkIgAkbggUijVdaAUA== Content-Language: en-us X-Sent-To: X-Mailman-Approved-At: Sun, 01 Jul 2018 21:52:22 +1000 Subject: Re: [TUHS] Any Good dmr Anecdotes? X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" Printf didn't use nargs (and still doesn't). It looked at the = presence of the % markers and assumes that=E2=80=99s how many arguments = were passed. It worked on the PDP-11 or any similar stack calling sequence. It was = only after C got moved to some of the more varied architectures that VARARGS/STDARG was implemented to achieve some level of variable = argument portability. Even so, there's not a concept of "nargs" to = this day. The PDP-11 nargs was a kludge that looked at the calling code. This = obviously didn't work if you were in split I-D mode (where you couldn't = address the i-space). There was a published hack to rewire the processor to allow = MTPI to work in user mode from your OWN I space to make it work. The bigger issue with the early printf is it just called putchar and = putchar only output to stdout or what ever the global fout variable was = set to. There was a comment in the manual that the fout concept was kludgy. -----Original Message----- From: TUHS On Behalf Of Dave Horsfall Sent: Sunday, July 1, 2018 1:30 AM To: The Eunuchs Hysterical Society Subject: Re: [TUHS] Any Good dmr Anecdotes? On Sat, 30 Jun 2018, Arrigo Triulzi wrote: > As I was told this visitor was the R in the =E2=80=9CK&R=E2=80=9D book = I felt I could=20 > finally ask =E2=80=9Csomeone who knew=E2=80=9D how printf() worked = with a variable=20 > number of arguments. It wouldn't've used that awful nargs() call at that time, would it? I = was glad when that horror was removed. -- Dave