[svn:parrot] r43302 - branches/boehm_gc/compilers/imcc
bacek at svn.parrot.org
bacek at svn.parrot.org
Tue Dec 29 09:57:07 UTC 2009
Author: bacek
Date: Tue Dec 29 09:57:06 2009
New Revision: 43302
URL: https://trac.parrot.org/parrot/changeset/43302
Log:
And more realloc vs mem_sys_realloc fixes in IMCC.
Modified:
branches/boehm_gc/compilers/imcc/imcc.l
branches/boehm_gc/compilers/imcc/imclexer.c
Modified: branches/boehm_gc/compilers/imcc/imcc.l
==============================================================================
--- branches/boehm_gc/compilers/imcc/imcc.l Tue Dec 29 09:56:42 2009 (r43301)
+++ branches/boehm_gc/compilers/imcc/imcc.l Tue Dec 29 09:57:06 2009 (r43302)
@@ -883,7 +883,7 @@
macro_name);
len += strlen(val.s);
- current = (char *)realloc(current, len + 1);
+ current = (char *)mem_sys_realloc(current, len + 1);
strcat(current,val.s);
mem_sys_free(val.s);
@@ -951,7 +951,7 @@
else {
if (!need_id || c != ' ') {
len += strlen(val.s);
- current = (char *)realloc(current, len + 1);
+ current = (char *)mem_sys_realloc(current, len + 1);
strcat(current, val.s);
}
Modified: branches/boehm_gc/compilers/imcc/imclexer.c
==============================================================================
--- branches/boehm_gc/compilers/imcc/imclexer.c Tue Dec 29 09:56:42 2009 (r43301)
+++ branches/boehm_gc/compilers/imcc/imclexer.c Tue Dec 29 09:57:06 2009 (r43302)
@@ -5305,7 +5305,7 @@
macro_name);
len += strlen(val.s);
- current = (char *)realloc(current, len + 1);
+ current = (char *)mem_sys_realloc(current, len + 1);
strcat(current,val.s);
mem_sys_free(val.s);
@@ -5373,7 +5373,7 @@
else {
if (!need_id || c != ' ') {
len += strlen(val.s);
- current = (char *)realloc(current, len + 1);
+ current = (char *)mem_sys_realloc(current, len + 1);
strcat(current, val.s);
}
More information about the parrot-commits
mailing list