You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
528 B
11 lines
528 B
flexml -SH -a skin.act skin.dtd
|
|
|
|
sed -e 's/\([SE]Tag_.*\)(void)/\1(void *pContext)/' \
|
|
-e 's/int main().*//' skin.c > skin.c.new && mv -f skin.c.new skin.c
|
|
sed -e 's/\([SE]Tag_.*\)(void)/\1(void*)/' \
|
|
-e 's/extern int yylex(void)/extern int yylex(void*)/' \
|
|
-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
|
|
|
|
|
|
flex -oflex.c -B -L skin.l
|
|
sed -e 's/\([SE]Tag_[^()]*\)()/\1(pContext)/g' flex.c > flex.c.new && mv -f flex.c.new flex.c
|
|
|