mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-08 10:42:00 +03:00
per Daniel Richard G.'s patch, in parse_rcfile(), add missing
ENABLE_COLOR #ifdef around the second check for a syntax with no color commands, to fix compilation without color support git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3794 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
6ff22e7020
commit
3bb45ae00b
@ -109,6 +109,11 @@ CVS code -
|
|||||||
- nano.h:
|
- nano.h:
|
||||||
- Remove the manual disabling of color support if regex.h isn't
|
- Remove the manual disabling of color support if regex.h isn't
|
||||||
found, as configure.ac now handles that. (DLR)
|
found, as configure.ac now handles that. (DLR)
|
||||||
|
- rcfile.c:
|
||||||
|
parse_rcfile()
|
||||||
|
- Add missing ENABLE_COLOR #ifdef around the second check for a
|
||||||
|
syntax with no color commands, to fix compilation without
|
||||||
|
color support. (Daniel Richard G.)
|
||||||
- search.c:
|
- search.c:
|
||||||
replace_regexp()
|
replace_regexp()
|
||||||
- Remove unnecessary casting of c to int. (DLR)
|
- Remove unnecessary casting of c to int. (DLR)
|
||||||
|
@ -834,9 +834,11 @@ void parse_rcfile(FILE *rcstream
|
|||||||
rcfile_error(N_("Unknown flag \"%s\""), option);
|
rcfile_error(N_("Unknown flag \"%s\""), option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_COLOR
|
||||||
if (endsyntax != NULL && endcolor == NULL)
|
if (endsyntax != NULL && endcolor == NULL)
|
||||||
rcfile_error(N_("Syntax \"%s\" has no color commands"),
|
rcfile_error(N_("Syntax \"%s\" has no color commands"),
|
||||||
endsyntax->desc);
|
endsyntax->desc);
|
||||||
|
#endif
|
||||||
|
|
||||||
free(buf);
|
free(buf);
|
||||||
fclose(rcstream);
|
fclose(rcstream);
|
||||||
|
Loading…
Reference in New Issue
Block a user