[ruby-cvs:66333] ko1:r59155 (trunk): use "enum ruby_tag_type" and TAG_NONE.

ko1 at ruby-lang.org ko1 at ruby-lang.org
Fri Jun 23 16:25:52 JST 2017


ko1	2017-06-23 16:25:52 +0900 (Fri, 23 Jun 2017)

  New Revision: 59155

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59155

  Log:
    use "enum ruby_tag_type" and TAG_NONE.
    
    Return value of EXEC_TAG() is saved by "int state".
    Instead of "int", use "enum ruby_tag_type". First EXEC_TAG()
    value should be 0, so that define TAG_NONE (= 0) and use it.
    
    Some code used "status" instead of "state". To make them clear,
    rename them to state.
    
    We can change variable name from "state" to "tag_state", but this
    ticket doesn't contain it.

  Modified files:
    trunk/cont.c
    trunk/error.c
    trunk/eval.c
    trunk/eval_error.c
    trunk/eval_intern.h
    trunk/eval_jump.c
    trunk/gc.c
    trunk/load.c
    trunk/proc.c
    trunk/signal.c
    trunk/thread.c
    trunk/vm.c
    trunk/vm_backtrace.c
    trunk/vm_core.h
    trunk/vm_eval.c
    trunk/vm_trace.c


More information about the ruby-cvs mailing list