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

184:   /* This is the grammar definition of Pike. */      #include "global.h" - RCSID("$Id: language.yacc,v 1.142 1999/12/13 00:22:49 grubba Exp $"); + RCSID("$Id: language.yacc,v 1.143 1999/12/13 01:21:12 grubba Exp $");   #ifdef HAVE_MEMORY_H   #include <memory.h>   #endif
691:    my_yyerror("Missing name for argument %d.",e);    } else {    /* FIXME: Should probably use some other flag. */ -  if (d_flag && (compiler_pass == 2) && +  if ((runtime_options & RUNTIME_CHECK_TYPES) && +  (compiler_pass == 2) &&    (compiler_frame->variable[e].type != mixed_type_string)) {    node *local_node;