diff options
author | wlestes <wlestes> | 2001-06-08 12:42:57 +0000 |
---|---|---|
committer | wlestes <wlestes> | 2001-06-08 12:42:57 +0000 |
commit | 3ec26842ab724be18f2ea901ffd6df034ab9e876 (patch) | |
tree | d883e2d1789cf772ff27bae8a7cd7d49e50ad675 | |
parent | 5b3a6bad293151e79882b8d2eeda88116f294b1a (diff) | |
download | flex-3ec26842ab724be18f2ea901ffd6df034ab9e876.tar.gz |
save errno as per Theo de Raadt
-rw-r--r-- | flex.skl | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -6,6 +6,7 @@ %- #include <stdio.h> +#include <errno.h> %* @@ -1437,6 +1438,8 @@ void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file ) %* { + int oerrno = errno; + yy_flush_buffer( b YY_CALL_LAST_ARG); b->yy_input_file = file; @@ -1455,6 +1458,7 @@ void yyFlexLexer::yy_init_buffer( YY_BUFFER_STATE b, istream* file ) %+ b->yy_is_interactive = 0; %* + errno = oerrno; } |