build system: prevent duplicate applet names
authorRon Yorston <rmy@pobox.com>
Sun, 25 Nov 2018 11:46:39 +0000 (11:46 +0000)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 27 Nov 2018 09:47:06 +0000 (10:47 +0100)
commit2d217799e8f23514ad3be6a951aa928c265bc6a4
treee9ecd255767ec33df1bfe24c5f551d14de07063c
parent7b42f8fc76d78fe9c6b0cbe15e1425f2fd9fb5e8
build system: prevent duplicate applet names

The embedded script feature makes it easier to create applets with
duplicate names.  Currently in such cases the build succeeds but
the resulting executable doesn't work as the developer intended.

Catch duplicate names when the applet tables are being generated
and make the build fail.

Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
applets/applet_tables.c