diff options
author | Ulf <ulf.hofemeier@intel.com> | 2012-10-15 08:48:33 -0700 |
---|---|---|
committer | Ulf <ulf.hofemeier@intel.com> | 2012-10-15 08:48:33 -0700 |
commit | ea5e13a057fdebdcc293c9da0b6544187ed0596f (patch) | |
tree | b56b2772983e28566121a5109300be28eeba6add /src/genbuiltin | |
download | neard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.tar.gz neard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.tar.bz2 neard-ea5e13a057fdebdcc293c9da0b6544187ed0596f.zip |
Importing files for neard 0.7submit/trunk/20121015.154845accepted/trunk/20121015.153124
Diffstat (limited to 'src/genbuiltin')
-rwxr-xr-x | src/genbuiltin | 17 |
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 "};" |