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

ruby-changes:36420

From: akr <ko1@a...>
Date: Thu, 20 Nov 2014 00:57:47 +0900 (JST)
Subject: [ruby-changes:36420] akr:r48501 (trunk): * internal.h (ruby_init_setproctitle): Declare here.

akr	2014-11-20 00:57:31 +0900 (Thu, 20 Nov 2014)

  New Revision: 48501

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

  Log:
    * internal.h (ruby_init_setproctitle): Declare here.

  Modified files:
    trunk/ChangeLog
    trunk/internal.h
    trunk/ruby.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48500)
+++ ChangeLog	(revision 48501)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Nov 20 00:54:57 2014  Tanaka Akira  <akr@f...>
+
+	* internal.h (ruby_init_setproctitle): Declare here.
+
 Thu Nov 20 00:26:37 2014  Nobuyoshi Nakada  <nobu@r...>
 
 	* parse.y (parser_here_document): append byte sequence directly to
Index: internal.h
===================================================================
--- internal.h	(revision 48500)
+++ internal.h	(revision 48501)
@@ -468,6 +468,11 @@ struct RHash { https://github.com/ruby/ruby/blob/trunk/internal.h#L468
 #define RHASH_SIZE(h) (RHASH(h)->ntbl ? (st_index_t)RHASH(h)->ntbl->num_entries : 0)
 #endif
 
+/* missing/setproctitle.c */
+#ifndef HAVE_SETPROCTITLE
+extern void ruby_init_setproctitle(int argc, char *argv[]);
+#endif
+
 /* class.c */
 void rb_class_subclass_add(VALUE super, VALUE klass);
 void rb_class_remove_from_super_subclasses(VALUE);
Index: ruby.c
===================================================================
--- ruby.c	(revision 48500)
+++ ruby.c	(revision 48501)
@@ -1930,10 +1930,7 @@ ruby_process_options(int argc, char **ar https://github.com/ruby/ruby/blob/trunk/ruby.c#L1930
     iseq = process_options(argc, argv, cmdline_options_init(&opt));
 
 #ifndef HAVE_SETPROCTITLE
-    {
-	extern void ruby_init_setproctitle(int argc, char *argv[]);
-	ruby_init_setproctitle(argc, argv);
-    }
+    ruby_init_setproctitle(argc, argv);
 #endif
 
     return (void*)(struct RData*)iseq;

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

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