From: David Lawrence Ramsey Date: Thu, 11 Jan 2007 22:54:55 +0000 (+0000) Subject: yet more miscellaneous comment fixes X-Git-Tag: v2.0.3~22 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e44cd2dfbacc181be8fd2880659037f2de540df2;p=nano.git yet more miscellaneous comment fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4032 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/files.c b/src/files.c index f697a791..c0d08b72 100644 --- a/src/files.c +++ b/src/files.c @@ -1261,8 +1261,8 @@ int copy_file(FILE *inn, FILE *out) * append is APPEND, it means we are appending instead of overwriting. * If append is PREPEND, it means we are prepending instead of * overwriting. If nonamechange is TRUE, we don't change the current - * filename. nonamechange is ignored if tmp is FALSE or we're - * appending/prepending. + * filename. nonamechange is ignored if tmp is FALSE, we're appending, + * or we're prepending. * * Return TRUE on success or FALSE on error. */ bool write_file(const char *name, FILE *f_open, bool tmp, append_type @@ -1270,7 +1270,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, append_type { bool retval = FALSE; /* Instead of returning in this function, you should always - * merely set retval and then goto cleanup_and_exit. */ + * set retval and then goto cleanup_and_exit. */ size_t lineswritten = 0; const filestruct *fileptr = openfile->fileage; int fd; diff --git a/src/nano.c b/src/nano.c index 19516e75..142bf406 100644 --- a/src/nano.c +++ b/src/nano.c @@ -168,8 +168,8 @@ void renumber(filestruct *fileptr) fileptr->lineno = ++line; } -/* Partition a filestruct so it begins at (top, top_x) and ends at (bot, - * bot_x). */ +/* Partition a filestruct so that it begins at (top, top_x) and ends at + * (bot, bot_x). */ partition *partition_filestruct(filestruct *top, size_t top_x, filestruct *bot, size_t bot_x) { @@ -221,8 +221,8 @@ partition *partition_filestruct(filestruct *top, size_t top_x, return p; } -/* Unpartition a filestruct so it begins at (fileage, 0) and ends at - * (filebot, strlen(filebot->data)) again. */ +/* Unpartition a filestruct so that it begins at (fileage, 0) and ends + * at (filebot, strlen(filebot->data)) again. */ void unpartition_filestruct(partition **p) { char *tmp; diff --git a/src/text.c b/src/text.c index e9f548fa..a13ec43b 100644 --- a/src/text.c +++ b/src/text.c @@ -191,11 +191,11 @@ void do_tab(void) } #ifndef NANO_TINY -/* Indent or unindent the current line (or all lines covered by the mark - * if the mark is on) len columns, depending on whether len is positive - * or negative. If the TABS_TO_SPACES flag is set, indent/unindent by - * len spaces. Otherwise, indent or unindent by (len / tabsize) tabs - * and (len % tabsize) spaces. */ +/* Indent or unindent the current line (or, if the mark is on, all lines + * covered by the mark) len columns, depending on whether len is + * positive or negative. If the TABS_TO_SPACES flag is set, indent or + * unindent by len spaces. Otherwise, indent or unindent by (len / + * tabsize) tabs and (len % tabsize) spaces. */ void do_indent(ssize_t cols) { bool indent_changed = FALSE;