Branch: Tag:

2003-12-03

2003-12-03 09:36:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added a few more macros from Pike 7.5.

Rev: src/program.h:1.178

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: program.h,v 1.177 2003/10/20 13:14:28 mast Exp $ + || $Id: program.h,v 1.178 2003/12/03 09:36:36 grubba Exp $   */      #ifndef PROGRAM_H
95:   #endif      /* Byte-code method identification. */ + #define PIKE_BYTECODE_PORTABLE -1 /* Only used by the codec. */   #define PIKE_BYTECODE_DEFAULT 0   #define PIKE_BYTECODE_GOTO 1   #define PIKE_BYTECODE_SPARC 2
149:    ptrdiff_t offset;   };    + #define IDENTIFIER_VARIABLE 0   #define IDENTIFIER_PIKE_FUNCTION 1   #define IDENTIFIER_C_FUNCTION 2   #define IDENTIFIER_FUNCTION 3   #define IDENTIFIER_CONSTANT 4 -  + #define IDENTIFIER_TYPE_MASK 7 +    #define IDENTIFIER_VARARGS 8 /* Used for functions only. */   #define IDENTIFIER_HAS_BODY 16 /* Function has a body (set already in pass 1). */   #define IDENTIFIER_SCOPED 32 /* This is used for local functions only */
161:      #define IDENTIFIER_IS_FUNCTION(X) ((X) & IDENTIFIER_FUNCTION)   #define IDENTIFIER_IS_PIKE_FUNCTION(X) ((X) & IDENTIFIER_PIKE_FUNCTION) + #define IDENTIFIER_IS_C_FUNCTION(X) ((X) & IDENTIFIER_C_FUNCTION)   #define IDENTIFIER_IS_CONSTANT(X) ((X) & IDENTIFIER_CONSTANT)   #define IDENTIFIER_IS_VARIABLE(X) (!((X) & (IDENTIFIER_FUNCTION | IDENTIFIER_CONSTANT)))   #define IDENTIFIER_IS_ALIAS(X) ((X) & IDENTIFIER_ALIAS)