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

* sample: replace TRUE, FALSE with true, false respectively.

a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30713]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2007-04-16 13:53:09 +00:00
parent 380ea10dfa
commit a8c748d277
7 changed files with 13 additions and 7 deletions

View file

@ -1,3 +1,9 @@
Mon Apr 16 22:51:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
* sample: replace TRUE, FALSE with true, false respectively.
a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
[ruby-dev:30713]
Mon Apr 16 17:08:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
* lib/optparse.rb (make_switch): do not clobber converter if pattern

View file

@ -6,11 +6,11 @@ TIOCGETP = 0x40067408
TIOCSETP = 0x80067409
def cbreak ()
set_cbreak(TRUE)
set_cbreak(true)
end
def cooked ()
set_cbreak(FALSE)
set_cbreak(false)
end
def set_cbreak (on)

View file

@ -26,7 +26,7 @@ end
ls = mysock # copy to dynamic variable
t = Thread.current
STDERR.print "socket #{myname} listener started, pid #{$$} thread #{t}\n"
while TRUE
while true
as = ls.accept
Thread.start do
STDERR.print "socket #{myname} accepted, thread ", Thread.current, "\n"

View file

@ -1,6 +1,6 @@
line = ''
indent = 0
$stdout.sync = TRUE
$stdout.sync = true
print "ruby> "
loop do
l = gets

View file

@ -26,7 +26,7 @@ class String
end
if ARGV[0] == '-w'
wait = TRUE
wait = true
ARGV.shift
end

View file

@ -25,7 +25,7 @@ def eat(n)
end
def philosopher(n)
while TRUE
while true
think n
$forks[n].lock
if not $forks[(n+1)%N].try_lock

View file

@ -3,7 +3,7 @@ en = "\033[m"
#st = "<<"
#en = ">>"
while TRUE
while true
print "str> "
STDOUT.flush
input = gets