Branch: Tag:

2001-02-19

2001-02-19 23:50:03 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Introduced struct pike_type in preparation for new implementation of type type.
Added copy_type() & free_type() for the same reason.
f_cast() now expects a value of type type as the first argument.

Rev: src/builtin_functions.c:1.342
Rev: src/constants.c:1.25
Rev: src/constants.h:1.16
Rev: src/docode.c:1.104
Rev: src/global.h:1.57
Rev: src/interpret.h:1.77
Rev: src/interpret_functions.h:1.45
Rev: src/language.yacc:1.224
Rev: src/las.c:1.234
Rev: src/las.h:1.47
Rev: src/opcodes.c:1.99
Rev: src/opcodes.h:1.12
Rev: src/pike_types.c:1.147
Rev: src/pike_types.h:1.48
Rev: src/program.c:1.295
Rev: src/program.h:1.116
Rev: src/svalue.h:1.76
Rev: src/treeopt.in:1.56

5:   \*/      /* -  * $Id: program.h,v 1.115 2001/02/05 21:13:11 grubba Exp $ +  * $Id: program.h,v 1.116 2001/02/19 23:50:03 grubba Exp $    */   #ifndef PROGRAM_H   #define PROGRAM_H
148:   struct identifier   {    struct pike_string *name; -  struct pike_string *type; +  struct pike_type *type;    unsigned INT8 identifier_flags; /* IDENTIFIER_??? */    unsigned INT8 run_time_type; /* PIKE_T_??? */    unsigned INT16 opt_flags; /* OPT_??? */
385:    struct pike_string *name);   int isidentifier(struct pike_string *s);   int low_define_variable(struct pike_string *name, -  struct pike_string *type, +  struct pike_type *type,    INT32 flags,    size_t offset,    INT32 run_time_type);
402:    INT32 run_time_type,    INT32 flags);   int define_variable(struct pike_string *name, -  struct pike_string *type, +  struct pike_type *type,    INT32 flags);   PMOD_EXPORT int simple_add_variable(char *name,    char *type,
432:   PMOD_EXPORT int add_object_constant(char *name,    struct object *o,    INT32 flags); - PMOD_EXPORT int add_function_constant(char *name, void (*cfun)(INT32), char * type, INT16 flags); + PMOD_EXPORT int add_function_constant(char *name, void (*cfun)(INT32), +  char * type, INT16 flags);   PMOD_EXPORT int debug_end_class(char *name, ptrdiff_t namelen, INT32 flags);   INT32 define_function(struct pike_string *name, -  struct pike_string *type, +  struct pike_type *type,    unsigned INT8 flags,    unsigned INT8 function_flags,    union idptr *func,