diff options
| author | John Bampton <[email protected]> | 2020-12-15 19:34:01 +1000 |
|---|---|---|
| committer | John Bampton <[email protected]> | 2020-12-15 19:44:02 +1000 |
| commit | 4fa3359d44471cf301fe6755dd281a87304d5d01 (patch) | |
| tree | 5161a88ea84758ea3dca9b5271745207964015e0 /mrbgems/mruby-io/src | |
| parent | e9fe337b952731226449027a4c34471af27b23e6 (diff) | |
| download | mruby-4fa3359d44471cf301fe6755dd281a87304d5d01.tar.gz mruby-4fa3359d44471cf301fe6755dd281a87304d5d01.zip | |
refactor: remove trailing whitespace from C, Header, Ruby and YAML files
Lint
Diffstat (limited to 'mrbgems/mruby-io/src')
| -rw-r--r-- | mrbgems/mruby-io/src/file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/mrbgems/mruby-io/src/file.c b/mrbgems/mruby-io/src/file.c index d6db8140c..1704579cf 100644 --- a/mrbgems/mruby-io/src/file.c +++ b/mrbgems/mruby-io/src/file.c @@ -290,20 +290,20 @@ mrb_file__getwd(mrb_state *mrb, mrb_value klass) #define IS_DEVICEID(x) (x == '.' || x == '?') #define CHECK_UNCDEV_PATH (IS_FILESEP(path[0]) && IS_FILESEP(path[1])) -static int +static int is_absolute_traditional_path(const char *path, size_t len) { if (len < 3) return 0; return (ISALPHA(path[0]) && IS_VOLSEP(path[1]) && IS_FILESEP(path[2])); } -static int +static int is_aboslute_unc_path(const char *path, size_t len) { if (len < 2) return 0; return (CHECK_UNCDEV_PATH && !IS_DEVICEID(path[2])); } -static int +static int is_absolute_device_path(const char *path, size_t len) { if (len < 4) return 0; return (CHECK_UNCDEV_PATH && IS_DEVICEID(path[2]) && IS_FILESEP(path[3])); @@ -316,8 +316,8 @@ mrb_file_is_absolute_path(const char *path) if (IS_FILESEP(path[0])) return 1; if (len > 0) return ( - is_absolute_traditional_path(path, len) || - is_aboslute_unc_path(path, len) || + is_absolute_traditional_path(path, len) || + is_aboslute_unc_path(path, len) || is_absolute_device_path(path, len) ); else |
