diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:31:11 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-21 02:31:11 +0000 |
commit | 15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7 (patch) | |
tree | 735cc60c2165cefab0d4cf11cd399e73f8c47f82 /ext | |
parent | e2e973ceeb62d5ecf87e45128bbe985d27227fda (diff) | |
download | ruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.tar.gz ruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.tar.xz ruby-15c84d07d3db4ae74bc93b7442bd7fed1d3f31b7.zip |
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c,
ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb,
ext/openssl/ossl_bn.c, numeric.c, vm.c,
benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal"
for non law violation context.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/openssl/ossl_bn.c | 4 | ||||
-rw-r--r-- | ext/tk/lib/tcltk.rb | 2 | ||||
-rw-r--r-- | ext/tk/sample/demos-en/entry3.rb | 2 | ||||
-rw-r--r-- | ext/win32ole/win32ole.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c index 60d9e552a..83d2bf43c 100644 --- a/ext/openssl/ossl_bn.c +++ b/ext/openssl/ossl_bn.c @@ -151,7 +151,7 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self) } break; default: - ossl_raise(rb_eArgError, "illegal radix %d", base); + ossl_raise(rb_eArgError, "invalid radix %d", base); } return self; } @@ -203,7 +203,7 @@ ossl_bn_to_s(int argc, VALUE *argv, VALUE self) str = ossl_buf2str(buf, strlen(buf)); break; default: - ossl_raise(rb_eArgError, "illegal radix %d", base); + ossl_raise(rb_eArgError, "invalid radix %d", base); } return str; diff --git a/ext/tk/lib/tcltk.rb b/ext/tk/lib/tcltk.rb index 1a6694dbf..7f6f41605 100644 --- a/ext/tk/lib/tcltk.rb +++ b/ext/tk/lib/tcltk.rb @@ -265,7 +265,7 @@ class TclTkWidget < TclTkCommand # (used in TclTkInterpreter#initialize()) # need two arguments - fail("illegal # of parameter") if args.size != 2 + fail("invalid # of parameter") if args.size != 2 # ip: interpreter(TclTkIp) # exp: tcl/tk representation diff --git a/ext/tk/sample/demos-en/entry3.rb b/ext/tk/sample/demos-en/entry3.rb index 415b45f86..68f77a0d4 100644 --- a/ext/tk/sample/demos-en/entry3.rb +++ b/ext/tk/sample/demos-en/entry3.rb @@ -28,7 +28,7 @@ problem. The second only accepts strings with fewer than ten \ characters and sounds the bell when an attempt to go over the limit \ is made. The third accepts US phone numbers, mapping letters to \ their digit equivalent and sounding the bell on encountering an \ -illegal character or if trying to type over a character that is not \ +invalid character or if trying to type over a character that is not \ a digit. The fourth is a password field that accepts up to eight \ characters (silently ignoring further ones), and displaying them as \ asterisk characters. diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c index 8612d5a24..09e21b4b8 100644 --- a/ext/win32ole/win32ole.c +++ b/ext/win32ole/win32ole.c @@ -4057,7 +4057,7 @@ fole_query_interface(VALUE self, VALUE str_iid) SysFreeString(pBuf); if(FAILED(hr)) { ole_raise(hr, eWIN32OLERuntimeError, - "illegal iid: `%s'", + "invalid iid: `%s'", StringValuePtr(str_iid)); } |