From: David Lawrence Ramsey Date: Thu, 17 Nov 2005 18:58:56 +0000 (+0000) Subject: more comment fixes X-Git-Tag: v1.3.10~46 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d15c92d41ad4db8d03eb7b15cbe8ca9a4bd142ea;p=nano.git more comment fixes git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3200 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- diff --git a/src/chars.c b/src/chars.c index 09b2b9b1..2000b78f 100644 --- a/src/chars.c +++ b/src/chars.c @@ -553,7 +553,7 @@ int mbstrncasecmp(const char *s1, const char *s2, size_t n) } #ifndef HAVE_STRCASESTR -/* This function (nstrcasestr(), originally mutt_stristr()) was adapted +/* This function, nstrcasestr() (originally mutt_stristr()), was adapted * from mutt 1.2.4i (lib.c). Here is the notice from that file: * * Copyright (C) 1996-2000 Michael R. Elkins diff --git a/src/files.c b/src/files.c index b5ecd3fc..08596445 100644 --- a/src/files.c +++ b/src/files.c @@ -1945,9 +1945,10 @@ int is_dir(const char *buf) return ret; } -/* These functions (username_tab_completion(), cwd_tab_completion(), and - * input_tab()) were adapted from busybox 0.46 (cmdedit.c). Here is the - * notice from that file: +/* These functions, username_tab_completion(), cwd_tab_completion() + * (originally exe_n_cwd_tab_completion()), and input_tab(), were + * adapted from busybox 0.46 (cmdedit.c). Here is the notice from that + * file: * * Termios command line History and Editting, originally * intended for NetBSD sh (ash) @@ -1999,8 +2000,8 @@ char **username_tab_completion(const char *buf, size_t *num_matches, return matches; } -/* This was originally called exe_n_cwd_tab_completion(), but we're not - * worried about executables, only filenames :> */ +/* We consider the first buflen characters of buf for filename tab + * completion. */ char **cwd_tab_completion(const char *buf, size_t *num_matches, size_t buflen) { diff --git a/src/utils.c b/src/utils.c index 6c96f793..36e447e2 100644 --- a/src/utils.c +++ b/src/utils.c @@ -157,10 +157,10 @@ void sunder(char *str) } } -/* These functions (ngetline() and ngetdelim(), originally getline() and - * getdelim()) were adapted from GNU mailutils 0.5 (mailbox/getline.c). - * Here is the notice from that file, after converting to the GPL via - * LGPL clause 3: +/* These functions, ngetline() (originally getline()) and ngetdelim() + * (originally getdelim()), were adapted from GNU mailutils 0.5 + * (mailbox/getline.c). Here is the notice from that file, after + * converting to the GPL via LGPL clause 3: * * GNU Mailutils -- a suite of utilities for electronic mail * Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.