SF.net SVN: geany:[4859] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Apr 25 17:42:43 UTC 2010


Revision: 4859
          http://geany.svn.sourceforge.net/geany/?rev=4859&view=rev
Author:   eht16
Date:     2010-04-25 17:42:43 +0000 (Sun, 25 Apr 2010)

Log Message:
-----------
Remove malloc() fallback since we completely rely on g_malloc() nowadays.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/main.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-04-25 17:42:33 UTC (rev 4858)
+++ trunk/ChangeLog	2010-04-25 17:42:43 UTC (rev 4859)
@@ -8,6 +8,9 @@
    to a maximum of 32768 characters (closes #2979697).
  * tagmanager/ctags.c:
    Change eFree() to simply ignore NULL pointers instead of asserting.
+ * src/main.c:
+   Remove malloc() fallback since we completely rely on g_malloc()
+   nowadays.
 
 
 2010-04-22  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/main.c
===================================================================
--- trunk/src/main.c	2010-04-25 17:42:33 UTC (rev 4858)
+++ trunk/src/main.c	2010-04-25 17:42:43 UTC (rev 4859)
@@ -1209,19 +1209,6 @@
 }
 
 
-/* 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);
-}
-
-
 /**
  *  Reloads most of Geany's configuration files without restarting. Currently the following
  *  files are reloaded: all template files, also new file templates and the 'New (with template)'


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