Show
Ignore:
Timestamp:
08/25/07 22:49:09 (15 months ago)
Author:
krobillard
Message:

UTF-8 strings can now be read.
ur_makeString() now takes UCell argument.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/thune/thread_safe/tokenize.c

    r452 r453  
    492492#endif 
    493493                    break; 
     494 
     495                default: 
     496                    syntaxError( "Unprintable/Non-ASCII Input" ); 
    494497                } 
    495498            } 
     
    10501053string_end: 
    10511054 
    1052     // Make string before appending cell (in case GC is called). 
     1055    // Mark cell as unset in case GC is called by ur_makeString. 
     1056    cell = ur_appendCell( BLOCK, UT_UNSET ); 
     1057 
    10531058    ++token; 
    1054     tn = ur_makeString( token, it - token ); 
    1055  
    1056     cell = ur_appendCell( BLOCK, UT_STRING ); 
    1057     ur_setSeries( cell, tn, 0 ); 
     1059    ur_makeString( cell, token, it - token ); 
    10581060 
    10591061    ++it;