diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-29 14:51:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-29 14:51:22 +0000 |
commit | 05b990b7c1aa0403e01c8a2f1da59392731d1f84 (patch) | |
tree | 19be2ba424759dc93554f442a79f8931d270e3d8 /dln.c | |
parent | 0569c8422c566d77f33843a5e11d87b0066e93a5 (diff) |
* gc.c (gc_sweep): adjust GC trigger.
* dln.c (init_funcname_len): get rid of gcc-3 -O3 warning.
* eval.c (copy_node_scope): ditto.
* hash.c (rb_hash_foreach, delete_if_i, select_i, each_value_i,
each_key_i, each_pair_i, envix): ditto.
* range.c (range_each_func): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r-- | dln.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -107,17 +107,18 @@ int eaccess(); static int init_funcname_len(buf, file) char **buf; - char *file; + const char *file; { - char *p, *slash; + char *p; + const char *slash; int len; /* Load the file as an object one */ - for (p = file, slash = p-1; *p; p++) /* Find position of last '/' */ + for (slash = file-1; *file; file++) /* Find position of last '/' */ #ifdef __MACOS__ - if (*p == ':') slash = p; + if (*file == ':') slash = file; #else - if (*p == '/') slash = p; + if (*file == '/') slash = file; #endif len = strlen(FUNCNAME_PATTERN) + strlen(slash + 1); |