pike.git / src / las.c

version» Context lines:

pike.git/src/las.c:1:   /*   || 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.383 2007/04/02 12:58:39 grubba Exp $ + || $Id: las.c,v 1.384 2007/04/02 17:02:20 grubba Exp $   */      #include "global.h"   #include "interpret.h"   #include "las.h"   #include "array.h"   #include "object.h"   #include "stralloc.h"   #include "dynamic_buffer.h"   #include "lex.h"
pike.git/src/las.c:3493:    push_type(T_FUNCTION);    }   }      void yytype_error(char *msg, struct pike_type *expected_t,    struct pike_type *got_t, unsigned int flags)   {    if (msg)    {    if (flags & YYTE_IS_WARNING) -  yywarning("%s", msg); +  yywarning("%S", msg);    else    yyerror(msg);    }       if (expected_t && got_t) {    yyexplain_nonmatching_types(expected_t, got_t, flags);    } else if (expected_t) {    struct pike_string *s = describe_type(expected_t);    if (flags & YYTE_IS_WARNING) { -  yywarning("Expected: %s", s->str); +  yywarning("Expected: %S", s);    } 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) { -  yywarning("Got : %s", s->str); +  yywarning("Got : %S", s);    } else {    my_yyerror("Got : %S", s);    }    free_string(s);    }   }      static struct pike_string *get_name_of_function(node *n)   {    struct pike_string *name = NULL;