[前][次][番号順一覧][スレッド一覧][生データ]

ruby-cvs:16415

From: (akr) <akr ruby-lang.org>
Date: Sun, 5 Feb 2006 23:40:02 +0900
Subject: [ruby-cvs:16415] ruby: * ruby.h (struct RStruct): embed 3 or less elements structs.

akr         Sun, 5 Feb 2006 23:40:02 +0900

  Modified files:
    ruby:
      ChangeLog ruby.h struct.c gc.c marshal.c
  Log:
    * ruby.h (struct RStruct): embed 3 or less elements structs.
      (RSTRUCT_LEN): defined for accessing struct members.
      (RSTRUCT_PTR): ditto.
    
    * struct.c: use RSTRUCT_LEN and RSTRUCT_PTR.
      (struct_alloc): allocate small structs in embedded format.
      (rb_struct_init_copy): ditto.
    
    * gc.c (gc_mark_children): use RSTRUCT_LEN and RSTRUCT_PTR.
      (obj_free): ditto.
    
    * marshal.c (w_object): use RSTRUCT_LEN and RSTRUCT_PTR.
  
  Revision    Changes    Path
  1.4937      +15  -0    ruby/ChangeLog
    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ChangeLog?cvsroot=src&r1=1.4936&r2=1.4937
  1.132       +18  -2    ruby/ruby.h
    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/ruby.h?cvsroot=src&r1=1.131&r2=1.132
  1.74        +69  -56   ruby/struct.c
    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/struct.c?cvsroot=src&r1=1.73&r2=1.74
  1.231       +5   -4    ruby/gc.c
    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/gc.c?cvsroot=src&r1=1.230&r2=1.231
  1.125       +2   -2    ruby/marshal.c
    http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/ruby/marshal.c?cvsroot=src&r1=1.124&r2=1.125


[前][次][番号順一覧][スレッド一覧][生データ]