nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit f9dfca7d5a29917ef395d0596d6b6f5c82ce250d
parent fe40e8867da8445e378d44b71ff35d53248bfc55
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 31 May 2019 12:46:15 +0200

tweaks: rename a variable, to be shorter

Diffstat:
Msrc/rcfile.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/rcfile.c b/src/rcfile.c @@ -1049,21 +1049,21 @@ void parse_rcfile(FILE *rcstream, bool syntax_only, bool headers_only) /* When the syntax isn't loaded yet, store extendsyntax commands. */ if (sint->filename != NULL) { - augmentstruct *newextendsyntax = nmalloc(sizeof(augmentstruct));; + augmentstruct *newitem = nmalloc(sizeof(augmentstruct));; - newextendsyntax->filename = strdup(nanorc); - newextendsyntax->lineno = lineno; - newextendsyntax->data = strdup(ptr); - newextendsyntax->next = NULL; + newitem->filename = strdup(nanorc); + newitem->lineno = lineno; + newitem->data = strdup(ptr); + newitem->next = NULL; if (sint->augmentations != NULL) { augmentstruct *es = sint->augmentations; while (es->next != NULL) es = es->next; - es->next = newextendsyntax; + es->next = newitem; } else - sint->augmentations = newextendsyntax; + sint->augmentations = newitem; continue; }