SF.net SVN: geany-plugins:[338] trunk/geanydebug/src/gdb-io-run.c

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Dec 12 13:07:12 UTC 2008


Revision: 338
          http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=338&view=rev
Author:   ntrel
Date:     2008-12-12 13:07:11 +0000 (Fri, 12 Dec 2008)

Log Message:
-----------
Fix for GLib < 2.14.

Modified Paths:
--------------
    trunk/geanydebug/src/gdb-io-run.c

Modified: trunk/geanydebug/src/gdb-io-run.c
===================================================================
--- trunk/geanydebug/src/gdb-io-run.c	2008-12-09 13:08:19 UTC (rev 337)
+++ trunk/geanydebug/src/gdb-io-run.c	2008-12-12 13:07:11 UTC (rev 338)
@@ -55,6 +55,17 @@
 
 
 
+#if !GLIB_CHECK_VERSION(2, 14, 0)
+static void
+g_string_append_vprintf(GString *str, const gchar *fmt, va_list args)
+{
+	gchar *tmp = g_strdup_vprintf(fmt, args);
+	g_string_append(str, tmp);
+	g_free(tmp);
+}
+#endif
+
+
 /* Add a handler function to the sequencer */
 gint
 gdbio_send_seq_cmd(ResponseHandler func, const gchar * fmt, ...)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Plugins-Commits mailing list