summaryrefslogtreecommitdiff
path: root/src/genbuiltin
diff options
context:
space:
mode:
authorUlf <ulf.hofemeier@intel.com>2012-10-15 08:48:33 -0700
committerUlf <ulf.hofemeier@intel.com>2012-10-15 08:48:33 -0700
commitea5e13a057fdebdcc293c9da0b6544187ed0596f (patch)
treeb56b2772983e28566121a5109300be28eeba6add /src/genbuiltin
downloadneard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.tar.gz
neard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.tar.bz2
neard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.zip
Diffstat (limited to 'src/genbuiltin')
-rwxr-xr-xsrc/genbuiltin17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/genbuiltin b/src/genbuiltin
new file mode 100755
index 0000000..9c2ba15
--- /dev/null
+++ b/src/genbuiltin
@@ -0,0 +1,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 "};"