summaryrefslogtreecommitdiff
path: root/nfa.c
diff options
context:
space:
mode:
authorVern Paxson <vern@ee.lbl.gov>1995-03-04 16:09:54 +0000
committerVern Paxson <vern@ee.lbl.gov>1995-03-04 16:09:54 +0000
commitb3ae3af8017221ca3b8ae47de396a2b471a7f7e9 (patch)
treed9cd3a95cc8b7116d4d70b8bb55327283e4811ff /nfa.c
parentceaff6639ba32b60eaff4434e63e811052128a1b (diff)
internationalization aids
Diffstat (limited to 'nfa.c')
-rw-r--r--nfa.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/nfa.c b/nfa.c
index 9d95e1f..801408e 100644
--- a/nfa.c
+++ b/nfa.c
@@ -97,7 +97,7 @@ int state1;
int sym, tsp1, tsp2, anum, ns;
fprintf( stderr,
- "\n\n********** beginning dump of nfa with start state %d\n",
+ _( "\n\n********** beginning dump of nfa with start state %d\n" ),
state1 );
/* We probably should loop starting at firstst[state1] and going to
@@ -109,7 +109,7 @@ int state1;
/* for ( ns = firstst[state1]; ns <= lastst[state1]; ++ns ) */
for ( ns = 1; ns <= lastnfa; ++ns )
{
- fprintf( stderr, "state # %4d\t", ns );
+ fprintf( stderr, _( "state # %4d\t" ), ns );
sym = transchar[ns];
tsp1 = trans1[ns];
@@ -124,7 +124,7 @@ int state1;
fprintf( stderr, "\n" );
}
- fprintf( stderr, "********** end of dump\n" );
+ fprintf( stderr, _( "********** end of dump\n" ) );
}
@@ -170,7 +170,7 @@ int mach;
}
if ( state == 0 )
- flexfatal( "empty machine in dupmachine()" );
+ flexfatal( _( "empty machine in dupmachine()" ) );
state_offset = state - i + 1;
@@ -222,7 +222,7 @@ int mach, variable_trail_rule, headcnt, trailcnt;
if ( performance_report > 0 )
fprintf( stderr,
- "Variable trailing context rule at line %d\n",
+ _( "Variable trailing context rule at line %d\n" ),
rule_linenum[num_rules] );
variable_trailing_context_rules = true;
@@ -344,7 +344,7 @@ register int mach;
default:
flexerror(
- "bad state type in mark_beginning_as_normal()" );
+ _( "bad state type in mark_beginning_as_normal()" ) );
break;
}
}
@@ -597,7 +597,7 @@ int sym;
{
if ( (current_mns += MNS_INCREMENT) >= MAXIMUM_MNS )
lerrif(
- "input rules are too complicated (>= %d NFA states)",
+ _( "input rules are too complicated (>= %d NFA states)" ),
current_mns );
++num_reallocs;
@@ -676,7 +676,7 @@ int statefrom, stateto;
else if ( (transchar[statefrom] != SYM_EPSILON) ||
(trans2[statefrom] != NO_TRANSITION) )
- flexfatal( "found too many transitions in mkxtion()" );
+ flexfatal( _( "found too many transitions in mkxtion()" ) );
else
{ /* second out-transition for an epsilon state */
@@ -702,7 +702,7 @@ void new_rule()
}
if ( num_rules > MAX_RULE )
- lerrif( "too many rules (> %d)!", MAX_RULE );
+ lerrif( _( "too many rules (> %d)!" ), MAX_RULE );
rule_linenum[num_rules] = linenum;
rule_useful[num_rules] = false;