more comment fixes

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4003 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-12-15 04:53:47 +00:00
parent 4078d60d69
commit 2aca11e800
1 changed files with 8 additions and 7 deletions

View File

@ -2410,8 +2410,9 @@ const char *tail(const char *foo)
} }
#if !defined(NANO_TINY) && defined(ENABLE_NANORC) #if !defined(NANO_TINY) && defined(ENABLE_NANORC)
/* Return $HOME/.nano_history, or NULL if we can't find the homedir. /* Return $HOME/.nano_history, or NULL if we can't find the home
* The string is dynamically allocated, and should be freed. */ * directory. The string is dynamically allocated, and should be
* freed. */
char *histfilename(void) char *histfilename(void)
{ {
char *nanohist = NULL; char *nanohist = NULL;
@ -2448,9 +2449,9 @@ void load_history(void)
; ;
} }
} else { } else {
/* Load a history (first the search history, then the /* Load a history list (first the search history, then the
* replace history) from oldest to newest. Assume the last * replace history) from the oldest entry to the newest.
* history entry is a blank line. */ * Assume the last history entry is a blank line. */
filestruct **history = &search_history; filestruct **history = &search_history;
char *line = NULL; char *line = NULL;
size_t buflen = 0; size_t buflen = 0;
@ -2482,8 +2483,8 @@ bool writehist(FILE *hist, filestruct *h)
{ {
filestruct *p; filestruct *p;
/* Write history from oldest to newest. Assume the last history /* Write a history list from the oldest entry to the newest. Assume
* entry is a blank line. */ * the last history entry is a blank line. */
for (p = h; p != NULL; p = p->next) { for (p = h; p != NULL; p = p->next) {
size_t p_len = strlen(p->data); size_t p_len = strlen(p->data);