1 flexml -SH -a skin.act skin.dtd
3 sed -e 's/\([SE]Tag_.*\)(void)/\1(void *pContext)/' \
4 -e 's/int main().*//' skin.c > skin.c.new && mv -f skin.c.new skin.c
5 sed -e 's/\([SE]Tag_.*\)(void)/\1(void*)/' \
6 -e 's/extern int yylex(void)/extern int yylex(void*)/' \
7 -e 's/\/\* XML processor entry point. \*\//#define YY_DECL int yylex(void *pContext)/' skin.h > skin.h.new && mv -f skin.h.new skin.h
10 flex -oflex.c -BLs skin.l
11 sed -e 's/\([SE]Tag_[^()]*\)()/\1(pContext)/g' flex.c > flex.c.new && mv -f flex.c.new flex.c