1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (parse_quotedwords): %w should allow parenthesis escape.

* parse.y (parse_qstring): %q should allow terminator escape.

* re.c (rb_reg_equal): all option flags should be same to be equal.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@1166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2001-02-08 09:18:04 +00:00
parent ab65e3df29
commit 10f884d85a
17 changed files with 71 additions and 87 deletions

28
ruby.h
View file

@ -542,12 +542,14 @@ EXTERN VALUE rb_eNameError;
EXTERN VALUE rb_eSyntaxError;
EXTERN VALUE rb_eLoadError;
#if defined(__GNUC__) && __GNUC__ >= 2 && !defined(RUBY_NO_INLINE)
extern __inline__ VALUE rb_class_of _((VALUE));
extern __inline__ int rb_type _((VALUE));
extern __inline__ int rb_special_const_p _((VALUE));
extern inline VALUE rb_class_of _((VALUE));
extern inline int rb_type _((VALUE));
extern inline int rb_special_const_p _((VALUE));
extern __inline__ VALUE
#ifndef RUBY_NO_INLINE
extern inline
#endif
VALUE
rb_class_of(VALUE obj)
{
if (FIXNUM_P(obj)) return rb_cFixnum;
@ -559,7 +561,10 @@ rb_class_of(VALUE obj)
return RBASIC(obj)->klass;
}
extern __inline__ int
#ifndef RUBY_NO_INLINE
extern inline
#endif
int
rb_type(VALUE obj)
{
if (FIXNUM_P(obj)) return T_FIXNUM;
@ -571,19 +576,16 @@ rb_type(VALUE obj)
return BUILTIN_TYPE(obj);
}
extern __inline__ int
#ifndef RUBY_NO_INLINE
extern inline
#endif
int
rb_special_const_p(VALUE obj)
{
if (SPECIAL_CONST_P(obj)) return Qtrue;
return Qfalse;
}
#else
VALUE rb_class_of _((VALUE));
int rb_type _((VALUE));
int rb_special_const_p _((VALUE));
#endif
#include "intern.h"
#if defined(EXTLIB) && defined(USE_DLN_A_OUT)