mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* file.c: renamed and externalized rb_path_next,
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
This commit is contained in:
parent
70c1badcfd
commit
5fd915fc83
2 changed files with 7 additions and 7 deletions
|
@ -1,10 +1,10 @@
|
|||
Mon Dec 15 13:11:32 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Mon Dec 15 13:32:22 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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.
|
||||
|
|
8
file.c
8
file.c
|
@ -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)) {
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -1513,7 +1513,7 @@ strrdirsep(path)
|
|||
|
||||
#define chompdirsep rb_path_end
|
||||
char *
|
||||
chompdirsep(path)
|
||||
rb_path_end(path)
|
||||
const char *path;
|
||||
{
|
||||
while (*path) {
|
||||
|
|
Loading…
Reference in a new issue