Branch: Tag:

2007-04-01

2007-04-01 18:26:34 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed newly introduced leak in yytype_error().
Changed type of F_PUSH_ARRAY nodes.
Consider adding a special type for F_PUSH_ARRAY?

Rev: src/las.c:1.382

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.381 2007/03/31 21:44:41 grubba Exp $ + || $Id: las.c,v 1.382 2007/04/01 18:26:34 grubba Exp $   */      #include "global.h"
3514:    } else {    my_yyerror("Expected: %S", s);    } +  free_string(s);    } else if (got_t) {    struct pike_string *s = describe_type(got_t);    if (flags & YYTE_IS_WARNING) {
3521:    } else {    my_yyerror("Got : %S", s);    } +  free_string(s);    }   }   
3820:    *    * It probably ought to be something similar to MANY(..., VOID).    */ -  copy_pike_type(n->type, mixed_type_string); +  n->type = index_type(CAR(n)->type, int_type_string, n);    break;       case F_AUTO_MAP_MARKER: