Branch: Tag:

1999-12-30

1999-12-30 21:57:28 by Henrik Grubbström (Grubba) <grubba@grubba.org>

mksoftcastnode() now only warns in pass 2,
since the types haven't been fixed in pass 1.

Rev: src/las.c:1.156

5:   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.155 1999/12/30 21:36:02 mast Exp $"); + RCSID("$Id: las.c,v 1.156 1999/12/30 21:57:28 grubba Exp $");      #include "language.h"   #include "interpret.h"
955:    }   #endif /* PIKE_DEBUG */    +  if (compiler_pass == 2) {    if (type == void_type_string) {    yywarning("Soft cast to void.");    return mknode(F_POP_VALUE, n, 0);
981:    * and the new type.    */    } +  } +     res = mkemptynode();    res->token = F_SOFT_CAST;    copy_shared_string(res->type,type);