Describe all operations of AddBackslash()

This commit is contained in:
Stas Degteff 2011-02-17 19:09:22 +00:00
parent 5bd7fc2a28
commit 13d2b4f059
2 changed files with 4 additions and 0 deletions

View File

@ -120,6 +120,8 @@
#define GOLD_SHELL_ENV "SHELL" #define GOLD_SHELL_ENV "SHELL"
#endif #endif
#define GOLD_ALL_SLASH_STR "/\\" // GOLD_SLASH_STR GOLD_WRONG_SLASH_STR
inline bool isslash(char c) { return (c == GOLD_SLASH_CHR) or (c == GOLD_WRONG_SLASH_CHR); } inline bool isslash(char c) { return (c == GOLD_SLASH_CHR) or (c == GOLD_WRONG_SLASH_CHR); }
@ -192,6 +194,7 @@ void MakePathname(char* pathname, const char* path, const char* name);
void MakePathname(std::string& pathname, const std::string& path, const std::string& name); void MakePathname(std::string& pathname, const std::string& path, const std::string& name);
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS) // Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
// Replace wrong directory-delimiter character with good.
char* AddBackslash(char* p); char* AddBackslash(char* p);
std::string& AddBackslash(std::string& p); std::string& AddBackslash(std::string& p);

View File

@ -57,6 +57,7 @@
// ------------------------------------------------------------------ // ------------------------------------------------------------------
// Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS) // Adds the directory-delimiter character into end of string ('\\' in DOS-based, '/' in unix-based OS)
// Replace wrong directory-delimiter character with good.
char* AddBackslash(char* p) { char* AddBackslash(char* p) {