diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-25 12:44:26 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-11-25 12:44:26 +0000 |
commit | 2a9719235d9cc7b0ac402c6b2a33e07a481fe2ff (patch) | |
tree | 836c23d67f1975b48e3d02c67a6567a7b313116a /hash.c | |
parent | 7e42e5c01b007e19c2af3000d519b93526e53d4f (diff) | |
download | ruby-2a9719235d9cc7b0ac402c6b2a33e07a481fe2ff.tar.gz |
* defines.h (ENV_IGNORECASE): should define when DOSISH without
human68k.
* hash.c (env_has_value, env_index): don't ignore case of value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -1598,11 +1598,7 @@ env_has_value(dmy, value) while (*env) { char *s = strchr(*env, '='); if (s++) { -#ifdef ENV_IGNORECASE - if (strncasecmp(s, RSTRING(value)->ptr, strlen(s)) == 0) { -#else if (strncmp(s, RSTRING(value)->ptr, strlen(s)) == 0) { -#endif FREE_ENVIRON(environ); return Qtrue; } @@ -1625,11 +1621,7 @@ env_index(dmy, value) while (*env) { char *s = strchr(*env, '='); if (s++) { -#ifdef ENV_IGNORECASE - if (strncasecmp(s, RSTRING(value)->ptr, strlen(s)) == 0) { -#else if (strncmp(s, RSTRING(value)->ptr, strlen(s)) == 0) { -#endif str = env_str_new(*env, s-*env-1); FREE_ENVIRON(environ); return str; |