Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

* re.c (Init_Regexp): to_s to be alias to inspect.

* parse.y (yylex): should support 'keyword='.

* ruby.c (proc_options): should not adjust argc/argv if -e option
  is supplied.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 1ffef20d0a1fc249929c25ff1751405ac12e6d64 1 parent 4c0e82c
matz authored
19 ChangeLog
... ... @@ -1,7 +1,20 @@
  1 +Tue Sep 4 01:03:18 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
  2 +
  3 + * re.c (Init_Regexp): to_s to be alias to inspect.
  4 +
  5 +Mon Sep 3 22:46:59 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
  6 +
  7 + * parse.y (yylex): should support 'keyword='.
  8 +
1 9 Mon Sep 3 20:26:08 2001 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp>
2 10
3 11 * intern.h (rb_find_file_ext): changed from rb_find_file_noext().
4 12
  13 +Mon Sep 3 15:12:49 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
  14 +
  15 + * ruby.c (proc_options): should not adjust argc/argv if -e option
  16 + is supplied.
  17 +
5 18 Mon Sep 3 14:11:17 2001 Akinori MUSHA <knu@iDaemons.org>
6 19
7 20 * error.c: unbreak the build on *BSD with gcc 3.0.1 by removing
@@ -171,6 +184,12 @@ Fri Aug 17 00:49:51 2001 Yukihiro Matsumoto <matz@ruby-lang.org>
171 184
172 185 * parse.y (parse_regx): handle backslash escaping of delimiter here.
173 186
  187 +Thu Aug 16 23:03:40 2001 Koji Arai <JCA02266@nifty.ne.jp>
  188 +
  189 + * io.c: prevent recursive malloc calls on NEC UX/4800.
  190 +
  191 + * ext/socket/socket.c: ditto.
  192 +
174 193 Thu Aug 16 13:54:04 2001 Usaku Nakamura <usa@ruby-lang.org>
175 194
176 195 * ext/socket/socket.c (s_recvfrom): fix typo.
10 ToDo
@@ -50,7 +50,6 @@ Hacking Interpreter
50 50 * Built-in Interactive Ruby.
51 51 * trap every method invocation, which can be enabled by e.g. trap_call :method.
52 52 * unify Errno exceptions of same errno, or new exception comparison scheme.
53   -* signal list (Signal::trap, Signal::list??).
54 53 * 2.times{|i| if i==0 then a = 15 else puts eval("a") end} should print nil.
55 54
56 55 Standard Libraries
@@ -63,7 +62,9 @@ Standard Libraries
63 62 - Process::Status
64 63 - File::lchown, File::lchmod; xxx - still need work for non existing platforms
65 64 - move Time::times to Process.
66   -* Enumerable#sort_by for Schwartzian transformation
  65 +- Enumerable#sort_by for Schwartzian transformation
  66 +- fork_and_kill_other_threads.
  67 +- signal list (Signal::trap, Signal::list).
67 68 * String#scanf(?)
68 69 * Object#fmt(?)
69 70 * Integer#{bin,oct,hex,heX}
@@ -77,17 +78,16 @@ Standard Libraries
77 78 * introduce Boolean class; super of TrueClass, FalseClass
78 79 * synchronized method - synchronized{...}, synchronized :foo, :bar
79 80 * Array#&, Array#| to allow duplication. ???
80   -* fork_and_kill_other_threads.
81 81 * way to specify immortal (fork endurance) thread;
82 82 * or raise ForkException to every thread but fork caller.
83 83 * Hash::new{default} or recommend Hash#fetch?
84 84 * new user-defined marshal scheme. _dump(dumper), _load(restorer)
85   -* warn, warning for Ruby level
86 85 * hash etc. should handle self referenceing array/hash
87 86 * move NameError under StandardError.
88 87 * library to load per-user profile seeking .ruby_profile or ruby.ini file.
89   -* warning framework
  88 +* warning framework (warn, warning for Ruby level)
90 89 * marshal should not depend on sprintf/strtod (works bad for locale).
  90 +* ternary arg - a.pow(b,c) == a**b%c
91 91
92 92 Extension Libraries
93 93
167 ext/socket/socket.c
@@ -437,8 +437,8 @@ s_recvfrom(sock, argc, argv, from)
437 437
438 438 str = rb_tainted_str_new(0, NUM2INT(len));
439 439
440   - rb_thread_wait_fd(fd);
441 440 retry:
  441 + rb_thread_wait_fd(fd);
442 442 TRAP_BEG;
443 443 RSTRING(str)->len = recvfrom(fd, RSTRING(str)->ptr, RSTRING(str)->len, flags,
444 444 (struct sockaddr*)buf, &alen);
@@ -454,7 +454,6 @@ s_recvfrom(sock, argc, argv, from)
454 454 #if EAGAIN != EWOULDBLOCK
455 455 case EAGAIN:
456 456 #endif
457   - rb_thread_wait_fd(fd);
458 457 goto retry;
459 458 }
460 459 rb_sys_fail("recvfrom(2)");
@@ -1102,9 +1101,13 @@ s_accept(class, fd, sockaddr, len)
1102 1101 rb_secure(3);
1103 1102 retry:
1104 1103 rb_thread_wait_fd(fd);
  1104 +#if defined(_nec_ews)
  1105 + fd2 = accept(fd, sockaddr, len);
  1106 +#else
1105 1107 TRAP_BEG;
1106 1108 fd2 = accept(fd, sockaddr, len);
1107 1109 TRAP_END;
  1110 +#endif
1108 1111 if (fd2 < 0) {
1109 1112 switch (errno) {
1110 1113 case EMFILE:
@@ -1121,7 +1124,6 @@ s_accept(class, fd, sockaddr, len)
1121 1124 #if EAGAIN != EWOULDBLOCK
1122 1125 case EAGAIN:
1123 1126 #endif
1124   - rb_thread_wait_fd(fd);
1125 1127 goto retry;
1126 1128 }
1127 1129 rb_sys_fail(0);
@@ -2313,6 +2315,165 @@ Init_socket()
2313 2315 sock_define_const("SOL_UDP", SOL_UDP);
2314 2316 #endif
2315 2317
  2318 +#ifdef IPPROTO_IP
  2319 + sock_define_const("IPPROTO_IP", IPPROTO_IP);
  2320 +#else
  2321 + sock_define_const("IPPROTO_IP", 0);
  2322 +#endif
  2323 +#ifdef IPPROTO_ICMP
  2324 + sock_define_const("IPPROTO_ICMP", IPPROTO_ICMP);
  2325 +#else
  2326 + sock_define_const("IPPROTO_ICMP", 1);
  2327 +#endif
  2328 +#ifdef IPPROTO_IGMP
  2329 + sock_define_const("IPPROTO_IGMP", IPPROTO_IGMP);
  2330 +#endif
  2331 +#ifdef IPPROTO_GGP
  2332 + sock_define_const("IPPROTO_GGP", IPPROTO_GGP);
  2333 +#endif
  2334 +#ifdef IPPROTO_TCP
  2335 + sock_define_const("IPPROTO_TCP", IPPROTO_TCP);
  2336 +#else
  2337 + sock_define_const("IPPROTO_TCP", 6);
  2338 +#endif
  2339 +#ifdef IPPROTO_EGP
  2340 + sock_define_const("IPPROTO_EGP", IPPROTO_EGP);
  2341 +#endif
  2342 +#ifdef IPPROTO_PUP
  2343 + sock_define_const("IPPROTO_PUP", IPPROTO_PUP);
  2344 +#endif
  2345 +#ifdef IPPROTO_UDP
  2346 + sock_define_const("IPPROTO_UDP", IPPROTO_UDP);
  2347 +#else
  2348 + sock_define_const("IPPROTO_UDP", 17);
  2349 +#endif
  2350 +#ifdef IPPROTO_IDP
  2351 + sock_define_const("IPPROTO_IDP", IPPROTO_IDP);
  2352 +#endif
  2353 +#ifdef IPPROTO_HELLO
  2354 + sock_define_const("IPPROTO_HELLO", IPPROTO_HELLO);
  2355 +#endif
  2356 +#ifdef IPPROTO_ND
  2357 + sock_define_const("IPPROTO_ND", IPPROTO_ND);
  2358 +#endif
  2359 +#ifdef IPPROTO_TP
  2360 + sock_define_const("IPPROTO_TP", IPPROTO_TP);
  2361 +#endif
  2362 +#ifdef IPPROTO_XTP
  2363 + sock_define_const("IPPROTO_XTP", IPPROTO_XTP);
  2364 +#endif
  2365 +#ifdef IPPROTO_EON
  2366 + sock_define_const("IPPROTO_EON", IPPROTO_EON);
  2367 +#endif
  2368 +#ifdef IPPROTO_BIP
  2369 + sock_define_const("IPPROTO_BIP", IPPROTO_BIP);
  2370 +#endif
  2371 +/**/
  2372 +#ifdef IPPROTO_RAW
  2373 + sock_define_const("IPPROTO_RAW", IPPROTO_RAW);
  2374 +#else
  2375 + sock_define_const("IPPROTO_RAW", 255);
  2376 +#endif
  2377 +#ifdef IPPROTO_MAX
  2378 + sock_define_const("IPPROTO_MAX", IPPROTO_MAX);
  2379 +#endif
  2380 +
  2381 + /* Some port configuration */
  2382 +#ifdef IPPORT_RESERVED
  2383 + sock_define_const("IPPORT_RESERVED", IPPORT_RESERVED);
  2384 +#else
  2385 + sock_define_const("IPPORT_RESERVED", 1024);
  2386 +#endif
  2387 +#ifdef IPPORT_USERRESERVED
  2388 + sock_define_const("IPPORT_USERRESERVED", IPPORT_USERRESERVED);
  2389 +#else
  2390 + sock_define_const("IPPORT_USERRESERVED", 5000);
  2391 +#endif
  2392 + /* Some reserved IP v.4 addresses */
  2393 +#ifdef INADDR_ANY
  2394 + sock_define_const("INADDR_ANY", INADDR_ANY);
  2395 +#else
  2396 + sock_define_const("INADDR_ANY", 0x00000000);
  2397 +#endif
  2398 +#ifdef INADDR_BROADCAST
  2399 + sock_define_const("INADDR_BROADCAST", INADDR_BROADCAST);
  2400 +#else
  2401 + sock_define_const("INADDR_BROADCAST", 0xffffffff);
  2402 +#endif
  2403 +#ifdef INADDR_LOOPBACK
  2404 + sock_define_const("INADDR_LOOPBACK", INADDR_LOOPBACK);
  2405 +#else
  2406 + sock_define_const("INADDR_LOOPBACK", 0x7F000001);
  2407 +#endif
  2408 +#ifdef INADDR_UNSPEC_GROUP
  2409 + sock_define_const("INADDR_UNSPEC_GROUP", INADDR_UNSPEC_GROUP);
  2410 +#else
  2411 + sock_define_const("INADDR_UNSPEC_GROUP", 0xe0000000);
  2412 +#endif
  2413 +#ifdef INADDR_ALLHOSTS_GROUP
  2414 + sock_define_const("INADDR_ALLHOSTS_GROUP", INADDR_ALLHOSTS_GROUP);
  2415 +#else
  2416 + sock_define_const("INADDR_ALLHOSTS_GROUP", 0xe0000001);
  2417 +#endif
  2418 +#ifdef INADDR_MAX_LOCAL_GROUP
  2419 + sock_define_const("INADDR_MAX_LOCAL_GROUP", INADDR_MAX_LOCAL_GROUP);
  2420 +#else
  2421 + sock_define_const("INADDR_MAX_LOCAL_GROUP", 0xe00000ff);
  2422 +#endif
  2423 +#ifdef INADDR_NONE
  2424 + sock_define_const("INADDR_NONE", INADDR_NONE);
  2425 +#else
  2426 + sock_define_const("INADDR_NONE", 0xffffffff);
  2427 +#endif
  2428 + /* IP [gs]etsockopt options */
  2429 +#ifdef IP_OPTIONS
  2430 + sock_define_const("IP_OPTIONS", IP_OPTIONS);
  2431 +#endif
  2432 +#ifdef IP_HDRINCL
  2433 + sock_define_const("IP_HDRINCL", IP_HDRINCL);
  2434 +#endif
  2435 +#ifdef IP_TOS
  2436 + sock_define_const("IP_TOS", IP_TOS);
  2437 +#endif
  2438 +#ifdef IP_TTL
  2439 + sock_define_const("IP_TTL", IP_TTL);
  2440 +#endif
  2441 +#ifdef IP_RECVOPTS
  2442 + sock_define_const("IP_RECVOPTS", IP_RECVOPTS);
  2443 +#endif
  2444 +#ifdef IP_RECVRETOPTS
  2445 + sock_define_const("IP_RECVRETOPTS", IP_RECVRETOPTS);
  2446 +#endif
  2447 +#ifdef IP_RECVDSTADDR
  2448 + sock_define_const("IP_RECVDSTADDR", IP_RECVDSTADDR);
  2449 +#endif
  2450 +#ifdef IP_RETOPTS
  2451 + sock_define_const("IP_RETOPTS", IP_RETOPTS);
  2452 +#endif
  2453 +#ifdef IP_MULTICAST_IF
  2454 + sock_define_const("IP_MULTICAST_IF", IP_MULTICAST_IF);
  2455 +#endif
  2456 +#ifdef IP_MULTICAST_TTL
  2457 + sock_define_const("IP_MULTICAST_TTL", IP_MULTICAST_TTL);
  2458 +#endif
  2459 +#ifdef IP_MULTICAST_LOOP
  2460 + sock_define_const("IP_MULTICAST_LOOP", IP_MULTICAST_LOOP);
  2461 +#endif
  2462 +#ifdef IP_ADD_MEMBERSHIP
  2463 + sock_define_const("IP_ADD_MEMBERSHIP", IP_ADD_MEMBERSHIP);
  2464 +#endif
  2465 +#ifdef IP_DROP_MEMBERSHIP
  2466 + sock_define_const("IP_DROP_MEMBERSHIP", IP_DROP_MEMBERSHIP);
  2467 +#endif
  2468 +#ifdef IP_DEFAULT_MULTICAST_TTL
  2469 + sock_define_const("IP_DEFAULT_MULTICAST_TTL", IP_DEFAULT_MULTICAST_TTL);
  2470 +#endif
  2471 +#ifdef IP_DEFAULT_MULTICAST_LOOP
  2472 + sock_define_const("IP_DEFAULT_MULTICAST_LOOP", IP_DEFAULT_MULTICAST_LOOP);
  2473 +#endif
  2474 +#ifdef IP_MAX_MEMBERSHIPS
  2475 + sock_define_const("IP_MAX_MEMBERSHIPS", IP_MAX_MEMBERSHIPS);
  2476 +#endif
2316 2477 #ifdef SO_DEBUG
2317 2478 sock_define_const("SO_DEBUG", SO_DEBUG);
2318 2479 #endif
6 ext/tk/lib/tk.rb
@@ -2233,7 +2233,7 @@ def []=(id, val)
2233 2233
2234 2234 def cget(slot)
2235 2235 case slot
2236   - when 'text', 'label', 'show', 'data', 'flie'
  2236 + when 'text', 'label', 'show', 'data', 'file'
2237 2237 tk_call path, 'cget', "-#{slot}"
2238 2238 else
2239 2239 tk_tcl2ruby tk_call path, 'cget', "-#{slot}"
@@ -2273,7 +2273,7 @@ def configinfo(slot = nil)
2273 2273 else
2274 2274 if slot
2275 2275 case slot
2276   - when 'text', 'label', 'show', 'data', 'flie'
  2276 + when 'text', 'label', 'show', 'data', 'file'
2277 2277 conf = tk_split_simplelist(tk_send('configure', "-#{slot}") )
2278 2278 else
2279 2279 conf = tk_split_list(tk_send('configure', "-#{slot}") )
@@ -2285,7 +2285,7 @@ def configinfo(slot = nil)
2285 2285 conf = tk_split_simplelist(conflist)
2286 2286 conf[0] = conf[0][1..-1]
2287 2287 case conf[0]
2288   - when 'text', 'label', 'show', 'data', 'flie'
  2288 + when 'text', 'label', 'show', 'data', 'file'
2289 2289 else
2290 2290 if conf[3]
2291 2291 if conf[3].index('{')
20 ext/tk/lib/tktext.rb
@@ -279,7 +279,7 @@ def tag_bindinfo(tag, context=nil)
279 279
280 280 def tag_cget(tag, key)
281 281 case key
282   - when 'text', 'label', 'show', 'data', 'flie'
  282 + when 'text', 'label', 'show', 'data', 'file'
283 283 tk_call @path, 'tag', 'cget', tag, "-#{key}"
284 284 else
285 285 tk_tcl2ruby tk_call @path, 'tag', 'cget', tag, "-#{key}"
@@ -308,7 +308,7 @@ def tag_configure(tag, key, val=None)
308 308 def tag_configinfo(tag, key=nil)
309 309 if key
310 310 case key
311   - when 'text', 'label', 'show', 'data', 'flie'
  311 + when 'text', 'label', 'show', 'data', 'file'
312 312 conf = tk_split_simplelist(tk_send('tag','configure',tag,"-#{key}"))
313 313 else
314 314 conf = tk_split_list(tk_send('tag','configure',tag,"-#{key}"))
@@ -320,7 +320,7 @@ def tag_configinfo(tag, key=nil)
320 320 conf = tk_split_simplelist(conflist)
321 321 conf[0] = conf[0][1..-1]
322 322 case conf[0]
323   - when 'text', 'label', 'show', 'data', 'flie'
  323 + when 'text', 'label', 'show', 'data', 'file'
324 324 else
325 325 if conf[3]
326 326 if conf[3].index('{')
@@ -712,7 +712,7 @@ def []=(key,val)
712 712
713 713 def cget(key)
714 714 case key
715   - when 'text', 'label', 'show', 'data', 'flie'
  715 + when 'text', 'label', 'show', 'data', 'file'
716 716 tk_call @t.path, 'tag', 'cget', @id, "-#{key}"
717 717 else
718 718 tk_tcl2ruby tk_call @t.path, 'tag', 'cget', @id, "-#{key}"
@@ -896,7 +896,7 @@ def []=(slot, value)
896 896
897 897 def cget(slot)
898 898 case slot
899   - when 'text', 'label', 'show', 'data', 'flie'
  899 + when 'text', 'label', 'show', 'data', 'file'
900 900 tk_call @t.path, 'window', 'cget', @index, "-#{slot}"
901 901 else
902 902 tk_tcl2ruby tk_call @t.path, 'window', 'cget', @index, "-#{slot}"
@@ -947,7 +947,7 @@ def create=(value)
947 947 def configinfo(slot = nil)
948 948 if slot
949 949 case slot
950   - when 'text', 'label', 'show', 'data', 'flie'
  950 + when 'text', 'label', 'show', 'data', 'file'
951 951 conf = tk_split_simplelist(tk_call @t.path, 'window', 'configure',
952 952 @index, "-#{slot}")
953 953 else
@@ -962,7 +962,7 @@ def configinfo(slot = nil)
962 962 conf = tk_split_simplelist(conflist)
963 963 conf[0] = conf[0][1..-1]
964 964 case conf[0]
965   - when 'text', 'label', 'show', 'data', 'flie'
  965 + when 'text', 'label', 'show', 'data', 'file'
966 966 else
967 967 if conf[3]
968 968 if conf[3].index('{')
@@ -1017,7 +1017,7 @@ def []=(slot, value)
1017 1017
1018 1018 def cget(slot)
1019 1019 case slot
1020   - when 'text', 'label', 'show', 'data', 'flie'
  1020 + when 'text', 'label', 'show', 'data', 'file'
1021 1021 tk_call @t.path, 'image', 'cget', @index, "-#{slot}"
1022 1022 else
1023 1023 tk_tcl2ruby tk_call @t.path, 'image', 'cget', @index, "-#{slot}"
@@ -1046,7 +1046,7 @@ def image=(value)
1046 1046 def configinfo(slot = nil)
1047 1047 if slot
1048 1048 case slot
1049   - when 'text', 'label', 'show', 'data', 'flie'
  1049 + when 'text', 'label', 'show', 'data', 'file'
1050 1050 conf = tk_split_simplelist(tk_call @t.path, 'image', 'configure',
1051 1051 @index, "-#{slot}")
1052 1052 else
@@ -1061,7 +1061,7 @@ def configinfo(slot = nil)
1061 1061 conf = tk_split_simplelist(conflist)
1062 1062 conf[0] = conf[0][1..-1]
1063 1063 case conf[0]
1064   - when 'text', 'label', 'show', 'data', 'flie'
  1064 + when 'text', 'label', 'show', 'data', 'file'
1065 1065 else
1066 1066 if conf[3]
1067 1067 if conf[3].index('{')
3  io.c
@@ -27,7 +27,7 @@
27 27 # define NO_LONG_FNAME
28 28 #endif
29 29
30   -#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(sun)
  30 +#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(sun) || defined(_nec_ews)
31 31 # define USE_SETVBUF
32 32 #endif
33 33
@@ -1380,6 +1380,7 @@ rb_io_mode_binmode(mode)
1380 1380 static char*
1381 1381 rb_io_binmode_mode(flags, mode)
1382 1382 int flags;
  1383 + char *mode;
1383 1384 {
1384 1385 char *p = mode;
1385 1386
47 parse.y
@@ -2897,7 +2897,6 @@ yylex()
2897 2897 register int c;
2898 2898 int space_seen = 0;
2899 2899 int cmd_state;
2900   - struct kwtable *kw;
2901 2900
2902 2901 cmd_state = command_start;
2903 2902 command_start = Qfalse;
@@ -3714,8 +3713,33 @@ yylex()
3714 3713 else
3715 3714 result = tIVAR;
3716 3715 break;
  3716 +
3717 3717 default:
  3718 + if (toklast() == '!' || toklast() == '?') {
  3719 + result = tFID;
  3720 + }
  3721 + else {
  3722 + if (lex_state == EXPR_FNAME) {
  3723 + if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
  3724 + (!peek('=') || lex_p + 1 < lex_pend && lex_p[1] == '>')) {
  3725 + result = tIDENTIFIER;
  3726 + tokadd(c);
  3727 + }
  3728 + else {
  3729 + pushback(c);
  3730 + }
  3731 + }
  3732 + if (result == 0 && ISUPPER(tok()[0])) {
  3733 + result = tCONSTANT;
  3734 + }
  3735 + else {
  3736 + result = tIDENTIFIER;
  3737 + }
  3738 + }
  3739 +
3718 3740 if (lex_state != EXPR_DOT) {
  3741 + struct kwtable *kw;
  3742 +
3719 3743 /* See if it is a reserved word. */
3720 3744 kw = rb_reserved_word(tok(), toklen());
3721 3745 if (kw) {
@@ -3740,27 +3764,6 @@ yylex()
3740 3764 }
3741 3765 }
3742 3766
3743   - if (toklast() == '!' || toklast() == '?') {
3744   - result = tFID;
3745   - }
3746   - else {
3747   - if (lex_state == EXPR_FNAME) {
3748   - if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
3749   - (!peek('=') || lex_p + 1 < lex_pend && lex_p[1] == '>')) {
3750   - result = tIDENTIFIER;
3751   - tokadd(c);
3752   - }
3753   - else {
3754   - pushback(c);
3755   - }
3756   - }
3757   - if (result == 0 && ISUPPER(tok()[0])) {
3758   - result = tCONSTANT;
3759   - }
3760   - else {
3761   - result = tIDENTIFIER;
3762   - }
3763   - }
3764 3767 if (lex_state == EXPR_BEG ||
3765 3768 lex_state == EXPR_DOT ||
3766 3769 lex_state == EXPR_ARG ||
3  re.c
@@ -1397,6 +1397,7 @@ Init_Regexp()
1397 1397 rb_define_method(rb_cRegexp, "===", rb_reg_match, 1);
1398 1398 rb_define_method(rb_cRegexp, "~", rb_reg_match2, 0);
1399 1399 rb_define_method(rb_cRegexp, "match", rb_reg_match_m, 1);
  1400 + rb_define_method(rb_cRegexp, "to_s", rb_reg_inspect, 0);
1400 1401 rb_define_method(rb_cRegexp, "inspect", rb_reg_inspect, 0);
1401 1402 rb_define_method(rb_cRegexp, "source", rb_reg_source, 0);
1402 1403 rb_define_method(rb_cRegexp, "casefold?", rb_reg_casefold_p, 0);
@@ -1425,6 +1426,6 @@ Init_Regexp()
1425 1426 rb_define_method(rb_cMatch, "pre_match", rb_reg_match_pre, 0);
1426 1427 rb_define_method(rb_cMatch, "post_match", rb_reg_match_post, 0);
1427 1428 rb_define_method(rb_cMatch, "to_s", match_to_s, 0);
1428   - rb_define_method(rb_cMatch, "string", match_string, 0);
1429 1429 rb_define_method(rb_cMatch, "inspect", rb_any_to_s, 0);
  1430 + rb_define_method(rb_cMatch, "string", match_string, 0);
1430 1431 }
4 version.h
... ... @@ -1,4 +1,4 @@
1 1 #define RUBY_VERSION "1.7.1"
2   -#define RUBY_RELEASE_DATE "2001-09-03"
  2 +#define RUBY_RELEASE_DATE "2001-09-05"
3 3 #define RUBY_VERSION_CODE 171
4   -#define RUBY_RELEASE_CODE 20010903
  4 +#define RUBY_RELEASE_CODE 20010905

0 comments on commit 1ffef20

Please sign in to comment.
Something went wrong with that request. Please try again.