Remove malloc() fallback since we completely rely on g_malloc() nowadays.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4859 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
4d34795c94
commit
1cac20b8da
@ -8,6 +8,9 @@
|
|||||||
to a maximum of 32768 characters (closes #2979697).
|
to a maximum of 32768 characters (closes #2979697).
|
||||||
* tagmanager/ctags.c:
|
* tagmanager/ctags.c:
|
||||||
Change eFree() to simply ignore NULL pointers instead of asserting.
|
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>
|
2010-04-22 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
|
||||||
|
13
src/main.c
13
src/main.c
@ -1209,19 +1209,6 @@ void 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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reloads most of Geany's configuration files without restarting. Currently the following
|
* 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)'
|
* files are reloaded: all template files, also new file templates and the 'New (with template)'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user