diff options
| author | Graydon Hoare <[email protected]> | 2010-10-22 11:46:33 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-10-22 11:46:33 -0700 |
| commit | dd0d25573787b921b4b28487b228f1963965be6e (patch) | |
| tree | cb8a33ffcb7e0400934e949eb1d4351571315ab5 /src/lib/win32_os.rs | |
| parent | Change vec slice to use uint, add push/pop/shift/unshift. (diff) | |
| download | rust-dd0d25573787b921b4b28487b228f1963965be6e.tar.xz rust-dd0d25573787b921b4b28487b228f1963965be6e.zip | |
Add some filename helpers to os.
Diffstat (limited to 'src/lib/win32_os.rs')
| -rw-r--r-- | src/lib/win32_os.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/win32_os.rs b/src/lib/win32_os.rs index e0ad4188..6e1b9a9c 100644 --- a/src/lib/win32_os.rs +++ b/src/lib/win32_os.rs @@ -29,6 +29,15 @@ mod libc_constants { fn S_IWUSR() -> uint { ret 0x0080u; } // really _S_IWRITE in win32 } + +fn path_sep() -> str { + ret "\\"; +} + +fn exec_suffix() -> str { + ret ".exe"; +} + // Local Variables: // mode: rust; // fill-column: 78; |