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

ruby-changes:51287

From: normal <ko1@a...>
Date: Wed, 23 May 2018 14:51:50 +0900 (JST)
Subject: [ruby-changes:51287] normal:r63493 (trunk): internal.h: export ruby_sized_* for systems w/o malloc_usable_size

normal	2018-05-23 14:51:43 +0900 (Wed, 23 May 2018)

  New Revision: 63493

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

  Log:
    internal.h: export ruby_sized_* for systems w/o malloc_usable_size
    
    [ruby-core:87232]

  Modified files:
    trunk/internal.h
Index: internal.h
===================================================================
--- internal.h	(revision 63492)
+++ internal.h	(revision 63493)
@@ -1316,9 +1316,11 @@ void rb_copy_wb_protected_attribute(VALU https://github.com/ruby/ruby/blob/trunk/internal.h#L1316
 #define ruby_sized_xfree(ptr, size) ruby_xfree(ptr)
 #define SIZED_REALLOC_N(var,type,n,old_n) REALLOC_N(var, type, n)
 #else
+RUBY_SYMBOL_EXPORT_BEGIN
 void *ruby_sized_xrealloc(void *ptr, size_t new_size, size_t old_size) RUBY_ATTR_ALLOC_SIZE((2));
 void *ruby_sized_xrealloc2(void *ptr, size_t new_count, size_t element_size, size_t old_count) RUBY_ATTR_ALLOC_SIZE((2, 3));
 void ruby_sized_xfree(void *x, size_t size);
+RUBY_SYMBOL_EXPORT_END
 #define SIZED_REALLOC_N(var,type,n,old_n) ((var)=(type*)ruby_sized_xrealloc((char*)(var), (n) * sizeof(type), (old_n) * sizeof(type)))
 #endif
 

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

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