summaryrefslogtreecommitdiffstats
path: root/usr.bin/lex/sym.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/lex/sym.c')
-rw-r--r--usr.bin/lex/sym.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/lex/sym.c b/usr.bin/lex/sym.c
index 3a55b68..7e29aca 100644
--- a/usr.bin/lex/sym.c
+++ b/usr.bin/lex/sym.c
@@ -6,7 +6,7 @@
*
* This code is derived from software contributed to Berkeley by
* Vern Paxson.
- *
+ *
* The United States Government has rights in this work pursuant
* to contract no. DE-AC03-76SF00098 between the United States
* Department of Energy and the University of California.
@@ -26,7 +26,7 @@
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-/* $Header: /home/ncvs/src/usr.bin/lex/sym.c,v 1.1.1.1 1994/08/24 13:10:31 csgr Exp $ */
+/* $Header: /home/ncvs/src/usr.bin/lex/sym.c,v 1.1.1.2 1996/06/19 20:26:39 nate Exp $ */
#include "flexdef.h"
@@ -75,9 +75,9 @@ int table_size;
flex_alloc( sizeof( struct hash_entry ) );
if ( new_entry == NULL )
- flexfatal( "symbol table memory allocation failed" );
+ flexfatal( _( "symbol table memory allocation failed" ) );
- if ( (successor = table[hash_val]) )
+ if ( (successor = table[hash_val]) != 0 )
{
new_entry->next = successor;
successor->prev = new_entry;
@@ -185,7 +185,7 @@ Char definition[];
if ( addsym( copy_string( name ),
(char *) copy_unsigned_string( definition ), 0,
ndtbl, NAME_TABLE_HASH_SIZE ) )
- synerr( "name defined twice" );
+ synerr( _( "name defined twice" ) );
}
@@ -214,7 +214,6 @@ void scextend()
scxclu = reallocate_integer_array( scxclu, current_max_scs );
sceof = reallocate_integer_array( sceof, current_max_scs );
scname = reallocate_char_ptr_array( scname, current_max_scs );
- actvsc = reallocate_integer_array( actvsc, current_max_scs );
}
@@ -231,7 +230,7 @@ int xcluflg;
char *copy_string();
/* Generate start condition definition, for use in BEGIN et al. */
- printf( "#define %s %d\n", str, lastsc );
+ action_define( str, lastsc );
if ( ++lastsc >= current_max_scs )
scextend();
@@ -240,7 +239,8 @@ int xcluflg;
if ( addsym( scname[lastsc], (char *) 0, lastsc,
sctbl, START_COND_HASH_SIZE ) )
- format_pinpoint_message( "start condition %s declared twice",
+ format_pinpoint_message(
+ _( "start condition %s declared twice" ),
str );
scset[lastsc] = mkstate( SYM_EPSILON );
OpenPOWER on IntegriCloud