From: 李微 <leethium@163.com>
To: 9fans <9fans@cse.psu.edu>
Subject: [9fans] USED() macro
Date: Sat, 12 Nov 2005 18:00:36 +0800 [thread overview]
Message-ID: <1131789636.7582.55.camel@localhost.localdomain> (raw)
In plan9port, USED() is defined as
#define USED(x) if(x){}else{}
Does it mean that USED() can only be applied on variables of "scalar
types"? But r is of a struct type in
void
drawresizewindow(Rectangle r)
{
USED(r);
bad();
}
in $PLAN9/src/libdraw/nowsys-wsys.c.
When compiling, 9c complains on that. A bug? Or an extension of Plan 9's
C dialect?
next reply other threads:[~2005-11-12 10:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-12 10:00 李微 [this message]
2005-11-12 11:18 ` Charles Forsyth
2005-11-12 13:17 ` Russ Cox
2005-11-12 14:42 ` 李微
2005-11-12 16:37 ` Russ Cox
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=1131789636.7582.55.camel@localhost.localdomain \
--to=leethium@163.com \
--cc=9fans@cse.psu.edu \
/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).