[quake2] Porting latest Quake2Max to Linux

Florian Westphal flo.westphal at gmx.net
Sun Jul 13 19:57:21 EDT 2003

Joshua Barney <derewuff at yahoo.com> wrote:
> typedef unsigned char 		byte;
> typedef enum {false, true}	qboolean;
> What does this mean?  Is "byte" one of those special words that means

No, byte is nothing special.
The above declaration creates a new data type byte which happens to be
an unsigned char.

It also creates a data type qboolean which is an enumeration that has
the list false and true. ("false" and "true" could be any name - the first
name in the list is a 0, then 1, 2, 3,... - all values other
than 0 mean "expression is true").

> And how can I stop it from being
> redefined?

By not redefining it?

typedef int foo;
typedef void foo;

conflicting types for `foo'
previous declaration of `foo'

Seriously, you should consider *NOT* doing this - get a good C programming
book instead.
Also consider doing more simple excercises at first - trust me on this,
I am a beginner myself.


More information about the quake2 mailing list