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). :)

2507: Inside #if defined(HAVE_GRANTPT) || defined(USE_PT_CHMOD) || defined(USE_CHGPT)
  {    pop_n_elems(args);   #if defined(USE_PT_CHMOD) || defined(USE_CHGPT) -  push_text("Process.Process"); +  push_static_text("Process.Process");    APPLY_MASTER("resolv", 1);      #ifdef USE_PT_CHMOD    /* pt_chmod wants to get the fd number as the first argument. */    push_text(USE_PT_CHMOD); -  push_text("4"); +  push_static_text("4");    f_aggregate(2);       /* Send the pty as both fd 3 and fd 4. */ -  push_text("fds"); +  push_static_text("fds");    ref_push_object(Pike_fp->current_object);    ref_push_object(Pike_fp->current_object);    f_aggregate(2);
2528: Inside #if defined(HAVE_GRANTPT) || defined(USE_PT_CHMOD) || defined(USE_CHGPT) and #if defined(USE_PT_CHMOD) || defined(USE_CHGPT)
   f_aggregate(1);       /* chgpt wants to get the pty on fd 0. */ -  push_text("stdin"); +  push_static_text("stdin");    ref_push_object(Pike_fp->current_object);    f_aggregate_mapping(2);   #endif /* USE_PT_CHMOD */
5974:       case 't':    { -  push_text("Fd"); +  push_static_text("Fd");    return;    }    }
6041: Inside #if defined(HAVE_LINUX_IF_H) && defined(HAVE_SYS_IOCTL_H)
      push_text( ifr->ifr_name );    -  push_text( "ips" ); +  push_static_text( "ips" );    memcpy( &addr, &ifr->ifr_addr, sizeof(ifr->ifr_addr) );    push_text( inet_ntoa( addr.sin_addr ) );    f_aggregate(1);