--- parser3/src/main/compile_tools.C 2001/03/09 08:19:50 1.22 +++ parser3/src/main/compile_tools.C 2001/03/10 15:17:46 1.24 @@ -1,5 +1,5 @@ /* - $Id: compile_tools.C,v 1.22 2001/03/09 08:19:50 paf Exp $ + $Id: compile_tools.C,v 1.24 2001/03/10 15:17:46 paf Exp $ */ #include "compile_tools.h" @@ -38,7 +38,7 @@ Array *VL(Value *value) { return result; } -String *SLA2S(Array *literal_string_array, int offset) { +const String *SLA2S(Array *literal_string_array, int offset) { Operation op; op.cast=literal_string_array->get(offset+0); if(op.code!=OP_VALUE) @@ -52,7 +52,10 @@ void change_string_literal_to_double_lit Value *value=vstring->get_expr_result(); literal_string_array->put(1, value); } - +void change_string_literal_to_write_string_literal(Array *literal_string_array) { + Operation op; op.code=OP_STRING__WRITE; + literal_string_array->put(0, op.cast); +} void push_LS(struct parse_control *pc, lexical_state new_state) { if(pc->sp