summaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1992-01-30 22:55:19 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1992-01-30 22:55:19 +0000
commitc8bb4318fb6c99fc6bf182b35faf71c1f6b5abaa (patch)
tree248659271905a0e261fe5e5221742f21dccd71ff /gcc/protoize.c
parent85eef4965d22822be5764439d1eca874df621946 (diff)
downloadgcc-c8bb4318fb6c99fc6bf182b35faf71c1f6b5abaa.tar.gz
*** empty log message ***
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@257 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index b74c3d46be1..2b7dd810b79 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -320,9 +320,7 @@ struct default_include { char *fname; int cplusplus; } include_defaults[]
#ifdef SYSTEM_INCLUDE_DIR
{ SYSTEM_INCLUDE_DIR, 0},
#endif
-#ifndef NO_STANDARD_INCLUDE_DIR
{ STANDARD_INCLUDE_DIR, 0},
-#endif
#endif /* not CROSS_COMPILE */
{ 0, 0}
};
@@ -614,8 +612,9 @@ static char * saved_repl_write_ptr;
static const char *shortpath ();
/* Allocate some space, but check that the allocation was successful. */
+/* alloca.c uses this, so don't make it static. */
-static pointer_type
+pointer_type
xmalloc (byte_count)
size_t byte_count;
{
@@ -635,7 +634,7 @@ xmalloc (byte_count)
/* Reallocate some space, but check that the reallocation was successful. */
-static pointer_type
+pointer_type
xrealloc (old_space, byte_count)
pointer_type old_space;
size_t byte_count;
@@ -658,7 +657,7 @@ xrealloc (old_space, byte_count)
the `const' qualifier from it and also make sure that the pointer value
is non-null. */
-static void
+void
xfree (p)
const_pointer_type p;
{
@@ -1933,7 +1932,7 @@ munge_compile_params (params_list)
/* Make a copy of the compile_params in heap space. */
compile_params
- = (char **) xmalloc (sizeof (char *) * (param_count+1));
+ = (const char **) xmalloc (sizeof (char *) * (param_count+1));
memcpy (compile_params, temp_params, sizeof (char *) * param_count);
}