From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 11191 invoked from network); 27 Apr 2020 18:49:19 -0000 Received: from minnie.tuhs.org (45.79.103.53) by inbox.vuxu.org with UTF8ESMTPZ; 27 Apr 2020 18:49:19 -0000 Received: by minnie.tuhs.org (Postfix, from userid 112) id CD0A09C9A5; Tue, 28 Apr 2020 04:49:05 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 54E689B934; Tue, 28 Apr 2020 04:48:38 +1000 (AEST) Authentication-Results: minnie.tuhs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nceKGiqN"; dkim-atps=neutral Received: by minnie.tuhs.org (Postfix, from userid 112) id C3B0A9B934; Tue, 28 Apr 2020 04:47:40 +1000 (AEST) Received: from mail-qt1-f171.google.com (mail-qt1-f171.google.com [209.85.160.171]) by minnie.tuhs.org (Postfix) with ESMTPS id B0D8294895 for ; Tue, 28 Apr 2020 04:47:39 +1000 (AEST) Received: by mail-qt1-f171.google.com with SMTP id z90so15165073qtd.10 for ; Mon, 27 Apr 2020 11:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=BvISeYcfHHdEGHdV1+Gce3Hg+GF9jUhn9+ZpPE9hs0M=; b=nceKGiqNG4t7fmBdrEzssrEEsIrfncGtj+DIgJTnA/RdbsMhyhsBlAxJEV73NEMhAF LZhYL38RuvS/k651agkHj7NI6at36Wx2tURtmfJF95cRkTvlc9vpjC6YJncEgSYKAJMS KUlAkN/naX9sHZ+Wykk7O1yXBV2zkDrdW1WYWty5nv9EVBfwt/vDffyBqW48MpMnAiGN hqDW3Y8Czg9lfXMej9u1/MIN9WyL2MterjALaJggCBp/YZr0/QaYSBk4EI+oJnzkar1X L++vDfDp5BCNV1zwa4l7LKIyufw3epiIyyQB+YO6WZ6K/sdGAWqLSTFbVv/QY//sO+fh jOdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=BvISeYcfHHdEGHdV1+Gce3Hg+GF9jUhn9+ZpPE9hs0M=; b=YO8mZSIWPXQDOBMIx4O9uB+OFx0BaZ+GsUuMx7huJdv12JqYuv1fGOgZs6SQQsoXSe EXGP6J7srhk6qL/zJIg70OH8rev38vXsNB7Q2OL1JfC1epKSoGM+Qi6mdYKJCQpDIHye UyItleGf1g68BoYHprN1nogpbcuXDHn98NICUXrNPxocramfXZeR4yKl/kI8L3Him59y fpkakykQw53TPNTQEt6mOnzOZLS7Lq+4m18ElRD370+0ftXxMW29hF/KIiJLxQmzizcN +qVrgtYd6uBGPDVrOQqniAUPL5XPU5rKqYtpq3OTUmqp///Jkiqlarn6VvVYqBuzVu+E YE6Q== X-Gm-Message-State: AGi0PuYSTKlAIEbAEqmaWY2gSCveyWdMyz+Hvjt/0girjSWbY0gUBM6G n1N7LynyNuA4WlAxk5JkNGzcZEr/ X-Google-Smtp-Source: APiQypK3JpSs9lzPVyjNZ+TqDAF//bKmyLxJtDJYd+TfTvIIu1o9eBeZv3juSIu6lGxPQClUNT4J0Q== X-Received: by 2002:ac8:4796:: with SMTP id k22mr23951774qtq.215.1588013258303; Mon, 27 Apr 2020 11:47:38 -0700 (PDT) Received: from ?IPv6:2600:8800:7c80:1584:2026:c2aa:4a2:d640? ([2600:8800:7c80:1584:2026:c2aa:4a2:d640]) by smtp.gmail.com with ESMTPSA id p80sm11333542qka.134.2020.04.27.11.47.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2020 11:47:37 -0700 (PDT) From: Adam Thornton Content-Type: multipart/alternative; boundary="Apple-Mail=_C1D360B3-172C-47DC-8D65-FAEFD1E84ADA" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Date: Mon, 27 Apr 2020 11:47:29 -0700 References: <20200425131112.6E54F18C0B6@mercury.lcs.mit.edu> <1587821712.2206.338.camel@mni.thm.de> <2050076633.160857.1587841270567@mail.yahoo.com> <202004260640.03Q6ewui006245@freefriends.org> To: TUHS main list In-Reply-To: <202004260640.03Q6ewui006245@freefriends.org> Message-Id: X-Mailer: Apple Mail (2.3608.80.23.2.2) Subject: [TUHS] s-for-v7, was Re: v7 K&R C X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.26 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" --Apple-Mail=_C1D360B3-172C-47DC-8D65-FAEFD1E84ADA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If anyone else could use it, =E2=80=9Cs=E2=80=9D slightly modified from = Miller=E2=80=99s sources (via Udo Munk=E2=80=99s repository) to build on = out-of-the-box v7 + C compiler: https://github.com/athornton/s/tree/v7 = It=E2=80=99s a reimplementation of Paul Ruizendall=E2=80=99s work. The = changes are: 1) the indirect function call syntax needs to be (*fcn)(arg) rather than = fcn(arg). 2) scr_delr and scr_delc needed to be shortened by a character because = the linker puts an underscore in front of the name and truncates the = symbol to 8 characters, and without that fix they are not = distinguishable. 3) isprint() in v7 didn't recognize the space as a printable character Screen repainting doesn=E2=80=99t seem to be entirely reliable, but=E2=80=A6= it still works a lot like vi, which I find more pleasant than ed. Adam= --Apple-Mail=_C1D360B3-172C-47DC-8D65-FAEFD1E84ADA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 If = anyone else could use it, =E2=80=9Cs=E2=80=9D slightly modified from = Miller=E2=80=99s sources (via Udo Munk=E2=80=99s repository) to build on = out-of-the-box v7 + C compiler:


It=E2=80=99s a = reimplementation of Paul Ruizendall=E2=80=99s work.  The changes = are:
1) the indirect function call syntax needs to = be (*fcn)(arg) rather than fcn(arg).
2) scr_delr = and scr_delc needed to be shortened by a character because the linker = puts an underscore in front of the name and truncates the symbol to 8 = characters, and without that fix they are not distinguishable.
3) isprint() in v7 didn't recognize the space as a printable = character

Screen= repainting doesn=E2=80=99t seem to be entirely reliable, but=E2=80=A6it = still works a lot like vi, which I find more pleasant than ed.

Adam
= --Apple-Mail=_C1D360B3-172C-47DC-8D65-FAEFD1E84ADA--