Permalink
Browse files

fix small problem in filesep

  • Loading branch information...
1 parent 608798f commit 38bc6595d5ac1a01f1b1d3056e0ea9be97eb94a2 @Whiteknight committed Feb 2, 2010
Showing with 8 additions and 5 deletions.
  1. +0 −5 src/builtins/exit.pir
  2. +8 −0 toolbox/filesep.m
View
5 src/builtins/exit.pir
@@ -1,5 +0,0 @@
-.sub 'exit'
- .param int nargout
- .param int nargin
- exit 0
-.end
View
8 toolbox/filesep.m
@@ -0,0 +1,8 @@
+function sep = filesep()
+ os = computer('parrotos');
+ if os == "MSWin32"
+ sep = "\\";
+ else
+ sep = "/";
+ end
+end

0 comments on commit 38bc659

Please sign in to comment.