mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
*** empty log message ***
This commit is contained in:
parent
d6f8bf83c3
commit
d2a5221f4a
@ -10,13 +10,19 @@
|
||||
// risk infinite recursion.
|
||||
#include <assert.h>
|
||||
|
||||
#if defined(WIN32_VC)
|
||||
#define WINDOWS_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#undef WINDOWS_LEAN_AND_MEAN
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STREAMSIZE
|
||||
// Some compilers--notably SGI--don't define this for us.
|
||||
typedef int streamsize;
|
||||
#endif
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MultiplexStreamBuf::Output::wrinte_string
|
||||
// Function: MultiplexStreamBuf::Output::write_string
|
||||
// Access: Public
|
||||
// Description: Dumps the indicated string to the appropriate place.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -29,12 +35,13 @@ write_string(const string &str) {
|
||||
break;
|
||||
|
||||
case OT_system_debug:
|
||||
#ifdef WIN32_VC
|
||||
OutputDebugString(str.c_str());
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
static char test[1024];
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: MultiplexStreamBuf::Constructor
|
||||
// Access: Public
|
||||
@ -43,6 +50,8 @@ static char test[1024];
|
||||
MultiplexStreamBuf::
|
||||
MultiplexStreamBuf() {
|
||||
#ifndef WIN32_VC
|
||||
// These lines, which are essential on Irix and Linux, seem to be
|
||||
// unnecessary and not understood on Windows.
|
||||
allocate();
|
||||
setp(base(), ebuf());
|
||||
#endif
|
||||
|
@ -9,7 +9,6 @@
|
||||
|
||||
TrueClock *TrueClock::_global_ptr = NULL;
|
||||
|
||||
|
||||
#if defined(WIN32_VC)
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -78,7 +77,6 @@ TrueClock() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
#elif defined(PENV_PS2)
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
@ -135,7 +133,7 @@ TrueClock() {
|
||||
}
|
||||
|
||||
|
||||
#else
|
||||
#elif !defined(WIN32_VC)
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
@ -36,7 +36,7 @@ has_newline() const {
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: LineStreamBuf::write_chars
|
||||
// Access: Public
|
||||
// Access: Private
|
||||
// Description: An internal function called by sync() and overflow()
|
||||
// to store one or more characters written to the stream
|
||||
// into the memory buffer.
|
||||
|
@ -58,6 +58,7 @@ int LineStreamBuf::
|
||||
sync() {
|
||||
streamsize n = pptr() - pbase();
|
||||
write_chars(pbase(), n);
|
||||
pbump(-n); // Reset pptr().
|
||||
return 0; // EOF to indicate write full.
|
||||
}
|
||||
|
||||
@ -81,6 +82,5 @@ overflow(int ch) {
|
||||
write_chars(&c, 1);
|
||||
}
|
||||
|
||||
pbump(-n); // Reset pptr().
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user