pike.git / src / pike_types.c

version» Context lines:

pike.git/src/pike_types.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: pike_types.c,v 1.238 2004/10/30 11:38:27 mast Exp $ + || $Id: pike_types.c,v 1.239 2004/11/05 16:21:23 grubba Exp $   */      #include "global.h"   #include <ctype.h>   #include "svalue.h"   #include "pike_types.h"   #include "stralloc.h"   #include "stuff.h"   #include "array.h"   #include "program.h"
pike.git/src/pike_types.c:4558:   #endif /* 0 */    {    struct pike_string *s1, *s2;    s1 = describe_type(type_a);    s2 = describe_type(type_b);    if(flags & YYTE_IS_WARNING)    {    yywarning("Expected: %s",s1->str);    yywarning("Got : %s",s2->str);    }else{ -  my_yyerror("Expected: %s",s1->str); -  my_yyerror("Got : %s",s2->str); +  my_yyerror("Expected: %S", s1); +  my_yyerror("Got : %S", s2);    }    free_string(s1);    free_string(s2);    }       /* Protect against circularities. */    if (BEGIN_CYCLIC(type_a, type_b)) {    END_CYCLIC();    return;    }