glib: standard GLib types



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]