Branch: Tag:

1999-12-13

1999-12-13 01:21:15 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added new class of options: runtime_options.
Moved -dT to -rT.
Implemented -rt to enable runtime checking of types.

Rev: src/docode.c:1.60
Rev: src/interpreter.h:1.24
Rev: src/language.yacc:1.143
Rev: src/main.c:1.79
Rev: src/main.h:1.12

1299: Inside #if defined(PIKE_DEBUG)
   fatal("Argument 1 to soft_cast isn't a string!\n");    }   #endif /* PIKE_DEBUG */ -  /* FIXME: Should probably be some other flag */ -  if (d_flag) { +  if (runtime_options & RUNTIME_CHECK_TYPES) {    struct pike_string *sval_type = get_type_of_svalue(sp-1);    if (!pike_types_le(sval_type, sp[-2].u.string)) {    struct pike_string *t;