Commit 99ed9dc9 authored by Chris Allegretta's avatar Chris Allegretta
Browse files

- utils.c:strcasestr(),revstrcasestr() - Renamed to stristr and revstristr...

- utils.c:strcasestr(),revstrcasestr() - Renamed to stristr and revstristr since strcasestr has not been confirmed to be detected properly on various Linux systems


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1089 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 11 additions and 6 deletions
+11 -6
...@@ -71,6 +71,11 @@ CVS code - ...@@ -71,6 +71,11 @@ CVS code -
- utils.c: - utils.c:
strstrwrapper() strstrwrapper()
- NANO_SMALL test was backwards (Ken Tyler). - NANO_SMALL test was backwards (Ken Tyler).
- utils.c:
strcasestr(),revstrcasestr()
- Renamed to stristr and revstristr since strcasestr has not
been confirmed to be detected properly on various Linux
systems.
- nanorc.sample - nanorc.sample
- Mention unset in the sample nanorc. - Mention unset in the sample nanorc.
- po/ca.po, po/es.po: - po/ca.po, po/es.po:
......
...@@ -86,8 +86,8 @@ extern toggle *toggles; ...@@ -86,8 +86,8 @@ extern toggle *toggles;
/* Programs we want available */ /* Programs we want available */
char *revstrstr(char *haystack, char *needle, char *rev_start); char *revstrstr(char *haystack, char *needle, char *rev_start);
char *strcasestr(char *haystack, char *needle); char *stristr(char *haystack, char *needle);
char *revstrcasestr(char *haystack, char *needle, char *rev_start); char *revstristr(char *haystack, char *needle, char *rev_start);
char *strstrwrapper(char *haystack, char *needle, char *rev_start); char *strstrwrapper(char *haystack, char *needle, char *rev_start);
int search_init(int replacing); int search_init(int replacing);
int renumber(filestruct * fileptr); int renumber(filestruct * fileptr);
......
...@@ -77,7 +77,7 @@ char *revstrstr(char *haystack, char *needle, char *rev_start) ...@@ -77,7 +77,7 @@ char *revstrstr(char *haystack, char *needle, char *rev_start)
return 0; return 0;
} }
char *revstrcasestr(char *haystack, char *needle, char *rev_start) char *revstristr(char *haystack, char *needle, char *rev_start)
{ {
char *p, *q, *r; char *p, *q, *r;
...@@ -92,7 +92,7 @@ char *revstrcasestr(char *haystack, char *needle, char *rev_start) ...@@ -92,7 +92,7 @@ char *revstrcasestr(char *haystack, char *needle, char *rev_start)
/* This is now mutt's version (called mutt_stristr) because it doesn't /* This is now mutt's version (called mutt_stristr) because it doesn't
use memory allocation to do a simple search (yuck). */ use memory allocation to do a simple search (yuck). */
char *strcasestr(char *haystack, char *needle) char *stristr(char *haystack, char *needle)
{ {
const char *p, *q; const char *p, *q;
...@@ -151,10 +151,10 @@ char *strstrwrapper(char *haystack, char *needle, char *rev_start) ...@@ -151,10 +151,10 @@ char *strstrwrapper(char *haystack, char *needle, char *rev_start)
} else { } else {
if (ISSET(REVERSE_SEARCH)) if (ISSET(REVERSE_SEARCH))
return revstrcasestr(haystack, needle, rev_start); return revstristr(haystack, needle, rev_start);
else else
#endif #endif
return strcasestr(haystack, needle); return stristr(haystack, needle);
#ifndef NANO_SMALL #ifndef NANO_SMALL
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment