From 164ab2393ec84110965d5f2158d72b375609b94e Mon Sep 17 00:00:00 2001 From: mccallum Date: Fri, 1 Mar 1996 15:57:32 +0000 Subject: [PATCH] (STRINGIFY): New macro defined, if not defined already. (XSTRINGIFY): Likewise. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1017 72102866-910b-0410-8b05-ffd578937521 --- Headers/gnustep/base/preface.h.in | 5 +++++ Headers/gnustep/base/stdobjects.h.in | 5 +++++ Source/objects/stdobjects.h.in | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Headers/gnustep/base/preface.h.in b/Headers/gnustep/base/preface.h.in index 64d27f45c..5d52741fa 100644 --- a/Headers/gnustep/base/preface.h.in +++ b/Headers/gnustep/base/preface.h.in @@ -103,6 +103,11 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;}) _a < _b ? _a : _b; }) #endif +#ifndef STRINGIFY +#define STRINGIFY(s) XSTRINGIFY(s) +#define XSTRINGIFY(s) #s +#endif + #ifndef PTR2LONG #define PTR2LONG(P) (((char*)(P))-(char*)0) #endif diff --git a/Headers/gnustep/base/stdobjects.h.in b/Headers/gnustep/base/stdobjects.h.in index 64d27f45c..5d52741fa 100644 --- a/Headers/gnustep/base/stdobjects.h.in +++ b/Headers/gnustep/base/stdobjects.h.in @@ -103,6 +103,11 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;}) _a < _b ? _a : _b; }) #endif +#ifndef STRINGIFY +#define STRINGIFY(s) XSTRINGIFY(s) +#define XSTRINGIFY(s) #s +#endif + #ifndef PTR2LONG #define PTR2LONG(P) (((char*)(P))-(char*)0) #endif diff --git a/Source/objects/stdobjects.h.in b/Source/objects/stdobjects.h.in index 64d27f45c..5d52741fa 100644 --- a/Source/objects/stdobjects.h.in +++ b/Source/objects/stdobjects.h.in @@ -103,6 +103,11 @@ LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;}) _a < _b ? _a : _b; }) #endif +#ifndef STRINGIFY +#define STRINGIFY(s) XSTRINGIFY(s) +#define XSTRINGIFY(s) #s +#endif + #ifndef PTR2LONG #define PTR2LONG(P) (((char*)(P))-(char*)0) #endif