Преглед изворни кода

Revert stupid commit of mine

rdb пре 16 година
родитељ
комит
823069d4a6
1 измењених фајлова са 22 додато и 0 уклоњено
  1. 22 0
      direct/src/plugin/mkdir_complete.cxx

+ 22 - 0
direct/src/plugin/mkdir_complete.cxx

@@ -23,6 +23,26 @@
 #endif
 
 
+
+////////////////////////////////////////////////////////////////////
+//     Function: is_pathsep
+//  Description: Returns true if the indicated character is a path
+//               separator character (e.g. slash or backslash), false
+//               otherwise.
+////////////////////////////////////////////////////////////////////
+static inline bool
+is_pathsep(char ch) {
+  if (ch == '/') {
+    return true;
+  }
+#ifdef _WIN32
+  if (ch == '\\') {
+    return true;
+  }
+#endif
+  return false;
+}
+
 ////////////////////////////////////////////////////////////////////
 //     Function: get_dirname
 //  Description: Returns the directory component of the indicated
@@ -42,6 +62,8 @@ get_dirname(const string &filename) {
   return string();
 }
 
+
+
 ////////////////////////////////////////////////////////////////////
 //     Function: mkdir_complete
 //  Description: Creates a new directory, with normal access