From a1f1ee9b27d08644061bc440b779f99c3e9362f0 Mon Sep 17 00:00:00 2001 From: tgoodwin Date: Fri, 30 Oct 1998 16:07:02 +0000 Subject: Portability: rename basename() to rc_basename(), since the former is quite widespread, and has a variety of different definitions (none of them, of course, static). Portability: work around i386 GCC 2.7.2.3 optimization bug triggered by a (really quite simple) expression in history.c. --- history.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/history.c b/history.c index d1035dd..a4d3016 100644 --- a/history.c +++ b/history.c @@ -56,7 +56,7 @@ static char *newstr() { return ealloc((size_t)1024); } -static char *basename(const char *s) { +static char *rc_basename(char *s) { char *t = strrchr(s, '/'); return (t == NULL) ? s : t + 1; } @@ -175,7 +175,8 @@ start: continue; /* skip incrementing s */ case '\t': for (;; col++) { - if ((*f++ = s