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

ruby-changes:31511

From: nobu <ko1@a...>
Date: Sat, 9 Nov 2013 07:42:29 +0900 (JST)
Subject: [ruby-changes:31511] nobu:r43590 (trunk): From 33f55b1eac7f044feb59a29da4a5a82bee3f419e Mon Sep 17 00:00:00 2001

nobu	2013-11-09 07:42:25 +0900 (Sat, 09 Nov 2013)

  New Revision: 43590

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

  Log:
    From 33f55b1eac7f044feb59a29da4a5a82bee3f419e Mon Sep 17 00:00:00 2001
    From: Nobuyoshi Nakada <nobu@r...>
    Date: Fri, 8 Nov 2013 17:40:10 -0500
    Subject: [PATCH 2/2] internal.h: prototype declarations
    
    * internal.h (rb_vm_backtrace_object, rb_gc_count): make prototype
      declarations, not old-K&R style.
    ---
     internal.h | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/internal.h b/internal.h
    index 20a813c..4cea0a8 100644
    --- a/internal.h
    +++ b/internal.h
    @@ -747,7 +747,7 @@ void rb_backtrace_print_as_bugreport(void);
     int rb_backtrace_p(VALUE obj);
     VALUE rb_backtrace_to_str_ary(VALUE obj);
     void rb_backtrace_print_to(VALUE output);
    -VALUE rb_vm_backtrace_object();
    +VALUE rb_vm_backtrace_object(void);
     
     RUBY_SYMBOL_EXPORT_BEGIN
     const char *rb_objspace_data_type_name(VALUE obj);
    @@ -818,7 +818,7 @@ int rb_st_insert_id_and_value(VALUE obj, st_table *tbl, ID key, VALUE value);
     st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl);
     
     /* gc.c */
    -size_t rb_gc_count();
    +size_t rb_gc_count(void);
     size_t rb_obj_memsize_of(VALUE);
     
     RUBY_SYMBOL_EXPORT_END
    -- 
    1.8.4.2

  Modified files:
    trunk/internal.h
Index: internal.h
===================================================================
--- internal.h	(revision 43589)
+++ internal.h	(revision 43590)
@@ -747,7 +747,7 @@ void rb_backtrace_print_as_bugreport(voi https://github.com/ruby/ruby/blob/trunk/internal.h#L747
 int rb_backtrace_p(VALUE obj);
 VALUE rb_backtrace_to_str_ary(VALUE obj);
 void rb_backtrace_print_to(VALUE output);
-VALUE rb_vm_backtrace_object();
+VALUE rb_vm_backtrace_object(void);
 
 RUBY_SYMBOL_EXPORT_BEGIN
 const char *rb_objspace_data_type_name(VALUE obj);
@@ -818,7 +818,7 @@ int rb_st_insert_id_and_value(VALUE obj, https://github.com/ruby/ruby/blob/trunk/internal.h#L818
 st_table *rb_st_copy(VALUE obj, struct st_table *orig_tbl);
 
 /* gc.c */
-size_t rb_gc_count();
+size_t rb_gc_count(void);
 size_t rb_obj_memsize_of(VALUE);
 
 RUBY_SYMBOL_EXPORT_END

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

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