Changeset - r1514:fbc06178e4f4
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-03-15 21:07:09
tron@openttd.org
(svn r2018) Yet another workaround
1 file changed with 7 insertions and 2 deletions:
0 comments (0 inline, 0 general)
saveload.c
Show inline comments
 
@@ -60,12 +60,17 @@ static void NORETURN SlError(const char 
 
	longjmp(_sl.excpt, 0);
 
}
 

	
 
inline int SlReadByte(void)
 
static inline int SlReadByteInternal(void)
 
{
 
	if (_sl.bufp == _sl.bufe) SlReadFill();
 
	return *_sl.bufp++;
 
}
 

	
 
int SlReadByte(void)
 
{
 
	return SlReadByteInternal();
 
}
 

	
 
void SlWriteByte(byte v)
 
{
 
	if (_sl.bufp == _sl.bufe) SlWriteFill();
 
@@ -230,7 +235,7 @@ static void SlCopyBytes(void *ptr, size_
 
		}
 
	} else {
 
		while(length) {
 
			*p++ = SlReadByte();
 
			*p++ = SlReadByteInternal();
 
			length--;
 
		}
 
	}
0 comments (0 inline, 0 general)