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 | f8f4a09e312afc9816e282c83449615ed146ea50 (patch) | |
| tree | 35a33ab64f63da4a5d225cc309b8cee56b2e45cb /eval.c | |
| parent | 2dd8bc29f1852c59d42731627341d209b420b6ab (diff) | |
| download | ruby-f8f4a09e312afc9816e282c83449615ed146ea50.tar.gz ruby-f8f4a09e312afc9816e282c83449615ed146ea50.tar.xz ruby-f8f4a09e312afc9816e282c83449615ed146ea50.zip | |
* 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: http://svn.ruby-lang.org/repos/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; |
