heh he really was asleep ;)


Thri ritt:

[snip]
My solution, was to
#define sh_int int
in merc.h
[snip]
Do i have any long term issues i need to address? Was
this a completely foolish idea from a newbie coder?

I can think of a very Microsoftish long term issue: what
happens when one day you need even MORE vnums?
Don't laugh, when Billy said we'll never need more than
64kB RAM, people believed him. Why disbelieve me now?

Anyway, you could always turn it into a 'long int', or
failing that, replace every instance mentioned in that
other email of hard-coded upper limits with some kind
of const value or macro that does something like
#define MAX_NUM_VALUE       1 << (8 * sizeof(sh_int))
so that any future expansions (eg: long int) don't
require MORE changes at a later date.

I probably got that line wrong, so don't copy it into
your code without asking a less asleep C programmer
what it means.

Matty
--
The one French thing I like is the phrase: c'est la vie
It's so.. fatalistic. So hopeless. This is life.

_________________________________________________________________
Hot chart ringtones and polyphonics. Go to
http://ninemsn.com.au/mobilemania/default.asp


Reply via email to