aboutsummaryrefslogtreecommitdiff
path: root/src/lib/win32_os.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-22 11:46:33 -0700
committerGraydon Hoare <[email protected]>2010-10-22 11:46:33 -0700
commitdd0d25573787b921b4b28487b228f1963965be6e (patch)
treecb8a33ffcb7e0400934e949eb1d4351571315ab5 /src/lib/win32_os.rs
parentChange vec slice to use uint, add push/pop/shift/unshift. (diff)
downloadrust-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.rs9
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;