From 64c8c730d752e90591b44384ef4663fa06db4213 Mon Sep 17 00:00:00 2001 From: ocean Date: Thu, 20 Oct 2005 02:22:50 +0000 Subject: * eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition because they are defined in missing.h. * missing.h, missing/strchr.c, missing/strstr.c: ANSI styled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'eval.c') diff --git a/eval.c b/eval.c index 7339690b73..4a5cfab1a5 100644 --- a/eval.c +++ b/eval.c @@ -65,10 +65,6 @@ void *alloca (); #include -#ifndef HAVE_STRING_H -char *strrchr(const char*,const char); -#endif - #ifdef HAVE_UNISTD_H #include #endif @@ -1029,8 +1025,8 @@ static void pop_thread_anchor(struct ruby_env *); POP_TAG() static VALUE rb_eval(VALUE,NODE*); -static VALUE eval(VALUE,VALUE,VALUE,char*,int); -static NODE *compile(VALUE, char*, int); +static VALUE eval(VALUE,VALUE,VALUE,const char*,int); +static NODE *compile(VALUE, const char*, int); static VALUE rb_yield_0(VALUE, VALUE, VALUE, int, int); @@ -6066,7 +6062,7 @@ rb_frame_this_func(void) } static NODE* -compile(VALUE src, char *file, int line) +compile(VALUE src, const char *file, int line) { NODE *node; int critical; @@ -6083,7 +6079,7 @@ compile(VALUE src, char *file, int line) } static VALUE -eval(VALUE self, VALUE src, VALUE scope, char *file, int line) +eval(VALUE self, VALUE src, VALUE scope, const char *file, int line) { struct BLOCK *data = NULL; volatile VALUE result = Qnil; -- cgit v1.2.3