On Sat, 03 Jun 2000 22:06:09 PDT, the world broke into rejoicing as
Dylan Paul Thurston <[EMAIL PROTECTED]> said:
> On Sat, Jun 03, 2000 at 10:20:40AM -0700, Peter C. Norton wrote:
> > On Sat, Jun 03, 2000 at 05:01:51AM -0500, Richard Wackerbarth wrote:
> > > I agree. Using gint32 rather than int only solves part of the problem.
> > > foo_t is much more flexible.It reduces the architecture dependency to a
> > > single point in the code.
> > How is this different from using already-created typedefs in glib? glib
> > seems to provide a lot of the types necessary, already done.
>
> I think the point is that you might decide to change the size of one
> of the types at some point.
Ah, yes.
Basic idea being that it might be good to have a single type, of
platform-independent shape, that GnuCash uses.
Thus, perhaps, the
gcint
type.
Thus, everything in GnuCash would use the gcint type.
gcint is defined via:
typedef gint32 gcint;
which accordingly references whatever glib.h provides.
Note that this costs us _nothing_ at runtime, as the evaluation of types
is done by the C preprocessor, and this gets expanded, by the compiler,
to whatever is the "real" type from its perspective.
Mind you, I'm not sure there is _vast_ value in having GnuCash-specific
types over those defined by glib...
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/>
"Linux! Guerrilla UNIX Development Venimus, Vidimus, Dolavimus."
-- <[EMAIL PROTECTED]> Mark A. Horton KA4YBR
--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]