mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 02:30:36 +02:00
b2/lang.y (provider): don't allow provider to be redefined
This commit is contained in:
parent
0ba0abb74b
commit
994ed00a51
@ -590,6 +590,8 @@ provider:
|
|||||||
WORD WORD float float TOK_NL
|
WORD WORD float float TOK_NL
|
||||||
{
|
{
|
||||||
$$ = provider_add($1);
|
$$ = provider_add($1);
|
||||||
|
if ($$->curr)
|
||||||
|
yyerrorf("provider %s is already defined", $1);
|
||||||
$$->curr = currency_add($2);
|
$$->curr = currency_add($2);
|
||||||
$$->shipping = $3;
|
$$->shipping = $3;
|
||||||
$$->minimum = $4;
|
$$->minimum = $4;
|
||||||
|
Loading…
Reference in New Issue
Block a user