Mercurial > hg > octave-nkf
changeset 306:b4b96eaaffa1
[project @ 1994-01-18 21:55:59 by jwe]
author | jwe |
---|---|
date | Tue, 18 Jan 1994 21:59:04 +0000 |
parents | 976a4a6e519b |
children | 9bccd5a92dc5 |
files | configure.in info/search.c info/search.h |
diffstat | 3 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in +++ b/configure.in @@ -245,7 +245,7 @@ AC_HAVE_HEADERS(sys/time.h sys/fcntl.h sys/ttold.h sys/ptem.h sys/select.h) AC_DIR_HEADER AC_HAVE_FUNCS(setvbuf getcwd bzero rindex vfprintf vsprintf) -AC_HAVE_FUNCS(strcasecmp strncasecmp) +AC_HAVE_FUNCS(stricmp strnicmp strcasecmp strncasecmp) AC_STRUCT_TM AC_SETVBUF_REVERSED TERMLIBS=""
--- a/info/search.c +++ b/info/search.c @@ -372,7 +372,7 @@ return (i); } -/* Unix doesn't have stricmp () functions. */ +#ifndef HAVE_STRICMP int stricmp (string1, string2) char *string1, *string2; @@ -394,7 +394,9 @@ return (ch1 - ch2); } } +#endif +#ifdef HAVE_STRNICMP /* Compare at most COUNT characters from string1 to string2. Case doesn't matter. */ int @@ -419,6 +421,7 @@ } return (count); } +#endif /* **************************************************************** */ /* */
--- a/info/search.h +++ b/info/search.h @@ -52,13 +52,16 @@ after the string. */ extern int string_in_line (); -/* Unix doesn't have stricmp () functions. */ +#ifndef HAVE_STRICMP /* strcmp (), but caseless. */ extern int stricmp (); +#endif +#ifndef HAVE_STRNICMP /* Compare at most COUNT characters from STRING1 to STRING2. Case doesn't matter. */ extern int strnicmp (); +#endif /* Function names that start with "skip" are passed a string, and return an offset from the start of that string. Function names that start