Skip to content

Commit

Permalink
* sample: replace TRUE, FALSE with true, false respectively.
Browse files Browse the repository at this point in the history
  a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
  [ruby-dev:30713]

git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@12183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
matz committed Apr 16, 2007
1 parent 6b5f478 commit 616d36e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions sample/cbreak.rb
Expand Up @@ -6,11 +6,11 @@
TIOCSETP = 0x80067409

def cbreak ()
set_cbreak(TRUE)
set_cbreak(true)
end

def cooked ()
set_cbreak(FALSE)
set_cbreak(false)
end

def set_cbreak (on)
Expand Down
2 changes: 1 addition & 1 deletion sample/dualstack-httpd.rb
Expand Up @@ -26,7 +26,7 @@
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"
Expand Down
2 changes: 1 addition & 1 deletion sample/eval.rb
@@ -1,6 +1,6 @@
line = ''
indent = 0
$stdout.sync = TRUE
$stdout.sync = true
print "ruby> "
loop do
l = gets
Expand Down
2 changes: 1 addition & 1 deletion sample/from.rb
Expand Up @@ -26,7 +26,7 @@ def kjust(len)
end

if ARGV[0] == '-w'
wait = TRUE
wait = true
ARGV.shift
end

Expand Down
2 changes: 1 addition & 1 deletion sample/philos.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion sample/regx.rb
Expand Up @@ -3,7 +3,7 @@
#st = "<<"
#en = ">>"

while TRUE
while true
print "str> "
STDOUT.flush
input = gets
Expand Down

0 comments on commit 616d36e

Please sign in to comment.