nanogui: typedef int MWBOOL;


Previous by date: 4 Jan 2002 03:53:14 -0000 Is there a calibration program in microwindows??, victor
Next by date: 4 Jan 2002 03:53:14 -0000 MWWINDOFBINFO.x and .y, Dave Poirier
Previous in thread:
Next in thread: 4 Jan 2002 03:53:14 -0000 Re: typedef int MWBOOL;, Greg Haerr

Subject: typedef int MWBOOL;
From: Dave Poirier ####@####.####
Date: 4 Jan 2002 03:53:14 -0000
Message-Id: <20020104035107.GA21033@void-core.2y.net>

I'm currently working on a project of porting nano-X to another
operating system and I came across this typedef, which seems like a
little huge for its use.

Unless I'm mistaken, a boolean value take either the value "true" or
"false", some prefer to use "1" or "0", etc.  But in all cases, it has
only 2 possible values, shouldn't a unsigned char be more than
sufficient to store it instead a wasting 4 bytes of data for it?

ref: include/mwtypes.h
-- 
EKS - Dave Poirier                               ####@####.####
"may the hairs on his toes never fall out"           http://uuu.sf.net/

Previous by date: 4 Jan 2002 03:53:14 -0000 Is there a calibration program in microwindows??, victor
Next by date: 4 Jan 2002 03:53:14 -0000 MWWINDOFBINFO.x and .y, Dave Poirier
Previous in thread:
Next in thread: 4 Jan 2002 03:53:14 -0000 Re: typedef int MWBOOL;, Greg Haerr


Powered by ezmlm-browse 0.20.