summaryrefslogtreecommitdiff
path: root/gcc/fixinc
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-22 04:02:14 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-22 04:02:14 +0000
commit6e58c05f6db5e32fff26c8706b3d7c183c6628ad (patch)
tree5623589d7648581e550b93ae97f819dd80986d8a /gcc/fixinc
parent824d62560569807dc8392db1b68b6f6e42adffeb (diff)
downloadgcc-6e58c05f6db5e32fff26c8706b3d7c183c6628ad.tar.gz
* fixinc/inclhack.def (sun_malloc): Handle `calloc'.
(sun_malloc, sysz_stdtypes_for_sun): Add test_text. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34071 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fixinc')
-rw-r--r--gcc/fixinc/fixincl.x1
-rw-r--r--gcc/fixinc/inclhack.def6
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/fixinc/fixincl.x b/gcc/fixinc/fixincl.x
index 912a159112a..ab5a38c26be 100644
--- a/gcc/fixinc/fixincl.x
+++ b/gcc/fixinc/fixincl.x
@@ -3736,6 +3736,7 @@ const char* apzSun_MallocPatch[] = { "sed",
"-e", "s/int[ \t][ \t]*free/void\tfree/g",
"-e", "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g",
"-e", "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g",
+ "-e", "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def
index f8d71910a1a..c952ad7a878 100644
--- a/gcc/fixinc/inclhack.def
+++ b/gcc/fixinc/inclhack.def
@@ -2039,11 +2039,13 @@ fix = {
sed = "s/int[ \t][ \t]*free/void\tfree/g";
sed = "s/char\\([ \t]*\\*[ \t]*malloc\\)/void\\1/g";
sed = "s/char\\([ \t]*\\*[ \t]*realloc\\)/void\\1/g";
+ sed = "s/char\\([ \t]*\\*[ \t]*calloc\\)/void\\1/g";
test_text =
"typedef char *\tmalloc_t;\n"
"int \tfree();\n"
"char*\tmalloc();\n"
+ "char*\tcalloc();\n"
"char*\trealloc();";
};
@@ -2597,6 +2599,10 @@ fix = {
sed = "/[\t ]wchar_t.*;/a\\\n"
"#endif\n";
+
+ test_text = "typedef int size_t; /* ??? */\n"
+ "typedef int ptrdiff_t; /* result of subtracting two pointers */\n"
+ "typedef unsigned short wchar_t; /* big enough for biggest char set */\n";
};