[bitc-dev] bug in character decode routines
Swaroop Sridhar
swaroop.sridhar at gmail.com
Thu May 18 22:11:22 EDT 2006
Jonathan S. Shapiro wrote:
> On Thu, 2006-05-18 at 17:04 -0400, Swaroop Sridhar wrote:
>
>>Jonathan S. Shapiro wrote:
>>
>>>Swaroop: can you double check whether my recollection of the current
>>>initialization process is right?
>>
>>This is right.
>
>
> Do you anticipate any difficulty if we were to switch to using arrays of
> 4-byte characters instead? I cannot recall whether there may have been a
> good reason to duplicate these strings at startup time.
No. But we will also have to set up the length.
Current bitc_string representation is:
runtime/bitc/runtime.h:
99 typedef struct {
100 bitc_word_t length;
101 char s[0]; // unicode UTF-8!
102 } bitc_string_t;
Swaroop.
More information about the bitc-dev
mailing list