[前][次][番号順一覧][スレッド一覧]

ruby-changes:49801

From: nobu <ko1@a...>
Date: Thu, 18 Jan 2018 20:34:42 +0900 (JST)
Subject: [ruby-changes:49801] nobu:r61932 (trunk): marked as NORETURN

nobu	2018-01-18 20:34:36 +0900 (Thu, 18 Jan 2018)

  New Revision: 61932

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

  Log:
    marked as NORETURN

  Modified files:
    trunk/ext/dbm/dbm.c
    trunk/ext/gdbm/gdbm.c
    trunk/ext/sdbm/init.c
Index: ext/dbm/dbm.c
===================================================================
--- ext/dbm/dbm.c	(revision 61931)
+++ ext/dbm/dbm.c	(revision 61932)
@@ -39,6 +39,8 @@ struct dbmdata { https://github.com/ruby/ruby/blob/trunk/ext/dbm/dbm.c#L39
     DBM *di_dbm;
 };
 
+NORETURN(static void closed_dbm(void));
+
 static void
 closed_dbm(void)
 {
Index: ext/gdbm/gdbm.c
===================================================================
--- ext/gdbm/gdbm.c	(revision 61931)
+++ ext/gdbm/gdbm.c	(revision 61932)
@@ -83,6 +83,10 @@ static VALUE rb_cGDBM, rb_eGDBMError, rb https://github.com/ruby/ruby/blob/trunk/ext/gdbm/gdbm.c#L83
 
 #define MY_BLOCK_SIZE (2048)
 #define MY_FATAL_FUNC rb_gdbm_fatal
+
+NORETURN(static void rb_gdbm_fatal(const char *msg));
+NORETURN(static void closed_dbm(void));
+
 static void
 rb_gdbm_fatal(const char *msg)
 {
Index: ext/sdbm/init.c
===================================================================
--- ext/sdbm/init.c	(revision 61931)
+++ ext/sdbm/init.c	(revision 61932)
@@ -71,6 +71,8 @@ struct dbmdata { https://github.com/ruby/ruby/blob/trunk/ext/sdbm/init.c#L71
     DBM *di_dbm;
 };
 
+NORETURN(static void closed_sdbm(void));
+
 static void
 closed_sdbm(void)
 {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]