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

ruby-changes:20111

From: akr <ko1@a...>
Date: Sat, 18 Jun 2011 10:55:15 +0900 (JST)
Subject: [ruby-changes:20111] akr:r32158 (trunk): * internal.h: declare more internal functions.

akr	2011-06-18 10:54:57 +0900 (Sat, 18 Jun 2011)

  New Revision: 32158

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

  Log:
    * internal.h: declare more internal functions.
    
    * iseq.h (rb_method_get_iseq): declared.
    
    * compile.c, eval.c, eval_error.c, iseq.c, parse.y, proc.c, range.c,
      ruby.c, time.c, util.c, vm.c: don't declare internal functions.
    
    * eval.c, parse.y, thread_pthread.c: non-existing function declarations
      removed.

  Modified files:
    trunk/ChangeLog
    trunk/compile.c
    trunk/eval.c
    trunk/eval_error.c
    trunk/internal.h
    trunk/iseq.c
    trunk/iseq.h
    trunk/parse.y
    trunk/proc.c
    trunk/range.c
    trunk/ruby.c
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/time.c
    trunk/util.c
    trunk/vm.c

Index: time.c
===================================================================
--- time.c	(revision 32157)
+++ time.c	(revision 32158)
@@ -4285,9 +4285,6 @@
             const struct vtm *vtm, VALUE timev,
             int gmt);
 
-size_t
-rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt);
-
 #define SMALLBUF 100
 static size_t
 rb_strftime_alloc(char **buf, const char *format,
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32157)
+++ ChangeLog	(revision 32158)
@@ -1,3 +1,15 @@
+Sat Jun 18 10:22:39 2011  Tanaka Akira  <akr@f...>
+
+	* internal.h: declare more internal functions.
+
+	* iseq.h (rb_method_get_iseq): declared.
+
+	* compile.c, eval.c, eval_error.c, iseq.c, parse.y, proc.c, range.c,
+	  ruby.c, time.c, util.c, vm.c: don't declare internal functions.
+
+	* eval.c, parse.y, thread_pthread.c: non-existing function declarations
+	  removed.
+
 Sat Jun 18 08:12:54 2011  Tanaka Akira  <akr@f...>
 
 	* common.mk: dependencies updated.
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32157)
+++ thread_pthread.c	(revision 32158)
@@ -627,8 +627,6 @@
     return 0;
 }
 
-void rb_thread_create_control_thread(void);
-
 struct cached_thread_entry {
     volatile rb_thread_t **th_area;
     pthread_cond_t *cond;
Index: eval_error.c
===================================================================
--- eval_error.c	(revision 32157)
+++ eval_error.c	(revision 32158)
@@ -38,8 +38,6 @@
     }
 }
 
-VALUE rb_check_backtrace(VALUE);
-
 static VALUE
 get_backtrace(VALUE info)
 {
Index: iseq.c
===================================================================
--- iseq.c	(revision 32157)
+++ iseq.c	(revision 32158)
@@ -1024,7 +1024,6 @@
 {
     VALUE ret = Qnil;
     rb_iseq_t *iseq;
-    extern rb_iseq_t *rb_method_get_iseq(VALUE body);
 
     rb_secure(1);
 
Index: iseq.h
===================================================================
--- iseq.h	(revision 32157)
+++ iseq.h	(revision 32158)
@@ -27,6 +27,9 @@
 VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
 struct st_table *ruby_insn_make_insn_table(void);
 
+/* proc.c */
+rb_iseq_t *rb_method_get_iseq(VALUE body);
+
 struct rb_compile_option_struct {
     int inline_const_cache;
     int peephole_optimization;
Index: compile.c
===================================================================
--- compile.c	(revision 32157)
+++ compile.c	(revision 32158)
@@ -98,8 +98,6 @@
 #define compile_debug iseq->compile_data->option->debug_level
 #endif
 
-NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
-
 #if CPDEBUG
 
 #define compile_debug_print_indent(level) \
Index: range.c
===================================================================
--- range.c	(revision 32157)
+++ range.c	(revision 32158)
@@ -305,8 +305,6 @@
     return Qnil;
 }
 
-extern int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
-
 static int
 discrete_object_p(VALUE obj)
 {
Index: proc.c
===================================================================
--- proc.c	(revision 32157)
+++ proc.c	(revision 32158)
@@ -28,7 +28,6 @@
 
 static VALUE bmcall(VALUE, VALUE);
 static int method_arity(VALUE);
-rb_iseq_t *rb_method_get_iseq(VALUE method);
 
 /* Proc */
 
Index: thread.c
===================================================================
--- thread.c	(revision 32157)
+++ thread.c	(revision 32158)
@@ -406,7 +406,6 @@
     native_thread_destroy(th);
 }
 
-extern void ruby_error_print(void);
 static VALUE rb_threadptr_raise(rb_thread_t *, int, VALUE *);
 
 void
Index: eval.c
===================================================================
--- eval.c	(revision 32157)
+++ eval.c	(revision 32158)
@@ -21,11 +21,8 @@
 
 #define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
 
-VALUE proc_invoke(VALUE, VALUE, VALUE, VALUE);
-VALUE rb_binding_new(void);
 NORETURN(void rb_raise_jump(VALUE));
 
-ID rb_frame_callee(void);
 VALUE rb_eLocalJumpError;
 VALUE rb_eSysStackError;
 
Index: parse.y
===================================================================
--- parse.y	(revision 32157)
+++ parse.y	(revision 32158)
@@ -10107,9 +10107,6 @@
     },
 };
 
-VALUE rb_parser_get_yydebug(VALUE);
-VALUE rb_parser_set_yydebug(VALUE, VALUE);
-
 #ifndef RIPPER
 #undef rb_reserved_word
 
@@ -10584,8 +10581,6 @@
     return Qnil;
 }
 
-extern VALUE rb_thread_pass(void);
-
 struct ripper_args {
     struct parser_params *parser;
     int argc;
Index: util.c
===================================================================
--- util.c	(revision 32157)
+++ util.c	(revision 32158)
@@ -10,6 +10,7 @@
 **********************************************************************/
 
 #include "ruby/ruby.h"
+#include "internal.h"
 
 #include <ctype.h>
 #include <stdio.h>
@@ -261,9 +262,6 @@
 
 #define strEQ(s1,s2) (strcmp((s1),(s2)) == 0)
 
-extern const char *ruby_find_basename(const char *, long *, long *);
-extern const char *ruby_find_extname(const char *, long *);
-
 void
 ruby_add_suffix(VALUE str, const char *suffix)
 {
Index: internal.h
===================================================================
--- internal.h	(revision 32157)
+++ internal.h	(revision 32158)
@@ -25,6 +25,8 @@
     struct st_table *const_tbl;
 };
 
+struct vtm; /* defined by timev.h */
+
 /* bignum.c */
 VALUE rb_big_fdiv(VALUE x, VALUE y);
 VALUE rb_big_uminus(VALUE x);
@@ -40,6 +42,7 @@
 int rb_local_defined(ID);
 int rb_parse_in_eval(void);
 int rb_parse_in_main(void);
+VALUE rb_insns_name_array(void);
 
 /* debug.c */
 PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
@@ -53,10 +56,19 @@
 /* encoding.c */
 void rb_gc_mark_encodings(void);
 
+/* error.c */
+NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
+VALUE rb_check_backtrace(VALUE);
+
+/* eval.c */
+ID rb_frame_callee(void);
+
 /* file.c */
 VALUE rb_home_dir(const char *user, VALUE result);
 VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
 void Init_File(void);
+const char *ruby_find_basename(const char *, long *, long *);
+const char *ruby_find_extname(const char *, long *);
 
 /* gc.c */
 void Init_heap(void);
@@ -88,6 +100,7 @@
 /* numeric.c */
 VALUE rb_rational_reciprocal(VALUE x);
 int rb_num_to_uint(VALUE val, unsigned int *ret);
+int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
 
 /* parse.y */
 VALUE rb_parser_get_yydebug(VALUE);
@@ -103,6 +116,9 @@
 /* signal.c */
 int rb_get_next_signal(void);
 
+/* strftime.c */
+size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt);
+
 /* string.c */
 int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
 
Index: vm.c
===================================================================
--- vm.c	(revision 32157)
+++ vm.c	(revision 32158)
@@ -46,8 +46,6 @@
 
 static void thread_free(void *ptr);
 
-VALUE rb_insns_name_array(void);
-
 void vm_analysis_operand(int insn, int n, VALUE op);
 void vm_analysis_register(int reg, int isset);
 void vm_analysis_insn(int insn);
Index: ruby.c
===================================================================
--- ruby.c	(revision 32157)
+++ ruby.c	(revision 32158)
@@ -160,8 +160,6 @@
 	printf("  %s\n", *p++);
 }
 
-VALUE rb_get_load_path(void);
-
 #ifdef MANGLED_PATH
 static VALUE
 rubylib_mangled_path(const char *s, unsigned int l)

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

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