summaryrefslogtreecommitdiff
path: root/gcc/scan.c
diff options
context:
space:
mode:
authorbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-05 21:16:26 +0000
committerbothner <bothner@138bc75d-0d04-0410-961f-82ee72b054a4>1995-04-05 21:16:26 +0000
commitff8281e42fe545a0b86d5f185b9f44ea4f4c55a2 (patch)
tree444e0bc9b38ad6819d87db5007348f663acf5e60 /gcc/scan.c
parentad0e2334a8dbbaec4d046a4929b08571197a8ec8 (diff)
downloadgcc-ff8281e42fe545a0b86d5f185b9f44ea4f4c55a2.tar.gz
Re-write fixproto/fix-header/etc to use cpplib.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9316 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/scan.c')
-rw-r--r--gcc/scan.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/gcc/scan.c b/gcc/scan.c
index b6289908191..ff4b5696d7c 100644
--- a/gcc/scan.c
+++ b/gcc/scan.c
@@ -58,35 +58,6 @@ sstring_append (dst, src)
*d = 0;
}
-memory_full ()
-{
- abort();
-}
-
-char *
-xmalloc (size)
- unsigned size;
-{
- register char *ptr = (char *) malloc (size);
- if (ptr != 0) return (ptr);
- memory_full ();
- /*NOTREACHED*/
- return 0;
-}
-
-
-char *
-xrealloc (old, size)
- char *old;
- unsigned size;
-{
- register char *ptr = (char *) realloc (old, size);
- if (ptr != 0) return (ptr);
- memory_full ();
- /*NOTREACHED*/
- return 0;
-}
-
int
scan_ident (fp, s, c)
register FILE *fp;
@@ -267,13 +238,3 @@ get_token (fp, s)
*s->ptr = 0;
return c;
}
-
-unsigned long
-hash (str)
- char *str;
-{
- int h = 0;
- /* Replace this with something faster/better! FIXME! */
- while (*str) h = (h << 3) + *str++;
- return h & 0x7FFFFFFF;
-}