1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-12-23 08:02:04 +02:00

b2/lang.y (provider): don't allow provider to be redefined

This commit is contained in:
Werner Almesberger 2012-06-02 07:55:23 -03:00
parent 0ba0abb74b
commit 994ed00a51

View File

@ -590,6 +590,8 @@ provider:
WORD WORD float float TOK_NL
{
$$ = provider_add($1);
if ($$->curr)
yyerrorf("provider %s is already defined", $1);
$$->curr = currency_add($2);
$$->shipping = $3;
$$->minimum = $4;