diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-10-24 20:21:48 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2018-10-25 18:01:07 +0200 |
commit | e0faa716b40daed3ab56f2da3493d17e8d000cc4 (patch) | |
tree | b1e9a6f45a7fc5536fd8f85dcb705be90df7c05d /community/spim/flex-2.6-compat.patch | |
parent | 5bbf258d928ed4e36e02f83526ae831ed4d8a409 (diff) | |
download | aports-e0faa716b40daed3ab56f2da3493d17e8d000cc4.tar.bz2 aports-e0faa716b40daed3ab56f2da3493d17e8d000cc4.tar.xz |
community/spim: fix parsing with flex >= 2.6
Taken from Debian.
Diffstat (limited to 'community/spim/flex-2.6-compat.patch')
-rw-r--r-- | community/spim/flex-2.6-compat.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/community/spim/flex-2.6-compat.patch b/community/spim/flex-2.6-compat.patch new file mode 100644 index 0000000000..596e76bb3f --- /dev/null +++ b/community/spim/flex-2.6-compat.patch @@ -0,0 +1,20 @@ +Description: Fix parsing when built with flex 2.6 +Origin: https://sourceforge.net/p/spimsimulator/code/679/ +Bug: https://sourceforge.net/p/spimsimulator/bugs/66/ +Bug-Debian: https://bugs.debian.org/860011 +Last-Update: 2017-04-20 + +Index: CPU/scanner.l +=================================================================== +--- CPU/scanner.l ++++ CPU/scanner.l +@@ -316,7 +316,8 @@ initialize_scanner (FILE *in_file) + yyin = in_file; + #ifdef FLEX_SCANNER + yyrestart(in_file); +-#if (YY_FLEX_MAJOR_VERSION==2 && YY_FLEX_MINOR_VERSION==5 && YY_FLEX_SUBMINOR_VERSION>=33) ++#define YY_FLEX_VERSION (YY_FLEX_MAJOR_VERSION * 1000 + YY_FLEX_MINOR_VERSION * 100 + YY_FLEX_SUBMINOR_VERSION) ++#if YY_FLEX_VERSION >= 2533 + /* flex 2.5.33 flipped the polarity of this flag (sigh) */ + yy_init = 0; + #else |