diff options
author | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 02:22:50 +0000 |
---|---|---|
committer | ocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-20 02:22:50 +0000 |
commit | 64c8c730d752e90591b44384ef4663fa06db4213 (patch) | |
tree | 35a33ab64f63da4a5d225cc309b8cee56b2e45cb /eval.c | |
parent | 7f60c0289c1e682b622610ca9d36ded21356f532 (diff) |
* 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
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -65,10 +65,6 @@ void *alloca (); #include <stdarg.h> -#ifndef HAVE_STRING_H -char *strrchr(const char*,const char); -#endif - #ifdef HAVE_UNISTD_H #include <unistd.h> #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; |