comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3199 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
родитель
87397ba37b
Коммит
8dec783333
@ -212,7 +212,7 @@ ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream)
|
|||||||
*n += MAX_BUF_SIZE;
|
*n += MAX_BUF_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Push the result in the line. */
|
/* Put the result in the line. */
|
||||||
(*lineptr)[indx++] = (char)c;
|
(*lineptr)[indx++] = (char)c;
|
||||||
|
|
||||||
/* Bail out. */
|
/* Bail out. */
|
||||||
@ -230,8 +230,8 @@ ssize_t ngetdelim(char **lineptr, size_t *n, int delim, FILE *stream)
|
|||||||
null_at(lineptr, indx++);
|
null_at(lineptr, indx++);
|
||||||
*n = indx;
|
*n = indx;
|
||||||
|
|
||||||
/* The last line may not have the delimiter, we have to return what
|
/* The last line may not have the delimiter. We have to return what
|
||||||
* we got and the error will be seen on the next iteration. */
|
* we got, and the error will be seen on the next iteration. */
|
||||||
return (c == EOF && (indx - 1) == 0) ? -1 : indx - 1;
|
return (c == EOF && (indx - 1) == 0) ? -1 : indx - 1;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user