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

5:   \*/   /**/   #include "global.h" - RCSID("$Id: docode.c,v 1.59 1999/12/12 19:48:38 grubba Exp $"); + RCSID("$Id: docode.c,v 1.60 1999/12/13 01:21:13 grubba Exp $");   #include "las.h"   #include "program.h"   #include "language.h"
706:    return 1;       case F_SOFT_CAST: -  /* FIXME: Should probably be some other flag */ -  if (d_flag) { +  if (runtime_options & RUNTIME_CHECK_TYPES) {    tmp1 = store_prog_string(n->type);    emit(F_STRING, tmp1);    tmp1 = do_docode(CAR(n), 0);