Commit e44cd2df authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

yet more miscellaneous comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4032 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 12 additions and 12 deletions
+12 -12
...@@ -1261,8 +1261,8 @@ int copy_file(FILE *inn, FILE *out) ...@@ -1261,8 +1261,8 @@ int copy_file(FILE *inn, FILE *out)
* append is APPEND, it means we are appending instead of overwriting. * append is APPEND, it means we are appending instead of overwriting.
* If append is PREPEND, it means we are prepending instead of * If append is PREPEND, it means we are prepending instead of
* overwriting. If nonamechange is TRUE, we don't change the current * overwriting. If nonamechange is TRUE, we don't change the current
* filename. nonamechange is ignored if tmp is FALSE or we're * filename. nonamechange is ignored if tmp is FALSE, we're appending,
* appending/prepending. * or we're prepending.
* *
* Return TRUE on success or FALSE on error. */ * Return TRUE on success or FALSE on error. */
bool write_file(const char *name, FILE *f_open, bool tmp, append_type 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 ...@@ -1270,7 +1270,7 @@ bool write_file(const char *name, FILE *f_open, bool tmp, append_type
{ {
bool retval = FALSE; bool retval = FALSE;
/* Instead of returning in this function, you should always /* 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; size_t lineswritten = 0;
const filestruct *fileptr = openfile->fileage; const filestruct *fileptr = openfile->fileage;
int fd; int fd;
......
...@@ -168,8 +168,8 @@ void renumber(filestruct *fileptr) ...@@ -168,8 +168,8 @@ void renumber(filestruct *fileptr)
fileptr->lineno = ++line; fileptr->lineno = ++line;
} }
/* Partition a filestruct so it begins at (top, top_x) and ends at (bot, /* Partition a filestruct so that it begins at (top, top_x) and ends at
* bot_x). */ * (bot, bot_x). */
partition *partition_filestruct(filestruct *top, size_t top_x, partition *partition_filestruct(filestruct *top, size_t top_x,
filestruct *bot, size_t bot_x) filestruct *bot, size_t bot_x)
{ {
...@@ -221,8 +221,8 @@ partition *partition_filestruct(filestruct *top, size_t top_x, ...@@ -221,8 +221,8 @@ partition *partition_filestruct(filestruct *top, size_t top_x,
return p; return p;
} }
/* Unpartition a filestruct so it begins at (fileage, 0) and ends at /* Unpartition a filestruct so that it begins at (fileage, 0) and ends
* (filebot, strlen(filebot->data)) again. */ * at (filebot, strlen(filebot->data)) again. */
void unpartition_filestruct(partition **p) void unpartition_filestruct(partition **p)
{ {
char *tmp; char *tmp;
......
...@@ -191,11 +191,11 @@ void do_tab(void) ...@@ -191,11 +191,11 @@ void do_tab(void)
} }
#ifndef NANO_TINY #ifndef NANO_TINY
/* Indent or unindent the current line (or all lines covered by the mark /* Indent or unindent the current line (or, if the mark is on, all lines
* if the mark is on) len columns, depending on whether len is positive * covered by the mark) len columns, depending on whether len is
* or negative. If the TABS_TO_SPACES flag is set, indent/unindent by * positive or negative. If the TABS_TO_SPACES flag is set, indent or
* len spaces. Otherwise, indent or unindent by (len / tabsize) tabs * unindent by len spaces. Otherwise, indent or unindent by (len /
* and (len % tabsize) spaces. */ * tabsize) tabs and (len % tabsize) spaces. */
void do_indent(ssize_t cols) void do_indent(ssize_t cols)
{ {
bool indent_changed = FALSE; bool indent_changed = FALSE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment