All Makefile-maintained #defines, now have the macro name inserted by

Makefile, not just the value.  Comment out objects_version global
variable and friends.
(LAMBDA): Macro removed.
(LAMBDA_VOID_PERFORM): Macro removed.
(LAMBDA_ID_PERFORM): Macro removed.
(LAMBDA_BOOL_PERFORM): Macro removed.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@1416 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1996-04-17 15:02:22 +00:00
parent 543db807ab
commit 0efda452ef

View file

@ -61,33 +61,22 @@
#include <objects/objc-malloc.h> #include <objects/objc-malloc.h>
@class String; @class String;
/* The following five lines are maintained by the libobjects Makefile */ /* The following group of lines are maintained by the libobjects Makefile */
#define OBJECTS_VERSION @OBJECTS_VERSION@ #define @VERSION@
#define OBJECTS_MAJOR_VERSION @OBJECTS_MAJOR_VERSION@ #define @MAJOR_VERSION@
#define OBJECTS_MINOR_VERSION @OBJECTS_MINOR_VERSION@ #define @MINOR_VERSION@
#define OBJECTS_SUBMINOR_VERSION @OBJECTS_SUBMINOR_VERSION@ #define @SUBMINOR_VERSION@
#define OBJECTS_GCC_VERSION @OBJECTS_GCC_VERSION@ #define @GCC_VERSION@
#define @LIBRARY_NAME@
#define OBJECTS_PACKAGE_NAME libobjects #define @PACKAGE_NAME@
#if 0
extern const char objects_version[]; extern const char objects_version[];
extern const char objects_gcc_version[]; extern const char objects_gcc_version[];
#if NeXT_cc #if NeXT_cc
extern const char objects_NeXT_cc_version[]; extern const char objects_NeXT_cc_version[];
#endif #endif
#endif
#define LAMBDA(RETTYPE, ARGS, BODY) \
({RETTYPE __lambda_func ARGS BODY __lambda_func;})
#define LAMBDA_VOID_PERFORM(SELECTOR) \
LAMBDA(void, (id _o), {[_o perform: SELECTOR];})
#define LAMBDA_ID_PERFORM(SELECTOR) \
LAMBDA(id, (id _o), {return [_o perform: SELECTOR];})
#define LAMBDA_BOOL_PERFORM(SELECTOR) \
LAMBDA(BOOL, (id _o), {if ([_o perform:SELECTOR]) return YES; else return NO;})
#ifndef MAX #ifndef MAX
#define MAX(a,b) \ #define MAX(a,b) \