3 echo "/* This file is autogenerated by" `basename $0` "*/"
5 echo "const name_func_link_t WidgetList[] ="
7 for file in ${top_srcdir}/widget.h
10 grep '^widget_constructor_t ' "$file" | cut
-d' ' -f2 | cut
-d\
; -f1 |
while read widget
12 shortname
=`echo $widget | cut -d_ -f2`
13 echo " {\"$shortname\", sizeof(\"$shortname\") - 1, $widget},"
17 echo " {NULL, 0, NULL}"