diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-29 06:14:10 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-07-29 06:14:10 +0000 |
commit | 89dbf99bacac40fa17045c8322f20fc4c9c8d070 (patch) | |
tree | c7c2046d45ef6226d94a7ef28e91942efed2408f /lib | |
parent | 448610abec3558780d541606261a090d279e26be (diff) | |
download | ruby-89dbf99bacac40fa17045c8322f20fc4c9c8d070.tar.gz |
* numeric.c (num_to_int): default to_int implementaion for every
numeric class.
* re.c (rb_reg_quote): initial part of the string was never copied
to the quoted string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/irb/extend-command.rb | 4 | ||||
-rw-r--r-- | lib/irb/ruby-lex.rb | 2 | ||||
-rw-r--r-- | lib/net/smtp.rb | 6 | ||||
-rw-r--r-- | lib/parsearg.rb | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb index fd71968c1f..cfb2c7c4be 100644 --- a/lib/irb/extend-command.rb +++ b/lib/irb/extend-command.rb @@ -104,7 +104,7 @@ module IRB def EXCB.install_extend_commands for args in @EXTEND_COMMANDS - def_extend_command *args + def_extend_command(*args) end end @@ -193,7 +193,7 @@ module IRB def CE.install_extend_commands for args in @EXTEND_COMMANDS - def_extend_command *args + def_extend_command(*args) end end diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb index e96edef30b..1bf47c1235 100644 --- a/lib/irb/ruby-lex.rb +++ b/lib/irb/ruby-lex.rb @@ -737,7 +737,7 @@ class RubyLex def identify_identifier token = "" if peek(0) =~ /[$@]/ - token.concat (c = getc) + token.concat(c = getc) if c == "@" and peek(0) == "@" token.concat getc end diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb index 8652f0f5d0..a3802f6cb0 100644 --- a/lib/net/smtp.rb +++ b/lib/net/smtp.rb @@ -289,14 +289,14 @@ module Net def send_mail( mailsrc, from_addr, *to_addrs ) do_ready from_addr, to_addrs.flatten - command().write_mail mailsrc + command().write_mail(mailsrc) end alias sendmail send_mail def ready( from_addr, *to_addrs, &block ) do_ready from_addr, to_addrs.flatten - command().through_mail &block + command().through_mail(&block) end private @@ -304,7 +304,7 @@ module Net def do_ready( from_addr, to_addrs ) raise ArgumentError, 'mail destination does not given' if to_addrs.empty? command().mailfrom from_addr - command().rcpt to_addrs + command().rcpt(to_addrs) end end diff --git a/lib/parsearg.rb b/lib/parsearg.rb index b9f41d5e5f..d5f3c9638d 100644 --- a/lib/parsearg.rb +++ b/lib/parsearg.rb @@ -73,7 +73,7 @@ def parseArgs(argc, nopt, single_opts, *opts) end rescue print "Format Error!! : \"" + nopt + "\"\t[parseArgs]\n" - exit! -1 + exit!(-1) end end if ARGV.length < argc |