mirror of git://git.sv.gnu.org/nano.git
yet more miscellaneous comment fixes
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4032 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
9e7b2d572c
commit
e44cd2dfba
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
10
src/text.c
10
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;
|
||||
|
|
Loading…
Reference in New Issue