delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/08/07:02:48

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Thomas J. Hruska" <thruska AT tir DOT com>
Subject: RE: struct...help?
Date: Tue, 8 Sep 1998 12:00:26 +0100
Message-ID: <000101bddb17$e296b420$c14d08c3@arthur>
MIME-Version: 1.0
In-Reply-To: <3.0.5.16.19980908004651.239f2016@mail.tir.com>
Importance: Normal

> At 02:13 AM 9/7/98 -0400, you wrote:
> >Thomas J. Hruska wrote in message
> ><3 DOT 0 DOT 5 DOT 16 DOT 19980906220313 DOT 0cf77836 AT mail DOT tir DOT com>...
> >|I was looking at RHIDE and DJGPP doesn't seem to support the struct
> >|keyword.  Struct is an ANSI standard and is required pretty much for
> >all
> >|compilers to have the feature.
> >============
> >Where did you get the impression that the djgpp gcc and g++ compilers do
> >not support the struct keyword.  Of course they do.
>
> Oops.  I just re-read what I wrote and I must have stayed up too late or
> something.  I meant that RHIDE didn't change the color to white for the
> struct keyword.  Oh well, at least I know the DJGPP gcc/g++ compilers
> support it anyway.  Whatever is wrong with RHIDE, I don't know, and I
> probably don't want to know either.

Nothing's wrong with RHIDE. It certainly highlights the class keyword
correctly, and I'm pretty sure I've seen the word struct in white. Perhaps
you havn't got the latest version of RHIDE? It's up to 1.4.5 (beta) now.

Actually the reason is probably that you havn't saved the file. RHIDE
doesn't highlight text until it knows what kind of file it's supposed to be
highlighting. If you create a new file and type
struct Person{char name[25]; int age;}Percy, Frank;
you'll notice that there's no highlighting - it's all yellow. Saving the
file as struct.h or something will cause RHIDE to realise it's not editing a
Pascal or any other type of file. It knows it's a file for C and will
highlight everything accordingly.

James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019