From: igor@9lab.org
To: 9front@9front.org
Cc: igor@9lab.org
Subject: [9front] [PATCH] acme: remove superfluous print arguments (patch from plan9port)
Date: Tue, 05 Oct 2021 11:45:29 +0200 [thread overview]
Message-ID: <B19881281322C1102C7CC038BB254BB3@9lab.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
The below is a recent patch from plan9port to acme:
* https://github.com/9fans/plan9port/commit/8cf52696bed986f8914f214768690d6ca47bae76
It removes superfluous print arguments passed to winevent(...).
<snip>
From: Igor Böhm <igor@9lab.org>
Date: Tue, 05 Oct 2021 09:40:30 +0000
Subject: [PATCH] acme: remove superfluous print arguments (patch from plan9port)
---
diff 6ebb8b9e357944cc29ae3fafc0900ee3e325ed39 956353d6a5034be1df107d195b7808c0da5b367c
--- a/sys/src/cmd/acme/exec.c Sun Oct 3 17:58:58 2021
+++ b/sys/src/cmd/acme/exec.c Tue Oct 5 11:40:30 2021
@@ -176,14 +176,14 @@
if(n <= EVENTSIZE)
winevent(t->w, "%c%d %d %d %d %.*S\n", c, aq0, aq1, f, n, n, r);
else
- winevent(t->w, "%c%d %d %d 0 \n", c, aq0, aq1, f, n);
+ winevent(t->w, "%c%d %d %d 0 \n", c, aq0, aq1, f);
if(q0!=aq0 || q1!=aq1){
n = q1-q0;
bufread(t->file, q0, r, n);
if(n <= EVENTSIZE)
winevent(t->w, "%c%d %d 0 %d %.*S\n", c, q0, q1, n, n, r);
else
- winevent(t->w, "%c%d %d 0 0 \n", c, q0, q1, n);
+ winevent(t->w, "%c%d %d 0 0 \n", c, q0, q1);
}
if(a){
winevent(t->w, "%c0 0 0 %d %s\n", c, utflen(a), a);
</snap>
Cheers,
Igor
[-- Attachment #2: acme.fix.extra.args.patch --]
[-- Type: text/plain, Size: 931 bytes --]
From: Igor Böhm <igor@9lab.org>
Date: Tue, 05 Oct 2021 09:40:30 +0000
Subject: [PATCH] acme: remove superfluous print arguments (patch from plan9port)
---
diff 6ebb8b9e357944cc29ae3fafc0900ee3e325ed39 956353d6a5034be1df107d195b7808c0da5b367c
--- a/sys/src/cmd/acme/exec.c Sun Oct 3 17:58:58 2021
+++ b/sys/src/cmd/acme/exec.c Tue Oct 5 11:40:30 2021
@@ -176,14 +176,14 @@
if(n <= EVENTSIZE)
winevent(t->w, "%c%d %d %d %d %.*S\n", c, aq0, aq1, f, n, n, r);
else
- winevent(t->w, "%c%d %d %d 0 \n", c, aq0, aq1, f, n);
+ winevent(t->w, "%c%d %d %d 0 \n", c, aq0, aq1, f);
if(q0!=aq0 || q1!=aq1){
n = q1-q0;
bufread(t->file, q0, r, n);
if(n <= EVENTSIZE)
winevent(t->w, "%c%d %d 0 %d %.*S\n", c, q0, q1, n, n, r);
else
- winevent(t->w, "%c%d %d 0 0 \n", c, q0, q1, n);
+ winevent(t->w, "%c%d %d 0 0 \n", c, q0, q1);
}
if(a){
winevent(t->w, "%c0 0 0 %d %s\n", c, utflen(a), a);
next reply other threads:[~2021-10-05 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 9:45 igor [this message]
2021-10-05 18:28 ` cinap_lenrek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=B19881281322C1102C7CC038BB254BB3@9lab.org \
--to=igor@9lab.org \
--cc=9front@9front.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).