Closed wendajiang closed 1 year ago
https://github.com/westes/flex/pull/353 resolve this
After resolve mkskl.sh, new problem occur:
./stage1flex -o stage1scan.c ./scan.l
./stage1flex: fatal internal error, exec of /opt/homebrew/opt/m4/bin/m4 failed
I created Pull Request #554 to fix this problem. Please take a try.
scan.l:677:10: error: call to undeclared function 'yyinput'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if ( yyinput() != ']' ) ^ scan.l:677:10: note: did you mean 'yyunput'? scan.c:2266:17: note: 'yyunput' declared here static void yyunput ( int c, char *buf_ptr );
353 resolve this
And this pr not merged.
I'm not the maintainer but I noticed that you're reporting two bugs in the same issue. I suggest you to open another bug for the original issue.
clang 13 or gcc 12 both compile error
It look like m4 process error.
My m4 version is
and generate
cpp-flex.h
As I'm not familiar with m4, why it generate the ",\" ?