From 6b1354be9003ec6f3a7e41907d21f4fe7f70347d Mon Sep 17 00:00:00 2001 From: mccallum Date: Sun, 5 Jan 1997 22:42:49 +0000 Subject: [PATCH] Add comment and move around headers for easier reading. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1986 72102866-910b-0410-8b05-ffd578937521 --- Testing/fref.m | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Testing/fref.m b/Testing/fref.m index 26d43b4a8..57ee158b9 100644 --- a/Testing/fref.m +++ b/Testing/fref.m @@ -1,14 +1,11 @@ /* Test NSArchiver on encoding of self-referential forward references. */ -#ifdef NX_CURRENT_COMPILER_RELEASE -#include -#include -#include -#else -#include -#include -#include -#endif +/* This tests an obscure, but important feature of archiving. GNUstep + implements it correctly; NeXT does not. When running in + NeXT-compatibility mode, (i.e. setting TRY_GNU_ARCHIVING to 0, and + setting SELF_REF_DECODE_SUBSTITUTES to 1) libgnustep-base crashes + when trying to use this feature. When the identical test is + compiled on a NeXTSTEP machine, it also crashes! */ /* Beginning of some parameters to vary. */ /* Both 1 works; both 0 works. 0 and 1 crash, as does NeXT's */ @@ -30,6 +27,17 @@ #include #endif /* GNU_ARCHIVING */ + +#ifdef NX_CURRENT_COMPILER_RELEASE +#include +#include +#include +#else +#include +#include +#include +#endif + /* Set to 1 to use text coding instead of binary coding */ #define TEXTCSTREAM 1 #if TEXTCSTREAM