glib: standard GLib types
- From: Christopher Howard <christopher howard frigidcode com>
- To: gtk-app-devel-list gnome org
- Subject: glib: standard GLib types
- Date: Sun, 01 Apr 2012 07:25:12 -0800
Stupid noobish question here, but inquiring minds were wondering: is
there any benefit to doing
gint increment (gint)
instead of
int increment (int)
It seems like the two are exactly identical, except that in the former
case, you have permanently tied you function to glib. I can see perhaps
the benefit of gint64, guint64, et cetera, to portably fix bit widths,
but I'm not quite seeing the benefit of the fundamental type replacements.
--
frigidcode.com
indicium.us
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]