(svn r2018) Yet another workaround
authortron
Tue, 15 Mar 2005 21:07:09 +0000
changeset 1514 18dda44cfa72
parent 1513 3f1e9834f991
child 1515 f466d02bd936
(svn r2018) Yet another workaround
saveload.c
--- a/saveload.c	Tue Mar 15 20:07:46 2005 +0000
+++ b/saveload.c	Tue Mar 15 21:07:09 2005 +0000
@@ -60,12 +60,17 @@
 	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 @@
 		}
 	} else {
 		while(length) {
-			*p++ = SlReadByte();
+			*p++ = SlReadByteInternal();
 			length--;
 		}
 	}