@@ -2672,6 +2672,7 @@ nfa_set_code(int c)
2672
2672
2673
2673
#ifdef ENABLE_LOG
2674
2674
static FILE * log_fd ;
2675
+ static char_u e_log_open_failed [] = N_ ("Could not open temporary log file for writing, displaying on stderr... " );
2675
2676
2676
2677
/*
2677
2678
* Print the postfix notation of the current regexp.
@@ -2687,7 +2688,7 @@ nfa_postfix_dump(char_u *expr, int retval)
2687
2688
{
2688
2689
fprintf (f , "\n-------------------------\n" );
2689
2690
if (retval == FAIL )
2690
- fprintf (f , ">>> NFA engine failed ... \n" );
2691
+ fprintf (f , ">>> NFA engine failed... \n" );
2691
2692
else if (retval == OK )
2692
2693
fprintf (f , ">>> NFA engine succeeded !\n" );
2693
2694
fprintf (f , "Regexp: \"%s\"\nPostfix notation (char): \"" , expr );
@@ -5270,7 +5271,7 @@ recursive_regmatch(
5270
5271
}
5271
5272
else
5272
5273
{
5273
- EMSG (_ ("Could not open temporary log file for writing, displaying on stderr... " ));
5274
+ EMSG (_ (e_log_open_failed ));
5274
5275
log_fd = stderr ;
5275
5276
}
5276
5277
#endif
@@ -5620,7 +5621,7 @@ nfa_regmatch(
5620
5621
}
5621
5622
else
5622
5623
{
5623
- EMSG (_ ("Could not open temporary log file for writing, displaying on stderr ... " ));
5624
+ EMSG (_ (e_log_open_failed ));
5624
5625
log_fd = stderr ;
5625
5626
}
5626
5627
#endif
@@ -5704,7 +5705,7 @@ nfa_regmatch(
5704
5705
#ifdef ENABLE_LOG
5705
5706
fprintf (log_fd , "------------------------------------------\n" );
5706
5707
fprintf (log_fd , ">>> Reginput is \"%s\"\n" , reginput );
5707
- fprintf (log_fd , ">>> Advanced one character ... Current char is %c (code %d) \n" , curc , (int )curc );
5708
+ fprintf (log_fd , ">>> Advanced one character... Current char is %c (code %d) \n" , curc , (int )curc );
5708
5709
fprintf (log_fd , ">>> Thislist has %d states available: " , thislist -> n );
5709
5710
{
5710
5711
int i ;
@@ -5757,7 +5758,7 @@ nfa_regmatch(
5757
5758
else
5758
5759
col = (int )(t -> subs .norm .list .line [0 ].start - regline );
5759
5760
nfa_set_code (t -> state -> c );
5760
- fprintf (log_fd , "(%d) char %d %s (start col %d)%s ... \n" ,
5761
+ fprintf (log_fd , "(%d) char %d %s (start col %d)%s... \n" ,
5761
5762
abs (t -> state -> id ), (int )t -> state -> c , code , col ,
5762
5763
pim_info (& t -> pim ));
5763
5764
}
@@ -7282,7 +7283,7 @@ nfa_regcomp(char_u *expr, int re_flags)
7282
7283
7283
7284
if (f != NULL )
7284
7285
{
7285
- fprintf (f , "\n*****************************\n\n\n\n\tCompiling regexp \"%s\" ... hold on !\n" , expr );
7286
+ fprintf (f , "\n*****************************\n\n\n\n\tCompiling regexp \"%s\"... hold on !\n" , expr );
7286
7287
fclose (f );
7287
7288
}
7288
7289
}
0 commit comments