From 230785ef92c999c99e167db1dba46a30fb02fa04 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 25 Nov 2003 12:44:26 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@5029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 75c07797d..5fe1dbc6a 100644 --- a/hash.c +++ b/hash.c @@ -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; -- cgit