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

ruby-changes:50073

From: k0kubun <ko1@a...>
Date: Sun, 4 Feb 2018 16:43:25 +0900 (JST)
Subject: [ruby-changes:50073] k0kubun:r62191 (trunk): mjit.c: try porting va_copy

k0kubun	2018-02-04 16:43:20 +0900 (Sun, 04 Feb 2018)

  New Revision: 62191

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

  Log:
    mjit.c: try porting va_copy
    
    for non C99 conforming environments.
    
    The behavior of this macro is undefined, but I heard this works on many
    architectures. Let me check the Ruby CI result with this change.
    (My Windows environment has only Visual Studio 2015 and va_copy is
    provided in it...)

  Modified files:
    trunk/mjit.c
Index: mjit.c
===================================================================
--- mjit.c	(revision 62190)
+++ mjit.c	(revision 62191)
@@ -113,6 +113,10 @@ extern int rb_thread_create_mjit_thread( https://github.com/ruby/ruby/blob/trunk/mjit.c#L113
 typedef intptr_t pid_t;
 #endif
 
+#ifndef va_copy
+#define va_copy(dest, src) ((dest) = (src))
+#endif
+
 /* A copy of MJIT portion of MRI options since MJIT initialization.  We
    need them as MJIT threads still can work when the most MRI data were
    freed. */

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

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