Branch: Tag:

1996-11-08

1996-11-08 04:57:40 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

object(foo), prog(), 'constant' and class foo {} implemented

Rev: src/ChangeLog:1.18
Rev: src/builtin_functions.c:1.9
Rev: src/builtin_functions.h:1.2
Rev: src/docode.c:1.3
Rev: src/interpret.c:1.8
Rev: src/language.yacc:1.6
Rev: src/lex.c:1.6
Rev: src/object.c:1.3
Rev: src/object.h:1.3
Rev: src/pike_types.c:1.5
Rev: src/program.c:1.4
Rev: src/program.h:1.2
Rev: src/testsuite.in:1.6

74:   #define IDENTIFIER_C_FUNCTION 2   #define IDENTIFIER_FUNCTION 3   #define IDENTIFIER_VARARGS 4 + #define IDENTIFIER_CONSTANT 8    -  + #define IDENTIFIER_IS_FUNCTION(X) ((X) & IDENTIFIER_FUNCTION) + #define IDENTIFIER_IS_CONSTANT(X) ((X) & IDENTIFIER_CONSTANT) + #define IDENTIFIER_IS_VARIABLE(X) (!((X) & (IDENTIFIER_FUNCTION | IDENTIFIER_CONSTANT))) +    struct identifier   {    struct pike_string *name;
185:   int define_variable(struct pike_string *name,    struct pike_string *type,    INT32 flags); + int add_constant(struct pike_string *name, +  struct svalue *c, +  INT32 flags);   INT32 define_function(struct pike_string *name,    struct pike_string *type,    INT16 flags,