mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
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
This commit is contained in:
parent
aab38d4351
commit
6b1354be90
1 changed files with 17 additions and 9 deletions
|
@ -1,14 +1,11 @@
|
||||||
/* Test NSArchiver on encoding of self-referential forward references. */
|
/* Test NSArchiver on encoding of self-referential forward references. */
|
||||||
|
|
||||||
#ifdef NX_CURRENT_COMPILER_RELEASE
|
/* This tests an obscure, but important feature of archiving. GNUstep
|
||||||
#include <foundation/NSArchiver.h>
|
implements it correctly; NeXT does not. When running in
|
||||||
#include <foundation/NSArray.h>
|
NeXT-compatibility mode, (i.e. setting TRY_GNU_ARCHIVING to 0, and
|
||||||
#include <foundation/NSAutoreleasePool.h>
|
setting SELF_REF_DECODE_SUBSTITUTES to 1) libgnustep-base crashes
|
||||||
#else
|
when trying to use this feature. When the identical test is
|
||||||
#include <Foundation/NSArchiver.h>
|
compiled on a NeXTSTEP machine, it also crashes! */
|
||||||
#include <Foundation/NSArray.h>
|
|
||||||
#include <Foundation/NSAutoreleasePool.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Beginning of some parameters to vary. */
|
/* Beginning of some parameters to vary. */
|
||||||
/* Both 1 works; both 0 works. 0 and 1 crash, as does NeXT's */
|
/* Both 1 works; both 0 works. 0 and 1 crash, as does NeXT's */
|
||||||
|
@ -30,6 +27,17 @@
|
||||||
#include <gnustep/base/Archiver.h>
|
#include <gnustep/base/Archiver.h>
|
||||||
#endif /* GNU_ARCHIVING */
|
#endif /* GNU_ARCHIVING */
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef NX_CURRENT_COMPILER_RELEASE
|
||||||
|
#include <foundation/NSArchiver.h>
|
||||||
|
#include <foundation/NSArray.h>
|
||||||
|
#include <foundation/NSAutoreleasePool.h>
|
||||||
|
#else
|
||||||
|
#include <Foundation/NSArchiver.h>
|
||||||
|
#include <Foundation/NSArray.h>
|
||||||
|
#include <Foundation/NSAutoreleasePool.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Set to 1 to use text coding instead of binary coding */
|
/* Set to 1 to use text coding instead of binary coding */
|
||||||
#define TEXTCSTREAM 1
|
#define TEXTCSTREAM 1
|
||||||
#if TEXTCSTREAM
|
#if TEXTCSTREAM
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue