Changeset 26 for trunk/orca/bytecode.c
- Timestamp:
- 02/07/06 00:52:42 (3 years ago)
- Files:
-
- 1 modified
-
trunk/orca/bytecode.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/orca/bytecode.c
r25 r26 55 55 case OT_REFINEMENT: 56 56 { 57 int len;57 int pos; 58 58 int atom; 59 OString* str;60 59 61 60 atom = (val->type == OT_REFINEMENT) ? val->index : val->word.atom; 62 63 str = orAtomString( atom ); 64 65 // LIMIT: Assuming word names are never more than 255 characters. 66 67 len = str->used + 2; 68 RESERVE( len ); 61 pos = bin->used; 62 63 orArrayReserve( bin, 1, bin->used + 2 ); 64 bin->used += 2; 65 66 orAtomStr( atom, bin ); 67 68 // LIMIT: Word names can never be more than 255 characters. 69 cp = bin->byteArray + pos; 69 70 *cp++ = val->type; 70 *cp++ = str->used; 71 72 memCpy( cp, str->charArray, str->used ); 71 *cp = bin->used - pos - 2; 73 72 } 74 73 break;
