manually and returning -1 if they fail
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3232
35c25a1d-7b9e-4130-9fde-
d3aeb78583b8
the text of the spell-checked file into its own function,
replace_buffer(). (DLR)
- utils.c:
+ ngetdelim()
+ - Do sanity checks in an assert instead of checking them
+ manually and returning -1 if they fail. (DLR)
is_whole_word()
- Only include when DISABLE_SPELLER isn't defined, as it's only
used then. (DLR)
int c;
/* Sanity checks. */
- if (lineptr == NULL || n == NULL || stream == NULL)
- return -1;
+ assert(lineptr != NULL && n != NULL && stream != NULL);
/* Allocate the line the first time. */
if (*lineptr == NULL) {