SF.net SVN: geany: [1596] trunk
eht16 at users.sourceforge.net
eht16 at xxxxx
Mon Jun 4 13:22:44 UTC 2007
Revision: 1596
http://svn.sourceforge.net/geany/?rev=1596&view=rev
Author: eht16
Date: 2007-06-04 06:22:43 -0700 (Mon, 04 Jun 2007)
Log Message:
-----------
Add rpl_malloc() for better compatibility with non-GNU systems (thanks to Harri Koskinen for reporting).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/main.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2007-06-03 16:51:48 UTC (rev 1595)
+++ trunk/ChangeLog 2007-06-04 13:22:43 UTC (rev 1596)
@@ -1,3 +1,9 @@
+2007-06-04 Enrico Tröger <enrico.troeger at uvena.de>
+
+ * src/main.c: Add rpl_malloc() for better compatibility with non-GNU
+ systems (thanks to Harri Koskinen for reporting).
+
+
2007-06-03 Enrico Tröger <enrico.troeger at uvena.de>
* doc/geany.docbook, src/keybindings.c, src/keybindings.h:
@@ -3,5 +9,5 @@
Add keybindings for forward/back code navigation.
* src/navqueue.c, src/navqueue.h:
- Add $Id$ keyword and short file description.
+ Add Id SVN keyword and short file description.
Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c 2007-06-03 16:51:48 UTC (rev 1595)
+++ trunk/src/main.c 2007-06-04 13:22:43 UTC (rev 1596)
@@ -846,3 +846,16 @@
gtk_main_quit();
}
+
+
+// malloc compatibility code
+#undef malloc
+void *malloc(size_t n);
+
+// Allocate an N-byte block of memory from the heap. If N is zero, allocate a 1-byte block.
+void *rpl_malloc(size_t n)
+{
+ if (n == 0)
+ n = 1;
+ return malloc(n);
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list