Skip to content

Commit

Permalink
* file.c: renamed and externalized rb_path_next,
Browse files Browse the repository at this point in the history
  rb_path_skip_prefix, rb_path_last_separator, rb_path_end.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Dec 15, 2003
1 parent 70c1bad commit 5fd915f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Mon Dec 15 13:11:32 2003 Nobuyoshi Nakada <[email protected]>
Mon Dec 15 13:32:22 2003 Nobuyoshi Nakada <[email protected]>

* dir.c (check_dirname): check string safety and remove extraneous
trailing directory separators. [ruby-dev:22279]

* file.c: extern rb_path_next, rb_path_skip_prefix,
rb_path_last_separator, rb_path_end.
* file.c: renamed and externalized rb_path_next,
rb_path_skip_prefix, rb_path_last_separator, rb_path_end.

* intern.h: prototypes for rb_path_next, rb_path_skip_prefix,
rb_path_last_separator, rb_path_end.
Expand Down
8 changes: 4 additions & 4 deletions file.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,7 +1461,7 @@ skiproot(path)

#define nextdirsep rb_path_next
char *
nextdirsep(s)
rb_path_next(s)
const char *s;
{
while (*s && !isdirsep(*s)) {
Expand All @@ -1472,7 +1472,7 @@ nextdirsep(s)

#define skipprefix rb_path_skip_prefix
char *
skipprefix(path)
rb_path_skip_prefix(path)
const char *path;
{
#if defined(DOSISH_UNC) || defined(DOSISH_DRIVE_LETTER)
Expand All @@ -1493,7 +1493,7 @@ skipprefix(path)

#define strrdirsep rb_path_last_separator
char *
strrdirsep(path)
rb_path_last_separator(path)
const char *path;
{
char *last = NULL;
Expand All @@ -1513,7 +1513,7 @@ strrdirsep(path)

#define chompdirsep rb_path_end
char *
chompdirsep(path)
rb_path_end(path)
const char *path;
{
while (*path) {
Expand Down

0 comments on commit 5fd915f

Please sign in to comment.