Commit c3647fe0 by Richard Kenner

(stdlib.h): Be more general in edit to change declaration of

{c,m,re}alloc.

From-SVN: r10477
parent ce13d15f
...@@ -907,10 +907,10 @@ if [ -r ${LIB}/$file ]; then ...@@ -907,10 +907,10 @@ if [ -r ${LIB}/$file ]; then
echo Fixing $file echo Fixing $file
sed -e 's/int abort/void abort/g' \ sed -e 's/int abort/void abort/g' \
-e 's/int free/void free/g' \ -e 's/int free/void free/g' \
-e 's/char \* calloc/void \* calloc/g' \ -e 's/char[ ]*\*[ ]*calloc/void \* calloc/g' \
-e 's/char \* malloc/void \* malloc/g' \ -e 's/char[ ]*\*[ ]*malloc/void \* malloc/g' \
-e 's/char \* realloc/void \* realloc/g' \ -e 's/char[ ]*\*[ ]*realloc/void \* realloc/g' \
-e 's/int exit/void exit/g' \ -e 's/int[ ][ ]*exit/void exit/g' \
-e '/typedef[ a-zA-Z_]*[ ]size_t[ ]*;/i\ -e '/typedef[ a-zA-Z_]*[ ]size_t[ ]*;/i\
#ifndef _GCC_SIZE_T\ #ifndef _GCC_SIZE_T\
#define _GCC_SIZE_T #define _GCC_SIZE_T
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment