Mail Archives: djgpp/2000/02/14/16:31:35
Message-ID: | <38A8017B.D93F7293@earthlink.net>
|
From: | Martin Ambuhl <mambuhl AT earthlink DOT net>
|
Organization: | Nocturnal Aviation
|
X-Mailer: | Mozilla 4.7 [en] (Win95; U)
|
X-Accept-Language: | en
|
MIME-Version: | 1.0
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: 256 variable holder... Quick Question!
|
References: | <saeug83qivs52 AT corp DOT supernews DOT com>
|
Lines: | 29
|
NNTP-Posting-Host: | 209.246.105.118
|
X-Complaints-To: | abuse AT earthlink DOT net
|
X-Trace: | newsread2.prod.itd.earthlink.net 950534506 209.246.105.118 (Mon, 14 Feb 2000 05:21:46 PST)
|
NNTP-Posting-Date: | Mon, 14 Feb 2000 05:21:46 PST
|
X-ELN-Date: | Mon Feb 14 05:21:46 2000
|
Date: | Mon, 14 Feb 2000 13:21:46 GMT
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Bryan Edds wrote:
>
> Okay, I need a variable that stores no more than 256. I used to use this to
> hold a number anywhere from 0 to 255;
> unsigned __int8 varname;
> varname = 255;
> It worked well and was very fast. But, this does not work in DJGPP. The
> smallest type I can use is a SHORT INT which is too slow for a graphics
> display, and a waste since I only use 256 colors. I need something like
> __INT8 to store numbers, but now it's gone. Any explanation is welcome, but
> if it gets complicated, please be thorough. I just now broke into the DJGPP
> scene.
How did you remove the standard types {unsigned, signed} char from your
implementation? Put them back.
--
Martin Ambuhl mambuhl AT earthlink DOT net
What one knows is, in youth, of little moment; they know enough who
know how to learn. - Henry Adams
A thick skin is a gift from God. - Konrad Adenauer
__________________________________________________________
Fight spam now!
Get your free anti-spam service: http://www.brightmail.com
- Raw text -