Branch: Tag:

2015-08-22

2015-08-22 18:34:29 by Arne Goedeke <el@laramies.com>

Strings: added and used push_static_text

Use the new static string allocation support where possible. This is the
case all code which is not dynamically loaded.

759:    SIMPLE_ARG_TYPE_ERROR ("_sprintf", 2, "mapping");       push_svalue(&sp[1-args]); -  push_text("precision"); +  push_static_text("precision");    f_index(2);    if(TYPEOF(sp[-1]) != T_INT)    SIMPLE_ARG_ERROR ("_sprintf", 2,
767:    precision = (--sp)->u.integer;       push_svalue(&sp[1-args]); -  push_text("width"); +  push_static_text("width");    f_index(2);    if(TYPEOF(sp[-1]) != T_INT)    SIMPLE_ARG_ERROR ("_sprintf", 2,
776:    width = (--sp)->u.integer;       push_svalue(&sp[1-args]); -  push_text("flag_left"); +  push_static_text("flag_left");    f_index(2);    if(TYPEOF(sp[-1]) != T_INT)    SIMPLE_ARG_ERROR ("_sprintf", 2,
791:    case 't':    pop_n_elems(args);    if(THIS_PROGRAM == bignum_program) -  push_text("int"); +  push_static_text("int");    else -  push_text("object"); +  push_static_text("object");    return;       case 'O':