add missing #ifdefs
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1905 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
35fb55aba2
commit
a88347069c
|
@ -467,12 +467,14 @@ const char *revstristr(const char *haystack, const char *needle, const
|
||||||
#ifndef HAVE_STRNLEN
|
#ifndef HAVE_STRNLEN
|
||||||
size_t nstrnlen(const char *s, size_t maxlen);
|
size_t nstrnlen(const char *s, size_t maxlen);
|
||||||
#endif
|
#endif
|
||||||
|
#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
|
||||||
#ifndef HAVE_GETLINE
|
#ifndef HAVE_GETLINE
|
||||||
ssize_t ngetline(char **lineptr, size_t *n, FILE *stream);
|
ssize_t ngetline(char **lineptr, size_t *n, FILE *stream);
|
||||||
#endif
|
#endif
|
||||||
#ifndef HAVE_GETDELIM
|
#ifndef HAVE_GETDELIM
|
||||||
ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream);
|
ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream);
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* !NANO_SMALL && ENABLE_NANORC */
|
||||||
const char *strstrwrapper(const char *haystack, const char *needle,
|
const char *strstrwrapper(const char *haystack, const char *needle,
|
||||||
const char *start);
|
const char *start);
|
||||||
void nperror(const char *s);
|
void nperror(const char *s);
|
||||||
|
|
|
@ -240,6 +240,7 @@ size_t nstrnlen(const char *s, size_t maxlen)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NANO_SMALL) && defined(ENABLE_NANORC)
|
||||||
#ifndef HAVE_GETLINE
|
#ifndef HAVE_GETLINE
|
||||||
/* This function is equivalent to getline(). It was adapted from
|
/* This function is equivalent to getline(). It was adapted from
|
||||||
* GNU mailutils' getline() function. */
|
* GNU mailutils' getline() function. */
|
||||||
|
@ -297,6 +298,7 @@ ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream)
|
||||||
return (c == EOF && (indx - 1) == 0) ? -1 : indx - 1;
|
return (c == EOF && (indx - 1) == 0) ? -1 : indx - 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* !NANO_SMALL && ENABLE_NANORC */
|
||||||
|
|
||||||
/* If we are searching backwards, we will find the last match that
|
/* If we are searching backwards, we will find the last match that
|
||||||
* starts no later than start. Otherwise we find the first match
|
* starts no later than start. Otherwise we find the first match
|
||||||
|
|
Loading…
Reference in New Issue