From: Dave Olien <dmo@osdl.org>
To: torvalds@transmeta.com
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] another minor sparse change adding opnames.
Date: Mon, 23 Jun 2003 14:35:35 -0700 [thread overview]
Message-ID: <20030623213535.GA25257@osdl.org> (raw)
Add more operations to the name list. Without these additions,
the "and" operator is displayed as a null pointer.
In the original code, the "&" operator was within the name[] array,
but didnt' have a string assigned to it. So printf() displayed it as
the string "null". While I was at it, I added other operation names to
the table.
--- sparse_original/show-parse.c 2003-06-10 11:02:22.000000000 -0700
+++ sparse_test/show-parse.c 2003-06-23 14:29:17.000000000 -0700
@@ -607,7 +607,8 @@
static const char *name[] = {
['+'] = "add", ['-'] = "sub",
['*'] = "mul", ['/'] = "div",
- ['%'] = "mod"
+ ['%'] = "mod", ['&'] = "and",
+ ['|'] = "lor", ['^'] = "xor"
};
unsigned int op = expr->op;
reply other threads:[~2003-06-23 21:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20030623213535.GA25257@osdl.org \
--to=dmo@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.