GNOME Bugzilla – Bug 560977
Cleaning up GTK Includes in vte
Last modified: 2008-11-18 14:24:50 UTC
I'm working on implementing http://live.gnome.org/GnomeGoals/CleanupGTKIncludes If it's not a good idea, or not currently on the agenda, please let me know. Otherwise I'll be working on this for now.
Created attachment 122765 [details] [review] Patch for this bug
That's an overkill. If the only part of glib that gnome-pty-helper uses is g_alloca (which seems to be the case), I'd rather get rid of that dependency. g-p-h is a suid app, so the less it includes the better for sure.
I removed glib use from g-p-h. Only needed g_alloca->alloca, and gboolean->int, FALSE->0, TRUE->1.
I was thinking that alloca may not be portable. But we can wait and see :).
Right. If it turns out to be aproblem, we could use AC_FUNC_ALLOCA + stuff (see autoconf manual), or just use an ordinary malloc and free before returns :)