Branch: Tag:

2004-11-05

2004-11-05 16:21:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>

my_yyerror() now uses string_builder_vsprintf().
Corrected the arguments for a lot of my_yyerror() invocations.

Rev: src/language.yacc:1.350
Rev: src/las.c:1.352
Rev: src/pike_types.c:1.239
Rev: src/program.c:1.575
Rev: src/treeopt.in:1.75

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: 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"
4565:    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);