Branch: Tag:

2007-04-13

2007-04-13 17:34:17 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added soft_cast().

Rev: src/pike_types.h:1.104

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: pike_types.h,v 1.103 2007/04/06 11:12:13 grubba Exp $ + || $Id: pike_types.h,v 1.104 2007/04/13 17:34:17 grubba Exp $   */      #ifndef PIKE_TYPES_H
75:   #define CALL_LAST_ARG 0x0002 /* This is the last argument. */   #define CALL_7_6 0x0004 /* Pike 7.6 compatibility mode. */    + /* +  * soft_cast() flags +  */ + #define SOFT_WEAKER 0x0001 /* Soft cast to a weaker type. */ +    void debug_free_type(struct pike_type *t);   #ifdef DEBUG_MALLOC   #define copy_pike_type(D, S) add_ref((struct pike_type *)debug_malloc_pass(D = (S)))
234:    struct pike_type *type,    int strict);   struct pike_type *get_argument_type(struct pike_type *fun, int arg_no); + struct pike_type *soft_cast(struct pike_type *soft_type, +  struct pike_type *orig_type, +  int flags);   struct pike_type *low_new_check_call(struct pike_type *fun_type,    struct pike_type *arg_type,    INT32 flags);