Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by Tom Ngo
Thu, 08 Feb 1990 06:17
PlotFile.cc in libg++ 1.36.3 on a Convex
Author: Tom Ngo
Date: Thu, 08 Feb 1990 06:17
Date: Thu, 08 Feb 1990 06:17
66 lines
1918 bytes
1918 bytes
In general, the plot(5) device-independent graphics format calls
for two-byte integer coordinates. On a Convex, the byte ordering
of these integers is reversed, necessitating the patch below.
--Tom Ngo
ngo@harvard.edu
===========================================================================
*** PlotFile.cc- Thu Feb 8 01:12:50 1990
--- PlotFile.cc Thu Feb 8 01:13:12 1990
***************
*** 89,94
PlotFile& PlotFile:: operator<<(int x)
{
File::put((char)(x&0377));
File::put((char)(x>>8));
return *this;
--- 89,96 -----
PlotFile& PlotFile:: operator<<(int x)
{
+ #if defined(convex)
+ File::put((char)(x>>8));
File::put((char)(x&0377));
#else
File::put((char)(x&0377));
***************
*** 90,95
PlotFile& PlotFile:: operator<<(int x)
{
File::put((char)(x&0377));
File::put((char)(x>>8));
return *this;
}
--- 92,99 -----
#if defined(convex)
File::put((char)(x>>8));
File::put((char)(x&0377));
+ #else
+ File::put((char)(x&0377));
File::put((char)(x>>8));
#endif
return *this;
***************
*** 91,96
{
File::put((char)(x&0377));
File::put((char)(x>>8));
return *this;
}
--- 95,101 -----
#else
File::put((char)(x&0377));
File::put((char)(x>>8));
+ #endif
return *this;
}
===========================================================================
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads