🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: rmit.comp.sys.mac
Article #8

Re: CodeWarrior

#8
From: Hamish Moffatt
Date: Wed, 05 Aug 1998 00:00
41 lines
2329 bytes
In rmit.comp.sys.mac Luke Walshe <lw@yallara.cs.rmit.edu.au> wrote:
> hamish@moffatt.nu (Hamish Moffatt) writes:
>>1. Missing library functions
>>unsigned char x;
>>stream >> x;

>>This won't link; >> operator is missing for unsigned char.
> I know you have read into a char then assign to uchar.

Confirmed by MW to be a library bug.

>>3. Weird character problems; for example, something like
> Support for the character type has always been ify in c++.
> If you want chars treated like chars by iostream you have
> to use char.  It will sometimes think uchar is a 8 bit int. 

That's the effect I want -- "unsigned char" should be a byte;
char might not be.

>>unsigned char a[4];
> change this to char a[4];

That helps, but doesn't fix it, and should work as is IMHO.

> Hang in there with CW.  A few minor C++ lib quirks are nothing to get
> excited about.

They are basic library functions -- I don't think it is unreasonable
to expect them to work out of the box :-( And minor they might be,
but how else can I read free-format binary files? Streams are a nice
interface because I should be able to use the same function to read
both files and Windows resources (and hopefully Mac resources too);
C I/O won't do that.


Hamish
-- 
Hamish Moffatt, StudIEAust              hamish@debian.org, hamish@moffatt.nu
Student, computer science & computer systems engineering.    4th year, RMIT.
http://hamish.home.ml.org/ (PGP key here)             CPOM: [*******   ] 71%
Nondeterminism means never having to say you are wrong.
Technical Details
Message-ID: <6q8sjm$rrk$1@emu.cs.rmit.edu.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6q6mo2$k20$2@emu.cs.rmit.edu.au> <6q8ln4$qeo$1@emu.cs.rmit.edu.au>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a4e6,d3a31d5aa2374f1d
X-Google-Attributes: gid10a4e6,public
X-Google-Thread: 10b5e3,d3a31d5aa2374f1d
X-Google-Attributes: gid10b5e3,public
From: hamish@moffatt.nu (Hamish Moffatt)
Subject: Re: CodeWarrior
Date: 1998/08/05
Message-ID: <6q8sjm$rrk$1@emu.cs.rmit.edu.au>
X-Deja-AN: 378068586
References: <6q6mo2$k20$2@emu.cs.rmit.edu.au> <6q8ln4$qeo$1@emu.cs.rmit.edu.au>
X-Complaints-To: abuse@cs.rmit.edu.au
X-Trace: emu.cs.rmit.edu.au 902297014 28532 131.170.24.42 (5 Aug 1998 06:03:34 GMT)
Organization: poor.
X-Posting-User: moffatt
User-Agent: tin/pre-1.4-980226 (UNIX) (SunOS/5.6 (sun4u))
NNTP-Posting-Date: 5 Aug 1998 06:03:34 GMT
Newsgroups: rmit.comp.sys.mac,aus.computers.mac