diff --git a/src/rcfile.c b/src/rcfile.c index 4ab8241f..42fc84a1 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -315,10 +315,6 @@ void parse_syntax(char *ptr) opensyntax = TRUE; -#ifdef DEBUG - fprintf(stderr, "Starting a new syntax type: \"%s\"\n", nameptr); -#endif - /* The default syntax should have no associated extensions. */ if (strcmp(live_syntax->name, "default") == 0 && *ptr != '\0') { rcfile_error(N_("The \"default\" syntax does not accept extensions")); @@ -351,10 +347,6 @@ void parse_binding(char *ptr, bool dobind) sc *s, *newsc = NULL; int menu; -#ifdef DEBUG - fprintf(stderr, "Starting the rebinding code...\n"); -#endif - if (*ptr == '\0') { rcfile_error(N_("Missing key name")); return; @@ -544,10 +536,6 @@ static void parse_one_include(char *file) nanorc = file; lineno = 0; -#ifdef DEBUG - fprintf(stderr, "Parsing file \"%s\"\n", file); -#endif - parse_rcfile(rcstream, TRUE); } @@ -1050,10 +1038,6 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) continue; } -#ifdef DEBUG - fprintf(stderr, " Option name = \"%s\"\n", rcopts[i].name); - fprintf(stderr, " Flag = %ld\n", rcopts[i].flag); -#endif /* First handle unsetting. */ if (set == -1) { if (rcopts[i].flag != 0) @@ -1082,9 +1066,7 @@ void parse_rcfile(FILE *rcstream, bool syntax_only) ptr = parse_argument(ptr); option = mallocstrcpy(NULL, option); -#ifdef DEBUG - fprintf(stderr, " Option argument = \"%s\"\n", option); -#endif + #ifdef ENABLE_UTF8 /* When in a UTF-8 locale, ignore arguments with invalid sequences. */ if (using_utf8() && mbstowcs(NULL, option, 0) == (size_t)-1) { @@ -1210,9 +1192,6 @@ void parse_one_nanorc(void) if (!is_good_file(nanorc)) return; -#ifdef DEBUG - fprintf(stderr, "Going to parse file \"%s\"\n", nanorc); -#endif rcstream = fopen(nanorc, "rb"); /* If opening the file succeeded, parse it. Otherwise, only