Branch: Tag:

2015-08-22

2015-08-22 18:35:10 by Per Hedbor <ph@opera.com>

Static:ified a lot of strings.

This is more or less all instances of push_text(static data here).

Left to do: make_shared_X_string(static data here). :)

2957:    {    struct pike_string *res;    struct Buffer_struct *str = THIS; -  push_text( "Buffer(%d /* %d */)" ); +  push_static_text( "Buffer(%d /* %d */)" );    if( str->str.s )    {    push_int(str->str.s->len);
5871:   static void get_val_module(void)   {    assert (!val_module); -  push_text ("Val"); +  push_static_text ("Val");    APPLY_MASTER ("resolv", 1);    if (TYPEOF(Pike_sp[-1]) != T_OBJECT)    Pike_error ("\"Val\" didn't resolve to a module object.\n");