mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* intern.h: add prototypes.
rb_str_dup_frozen() * ruby.h: added declaration. rb_defout, rb_stdin, rb_stdout, rb_stderr, ruby_errinfo * rubyio.h: changed double include guard macro to RUBYIO_H. * array.c (inspect_call): make static. * eval.c (dvar_asgn): ditto. * io.c (rb_io_close_read): ditto. * lex.c (rb_reserved_word): ditto. * ruby.c: (req_list_head, req_list_last): ditto. * ruby.c (require_libraries): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
83796460fb
commit
b49f3b26e5
10 changed files with 36 additions and 10 deletions
22
ChangeLog
22
ChangeLog
|
@ -1,3 +1,25 @@
|
||||||
|
Mon Dec 17 17:06:56 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
|
||||||
|
|
||||||
|
* intern.h: add prototypes.
|
||||||
|
rb_str_dup_frozen()
|
||||||
|
|
||||||
|
* ruby.h: added declaration.
|
||||||
|
rb_defout, rb_stdin, rb_stdout, rb_stderr, ruby_errinfo
|
||||||
|
|
||||||
|
* rubyio.h: changed double include guard macro to RUBYIO_H.
|
||||||
|
|
||||||
|
* array.c (inspect_call): make static.
|
||||||
|
|
||||||
|
* eval.c (dvar_asgn): ditto.
|
||||||
|
|
||||||
|
* io.c (rb_io_close_read): ditto.
|
||||||
|
|
||||||
|
* lex.c (rb_reserved_word): ditto.
|
||||||
|
|
||||||
|
* ruby.c: (req_list_head, req_list_last): ditto.
|
||||||
|
|
||||||
|
* ruby.c (require_libraries): ditto.
|
||||||
|
|
||||||
Thu Dec 13 10:03:18 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Thu Dec 13 10:03:18 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* time.c (time_cmp): should handle Bignums.
|
* time.c (time_cmp): should handle Bignums.
|
||||||
|
|
2
array.c
2
array.c
|
@ -797,7 +797,7 @@ struct inspect_arg {
|
||||||
VALUE arg1, arg2;
|
VALUE arg1, arg2;
|
||||||
};
|
};
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
inspect_call(arg)
|
inspect_call(arg)
|
||||||
struct inspect_arg *arg;
|
struct inspect_arg *arg;
|
||||||
{
|
{
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -694,7 +694,7 @@ dvar_asgn_internal(id, value, curr)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dvar_asgn(id, value)
|
dvar_asgn(id, value)
|
||||||
ID id;
|
ID id;
|
||||||
VALUE value;
|
VALUE value;
|
||||||
|
|
1
intern.h
1
intern.h
|
@ -318,6 +318,7 @@ VALUE rb_tainted_str_new2 _((const char*));
|
||||||
VALUE rb_obj_as_string _((VALUE));
|
VALUE rb_obj_as_string _((VALUE));
|
||||||
VALUE rb_str_to_str _((VALUE));
|
VALUE rb_str_to_str _((VALUE));
|
||||||
VALUE rb_str_dup _((VALUE));
|
VALUE rb_str_dup _((VALUE));
|
||||||
|
VALUE rb_str_dup_frozen _((VALUE));
|
||||||
VALUE rb_str_plus _((VALUE, VALUE));
|
VALUE rb_str_plus _((VALUE, VALUE));
|
||||||
VALUE rb_str_times _((VALUE, VALUE));
|
VALUE rb_str_times _((VALUE, VALUE));
|
||||||
VALUE rb_str_substr _((VALUE, long, long));
|
VALUE rb_str_substr _((VALUE, long, long));
|
||||||
|
|
2
io.c
2
io.c
|
@ -1101,7 +1101,7 @@ rb_io_closed(io)
|
||||||
return (fptr->f || fptr->f2)?Qfalse:Qtrue;
|
return (fptr->f || fptr->f2)?Qfalse:Qtrue;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
static VALUE
|
||||||
rb_io_close_read(io)
|
rb_io_close_read(io)
|
||||||
VALUE io;
|
VALUE io;
|
||||||
{
|
{
|
||||||
|
|
1
lex.c
1
lex.c
|
@ -65,6 +65,7 @@ hash (str, len)
|
||||||
return hval + asso_values[(unsigned char)str[len - 1]];
|
return hval + asso_values[(unsigned char)str[len - 1]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__inline
|
__inline
|
||||||
#endif
|
#endif
|
||||||
|
|
6
ruby.c
6
ruby.c
|
@ -284,8 +284,8 @@ ruby_init_loadpath()
|
||||||
struct req_list {
|
struct req_list {
|
||||||
char *name;
|
char *name;
|
||||||
struct req_list *next;
|
struct req_list *next;
|
||||||
} req_list_head;
|
};
|
||||||
struct req_list *req_list_last = &req_list_head;
|
static struct req_list req_list_head, *req_list_last = &req_list_head;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_modules(mod)
|
add_modules(mod)
|
||||||
|
@ -303,7 +303,7 @@ add_modules(mod)
|
||||||
|
|
||||||
extern void Init_ext _((void));
|
extern void Init_ext _((void));
|
||||||
|
|
||||||
void
|
static void
|
||||||
require_libraries()
|
require_libraries()
|
||||||
{
|
{
|
||||||
extern NODE *ruby_eval_tree;
|
extern NODE *ruby_eval_tree;
|
||||||
|
|
2
ruby.h
2
ruby.h
|
@ -542,6 +542,8 @@ EXTERN VALUE rb_eNameError;
|
||||||
EXTERN VALUE rb_eSyntaxError;
|
EXTERN VALUE rb_eSyntaxError;
|
||||||
EXTERN VALUE rb_eLoadError;
|
EXTERN VALUE rb_eLoadError;
|
||||||
|
|
||||||
|
EXTERN VALUE rb_defout, rb_stdin, rb_stdout, rb_stderr, ruby_errinfo;
|
||||||
|
|
||||||
static inline VALUE
|
static inline VALUE
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
rb_class_of(VALUE obj)
|
rb_class_of(VALUE obj)
|
||||||
|
|
4
rubyio.h
4
rubyio.h
|
@ -10,8 +10,8 @@
|
||||||
|
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
|
|
||||||
#ifndef IO_H
|
#ifndef RUBYIO_H
|
||||||
#define IO_H
|
#define RUBYIO_H
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#define RUBY_VERSION "1.6.6"
|
#define RUBY_VERSION "1.6.6"
|
||||||
#define RUBY_RELEASE_DATE "2001-12-13"
|
#define RUBY_RELEASE_DATE "2001-12-17"
|
||||||
#define RUBY_VERSION_CODE 166
|
#define RUBY_VERSION_CODE 166
|
||||||
#define RUBY_RELEASE_CODE 20011213
|
#define RUBY_RELEASE_CODE 20011217
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue