pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*\   ||| This file a part of Pike, and is copyright by Fredrik Hubinette   ||| Pike is distributed as GPL (General Public License)   ||| See the files COPYING and DISCLAIMER for more information.   \*/   /**/   #include "global.h" - RCSID("$Id: las.c,v 1.126 1999/11/22 14:56:13 grubba Exp $"); + RCSID("$Id: las.c,v 1.127 1999/11/22 15:04:19 grubba Exp $");      #include "language.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"   #include "pike_types.h"
pike.git/src/las.c:2249:    yyerror("switch(): Conditional expression is void.");    } else if(!match_types(CAR(n)->type,mixed_type_string))    yyerror("Bad switch expression.");    copy_shared_string(n->type,void_type_string);    break;       case F_CONSTANT:    n->type = get_type_of_svalue(& n->u.sval);    break;    +  case F_SSCANF: +  MAKE_CONSTANT_SHARED_STRING(n->type, tIntPos); +  break; +  +  case F_UNDEFINED: +  MAKE_CONSTANT_SHARED_STRING(n->type, tInt0); +  break; +     case F_ARG_LIST:    if (n->parent) {    /* Propagate the changed type all the way up to the apply node. */    n->parent->node_info |= OPT_TYPE_NOT_FIXED;    }    /* FALL_THROUGH */    case F_COMMA_EXPR:    if(!CAR(n) || CAR(n)->type==void_type_string)    {    if(CDR(n))
pike.git/src/las.c:2274:       if(!CDR(n) || CDR(n)->type==void_type_string)    {    if(CAR(n))    copy_shared_string(n->type,CAR(n)->type);    else    copy_shared_string(n->type,void_type_string);    break;    }    -  case F_SSCANF: -  MAKE_CONSTANT_SHARED_STRING(n->type, tIntPos); -  break; -  -  case F_UNDEFINED: -  MAKE_CONSTANT_SHARED_STRING(n->type, tInt0); -  break; -  +     /* FALL_THROUGH */    case F_MAGIC_INDEX:    case F_MAGIC_SET_INDEX:    case F_CATCH:    /* FIXME: FALL_THROUGH */    default:    copy_shared_string(n->type,mixed_type_string);    }       if (n->type != old_type) {