ruby-changes:56881
From: Nobuyoshi <ko1@a...>
Date: Fri, 9 Aug 2019 01:32:35 +0900 (JST)
Subject: [ruby-changes:56881] Nobuyoshi Nakada: 830fd04181 (master): C99 allows trailing comma in enum
https://git.ruby-lang.org/ruby.git/commit/?id=830fd04181 From 830fd0418170843f234ed82e07d2fd61d86153e7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Fri, 9 Aug 2019 01:27:52 +0900 Subject: C99 allows trailing comma in enum diff --git a/compile.c b/compile.c index 0dbefd3..cb9d807 100644 --- a/compile.c +++ b/compile.c @@ -40,7 +40,7 @@ typedef struct iseq_link_element { https://github.com/ruby/ruby/blob/trunk/compile.c#L40 ISEQ_ELEMENT_LABEL, ISEQ_ELEMENT_INSN, ISEQ_ELEMENT_ADJUST, - ISEQ_ELEMENT_TRACE + ISEQ_ELEMENT_TRACE, } type; struct iseq_link_element *next; struct iseq_link_element *prev; @@ -3869,7 +3869,7 @@ compile_args(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node_roo https://github.com/ruby/ruby/blob/trunk/compile.c#L3869 enum compile_array_type_t { COMPILE_ARRAY_TYPE_ARRAY, - COMPILE_ARRAY_TYPE_HASH + COMPILE_ARRAY_TYPE_HASH, }; static inline int @@ -9852,7 +9852,7 @@ static const size_t ibf_object_header_align = https://github.com/ruby/ruby/blob/trunk/compile.c#L9852 enum ibf_object_class_index { IBF_OBJECT_CLASS_OBJECT, IBF_OBJECT_CLASS_ARRAY, - IBF_OBJECT_CLASS_STANDARD_ERROR + IBF_OBJECT_CLASS_STANDARD_ERROR, }; struct ibf_object_string { @@ -9890,7 +9890,7 @@ struct ibf_object_bignum { https://github.com/ruby/ruby/blob/trunk/compile.c#L9890 }; enum ibf_object_data_type { - IBF_OBJECT_DATA_ENCODING + IBF_OBJECT_DATA_ENCODING, }; struct ibf_object_complex_rational { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/