summaryrefslogtreecommitdiff
path: root/src/genbuiltin
blob: 9c2ba15a473b7d99d5724cdfdbfbc7fc5b73a66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

for i in $*
do
	echo "extern struct near_plugin_desc __near_builtin_$i;"
done

echo
echo "static struct near_plugin_desc *__near_builtin[] = {"

for i in $*
do
	echo "  &__near_builtin_$i,"
done

echo "  NULL"
echo "};"