* SN Doesn't recognize bool true/false
@ 2001-04-04 6:51 leonp
2001-04-04 11:38 ` D-Man
2001-04-05 23:05 ` Mo DeJong
0 siblings, 2 replies; 4+ messages in thread
From: leonp @ 2001-04-04 6:51 UTC (permalink / raw)
To: sourcenav
Hello, all.
Does anybody know the cause that SN C-parser doesn't recognize
"false" and "true" words (while do recognize "bool")?
Thanks.
Leon Pollak
leonp@plris.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SN Doesn't recognize bool true/false
2001-04-04 6:51 SN Doesn't recognize bool true/false leonp
@ 2001-04-04 11:38 ` D-Man
2001-04-05 23:05 ` Mo DeJong
1 sibling, 0 replies; 4+ messages in thread
From: D-Man @ 2001-04-04 11:38 UTC (permalink / raw)
To: sourcenav
They're not C. They are C++. (I don't know why it would recognize
'bool' unless it expands typedefs/#defines)
-D
On Wed, Apr 04, 2001 at 03:58:15PM +0200, leonp@plris.com wrote:
| Hello, all.
| Does anybody know the cause that SN C-parser doesn't recognize
| "false" and "true" words (while do recognize "bool")?
| Thanks.
|
|
| Leon Pollak
| leonp@plris.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SN Doesn't recognize bool true/false
2001-04-04 6:51 SN Doesn't recognize bool true/false leonp
2001-04-04 11:38 ` D-Man
@ 2001-04-05 23:05 ` Mo DeJong
2001-04-09 8:19 ` leonp
1 sibling, 1 reply; 4+ messages in thread
From: Mo DeJong @ 2001-04-05 23:05 UTC (permalink / raw)
To: sourcenav
On Wed, 4 Apr 2001 leonp@plris.com wrote:
> Hello, all.
> Does anybody know the cause that SN C-parser doesn't recognize
> "false" and "true" words (while do recognize "bool")?
> Thanks.
Because it has not been implemented. Seriously, adding
support for this kind of thing is not hard at all,
someone just needs to sit down for 20 minutes and
actually do it.
Why don't you try this patch out and see if it works for you?
Index: c_high.l
===================================================================
RCS file: /cvs/cvsfiles/devo/snavigator/hyper/c_high.l,v
retrieving revision 1.12
diff -u -r1.12 c_high.l
--- c_high.l 2001/02/26 00:48:08 1.12
+++ c_high.l 2001/04/06 06:03:26
@@ -145,6 +145,7 @@
else |
enum |
extern |
+false |
float |
for |
friend |
@@ -174,6 +175,7 @@
template |
this |
throw |
+true |
try |
typedef |
union |
Mo DeJong
Red Hat Inc
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: SN Doesn't recognize bool true/false
2001-04-05 23:05 ` Mo DeJong
@ 2001-04-09 8:19 ` leonp
0 siblings, 0 replies; 4+ messages in thread
From: leonp @ 2001-04-09 8:19 UTC (permalink / raw)
To: Mo DeJong; +Cc: sourcenav
At 23:05 05/04/01 -0700, you wrote:
>On Wed, 4 Apr 2001 leonp@plris.com wrote:
>
> > Hello, all.
> > Does anybody know the cause that SN C-parser doesn't recognize
> > "false" and "true" words (while do recognize "bool")?
> > Thanks.
>
>Because it has not been implemented. Seriously, adding
>support for this kind of thing is not hard at all,
>someone just needs to sit down for 20 minutes and
>actually do it.
>
>Why don't you try this patch out and see if it works for you?
>
>Index: c_high.l
>===================================================================
>RCS file: /cvs/cvsfiles/devo/snavigator/hyper/c_high.l,v
>retrieving revision 1.12
>diff -u -r1.12 c_high.l
>--- c_high.l 2001/02/26 00:48:08 1.12
>+++ c_high.l 2001/04/06 06:03:26
>@@ -145,6 +145,7 @@
> else |
> enum |
> extern |
>+false |
> float |
> for |
> friend |
>@@ -174,6 +175,7 @@
> template |
> this |
> throw |
>+true |
> try |
> typedef |
> union |
>
>Mo DeJong
>Red Hat Inc
I apologize for not to be able to test this yet - I still didn't forced
myself to study the Windows installation of SN from sources - it was
written somewhere several times, that it is a real pain (as all the Windows
is).
Yet, the patch seems to work, I did the debugging by my eyes. :-))
Leon Pollak
leonp@plris.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-04-09 8:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-04 6:51 SN Doesn't recognize bool true/false leonp
2001-04-04 11:38 ` D-Man
2001-04-05 23:05 ` Mo DeJong
2001-04-09 8:19 ` leonp
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 read-only IMAP folder(s) and NNTP newsgroup(s).