mirror of git://git.sv.gnu.org/nano.git
- utils.c:strcasestr() - Renamed to stristr since strcasestr has not been confirmed to be detected properly on various Linux systems
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@1088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
12c33a2c6d
commit
f444ae2438
|
@ -5,6 +5,10 @@ CVS code -
|
|||
end key code (fixes BUG #69).
|
||||
bottombars(), onekey()
|
||||
- Make bottom list dynamic with screen size (Guus Sliepen & Chris).
|
||||
- utils.c:
|
||||
strcasestr()
|
||||
- Renamed to stristr since strcasestr has not been confirmed to
|
||||
be detected properly on various Linux systems.
|
||||
- THANKS:
|
||||
- Added missing entry for Eivind Kjørstad.
|
||||
- po/no.po:
|
||||
|
|
2
proto.h
2
proto.h
|
@ -65,7 +65,7 @@ extern toggle toggles[TOGGLE_LEN];
|
|||
|
||||
/* Programs we want available */
|
||||
|
||||
char *strcasestr(char *haystack, char *needle);
|
||||
char *stristr(char *haystack, char *needle);
|
||||
char *strstrwrapper(char *haystack, char *needle);
|
||||
int search_init(int replacing);
|
||||
int renumber(filestruct * fileptr);
|
||||
|
|
4
utils.c
4
utils.c
|
@ -50,7 +50,7 @@ void lowercase(char *src)
|
|||
|
||||
/* This is now mutt's version (called mutt_stristr) because it doesn't
|
||||
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;
|
||||
|
||||
|
@ -83,7 +83,7 @@ char *strstrwrapper(char *haystack, char *needle)
|
|||
if (ISSET(CASE_SENSITIVE))
|
||||
return strstr(haystack, needle);
|
||||
else
|
||||
return strcasestr(haystack, needle);
|
||||
return stristr(haystack, needle);
|
||||
}
|
||||
|
||||
/* Thanks BG, many ppl have been asking for this... */
|
||||
|
|
Loading…
Reference in New Issue