| 1 |
--- Io-2007-10-10/libs/iovm/source/IoState_inline.h 2007-09-23 04:09:53.000000000 +0200
|
| 2 |
+++ Io-2007-10-10.new/libs/iovm/source/IoState_inline.h 2008-01-12 11:57:52.000000000 +0100
|
| 3 |
@@ -3,6 +3,9 @@
|
| 4 |
docLicense("BSD revised")
|
| 5 |
*/
|
| 6 |
|
| 7 |
+#ifndef __IOSTATE_INLINE_H
|
| 8 |
+#define __IOSTATE_INLINE_H
|
| 9 |
+
|
| 10 |
#ifdef IOSTATE_C
|
| 11 |
#define IO_IN_C_FILE
|
| 12 |
#endif
|
| 13 |
@@ -33,8 +36,6 @@
|
| 14 |
#define IOFAILURE(self) IOFALSE(self)
|
| 15 |
#define ISFAILURE(self) ISFALSE(self)
|
| 16 |
|
| 17 |
-inline IoObject *IOBOOL(IoObject *self, int b);
|
| 18 |
-
|
| 19 |
#if !defined(IoObjectDataDefined)
|
| 20 |
typedef struct IoObjectData IoObjectData;
|
| 21 |
#endif
|
| 22 |
@@ -59,7 +60,7 @@
|
| 23 |
return self == IOSTATE->ioNil || self == IOSTATE->ioFalse;
|
| 24 |
}
|
| 25 |
|
| 26 |
-IOINLINE IoObject *IOBOOL(IoObject *self, int b)
|
| 27 |
+static inline IoObject *IOBOOL(IoObject *self, int b)
|
| 28 |
{
|
| 29 |
return b ? IOTRUE(self) : IOFALSE(self);
|
| 30 |
}
|
| 31 |
@@ -322,6 +323,8 @@
|
| 32 |
}
|
| 33 |
|
| 34 |
|
| 35 |
+#endif /* IO_DECLARE_INLINES */
|
| 36 |
+
|
| 37 |
#undef IO_IN_C_FILE
|
| 38 |
-#endif
|
| 39 |
|
| 40 |
+#endif
|