ruby-changes:60129
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Thu, 20 Feb 2020 11:49:29 +0900 (JST)
Subject: [ruby-changes:60129] 7586355423 (master): comma at the end of enum is a C++11ism
https://git.ruby-lang.org/ruby.git/commit/?id=7586355423 From 75863554233a40f74d40138b7a88f07c010281a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= <shyouhei@r...> Date: Thu, 13 Feb 2020 15:10:16 +0900 Subject: comma at the end of enum is a C++11ism Comma at the end of enum is allowed in C since C99. We can use them internally. However when it comes to extension libraries, they could be written in different C++ versions. We cannot assume sometihng. Public headers shall keep compatibilities. diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 8ff0e97..a97f87f 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -871,7 +871,7 @@ VALUE rb_obj_reveal(VALUE obj, VALUE klass); /* do not use this API to change kl https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L871 #define RVALUE_EMBED_LEN_MAX RVALUE_EMBED_LEN_MAX enum ruby_rvalue_flags { - RVALUE_EMBED_LEN_MAX = 3, + RVALUE_EMBED_LEN_MAX = 3 }; #define ROBJECT_EMBED_LEN_MAX ROBJECT_EMBED_LEN_MAX -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/