From: Joel Salomon <JoelCSalomon@Gmail.com>
To: 9fans@cse.psu.edu
Subject: charstod (Was re: [9fans] yacc question)
Date: Sun, 4 Feb 2007 16:00:39 -0500 [thread overview]
Message-ID: <f569496144a3ec7af70d476dac4c7410@plan9.jp> (raw)
In-Reply-To: <2c676621cf26397009c6517b10b0c610@plan9.jp>
As an aside, my yylex code included:
if(c == '.' || (isascii(c) && isdigit(c))){
Bungetc(src);
yylval = charstod(getc, 0);
Bungetc(src);
return NUMBER;
}
where getc was a simple wrapper around Bgetc(2) for compatibility with
charstod(2). Is that the right way to handle this, or is there a cast
that would allow me to say
yylval = charstod(Bgetc, src);
more directly?
--Joel
next prev parent reply other threads:[~2007-02-04 21:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-04 20:12 [9fans] yacc question Joel Salomon
2007-02-04 20:40 ` Russ Cox
2007-02-04 20:52 ` Joel Salomon
2007-02-04 21:00 ` Joel Salomon [this message]
2007-02-04 21:01 ` Russ Cox
2007-02-04 22:05 ` Joel Salomon
2007-02-05 1:06 ` geoff
2007-02-05 2:49 ` Joel Salomon
2007-02-05 3:06 ` geoff
2007-02-05 9:36 ` Bruce Ellis
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=f569496144a3ec7af70d476dac4c7410@plan9.jp \
--to=joelcsalomon@gmail.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).