--- ray/src/common/savestr.c 1989/02/02 10:34:40 1.1 +++ ray/src/common/savestr.c 1992/07/03 10:51:50 2.2 @@ -1,8 +1,10 @@ -/* +/* Copyright 1988 Regents of the University of California */ #ifndef lint static char SCCSid[] = "$SunId$ LBL"; #endif + +/* * savestr.c - routines for efficient string storage. * * Savestr(s) stores a shared read-only string. @@ -31,6 +33,8 @@ typedef struct s_head { static S_HEAD *stab[NHASH]; +static int shash(); + extern char *savestr(), *strcpy(), *malloc(); #define NULL 0 @@ -89,21 +93,6 @@ char *s; sfree(sp); return; } -} - - -int -strcmp(s1, s2) /* check for s1==s2 */ -register char *s1, *s2; -{ - if (s1 == s2) - return(0); - - while (*s1 == *s2++) - if (!*s1++) - return(0); - - return(*s1 - *--s2); }