code comments

svn path=/trunk/; revision=9469
This commit is contained in:
Martin Fuchs 2004-05-22 13:18:45 +00:00
parent 86ada6ab1c
commit 4307e3115e
2 changed files with 4 additions and 2 deletions

View file

@ -108,7 +108,7 @@ CFG=make_explorer - Win32 bjam
# PROP Use_Debug_Libraries 0 # PROP Use_Debug_Libraries 0
# PROP Output_Dir "URelease" # PROP Output_Dir "URelease"
# PROP Intermediate_Dir "URelease" # PROP Intermediate_Dir "URelease"
# PROP Cmd_Line "make -f Makefile.MinGW UNICODE=1" # PROP Cmd_Line "msdevfilt -gcc make -f Makefile.MinGW UNICODE=1"
# PROP Rebuild_Opt "clean all" # PROP Rebuild_Opt "clean all"
# PROP Target_File "explorer.exe" # PROP Target_File "explorer.exe"
# PROP Bsc_Name "" # PROP Bsc_Name ""

View file

@ -213,6 +213,7 @@ typedef __gnu_cxx::stdio_filebuf<char> STDIO_FILEBUF;
typedef std::filebuf STDIO_FILEBUF; typedef std::filebuf STDIO_FILEBUF;
#endif #endif
/// input file stream with ANSI/UNICODE file names
struct tifstream : public std::istream struct tifstream : public std::istream
{ {
typedef std::istream super; typedef std::istream super;
@ -239,6 +240,7 @@ protected:
STDIO_FILEBUF _buf; STDIO_FILEBUF _buf;
}; };
/// output file stream with ANSI/UNICODE file names
struct tofstream : public std::ostream struct tofstream : public std::ostream
{ {
typedef std::ostream super; typedef std::ostream super;
@ -295,7 +297,7 @@ struct String_from_XML_Char : public String
inline bool operator==(const String& s1, const char* s2) inline bool operator==(const String& s1, const char* s2)
{ {
LPCWSTR p = s1; LPCWSTR p = s1;
const unsigned char* q = (const unsigned char *) s2; const unsigned char* q = (const unsigned char*)s2;
while(*p && *q) while(*p && *q)
if (*p++ != *q++) if (*p++ != *q++)