Skip to content

Commit

Permalink
Merge push_include and ruby_push_include
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 7, 2024
1 parent 0d93fd0 commit b88e0d6
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions ruby.c
Expand Up @@ -439,7 +439,7 @@ usage(const char *name, int help, int highlight, int columns)
#define rubylib_path_new rb_str_new

static void
push_include(const char *path, VALUE (*filter)(VALUE))
ruby_push_include(const char *path, VALUE (*filter)(VALUE))
{
const char sep = PATH_SEP_CHAR;
const char *p, *s;
Expand All @@ -452,6 +452,7 @@ push_include(const char *path, VALUE (*filter)(VALUE))
# define is_path_sep(c) ((c) == sep)
#endif

if (path == 0) return;
p = path;
while (*p) {
long len;
Expand Down Expand Up @@ -489,14 +490,6 @@ push_include(const char *path, VALUE (*filter)(VALUE))
}
}

static void
ruby_push_include(const char *path, VALUE (*filter)(VALUE))
{
if (path == 0)
return;
push_include(path, filter);
}

static VALUE
identical_path(VALUE path)
{
Expand Down

0 comments on commit b88e0d6

Please sign in to comment.