1 # enumeration converter
2 # Converts enumerations in this form (as defined in jetlib.h):
3 # /* enable Enumeration ******************************************************/
7 # static AttrValue gEnableEnum[] = {
15 start
=$
(echo "$line" | cut
-d' ' -f 1)
16 if [ "$start" = "/*" ] ; then
17 if [ $startFound = true
] ; then
23 name
=$
(echo "$line" | cut
-d' ' -f 2)
25 echo static AttrValue g
"$name"Enum
[] = \
{
26 elif [ "$start" = "#define" ] ; then
27 attr
=$
(echo "$line" | cut
-d' ' -f 2)
28 const
=$
(echo "$attr" | cut
-b 4-)
29 if [ $firstLine = false
] ; then
34 echo -n $
'\t' \
{"$attr", \""$const"\"\
}
37 if [ $startFound = true
] ; then