flex: add patch for FS#1284
This commit is contained in:
parent
cc23245c1a
commit
a5d08c7641
@ -1 +1,2 @@
|
||||
78f98fd91043a6a2a36c456c12b61704 flex-2.6.0-2.patch
|
||||
3cbbfa1554d0b75fad9f8100732454de flex-2.6.0.tar.xz
|
||||
|
@ -4,12 +4,17 @@
|
||||
|
||||
name=flex
|
||||
version=2.6.0
|
||||
release=1
|
||||
source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.xz)
|
||||
release=2
|
||||
source=(http://downloads.sourceforge.net/project/$name/$name-$version.tar.xz
|
||||
$name-$version-2.patch)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
|
||||
# fix for FS#1284
|
||||
patch -p1 -i $SRC/$name-$version-2.patch
|
||||
touch doc/flex.1
|
||||
|
||||
./configure --prefix=/usr --disable-nls
|
||||
|
||||
make
|
||||
|
19
flex/flex-2.6.0-2.patch
Normal file
19
flex/flex-2.6.0-2.patch
Normal file
@ -0,0 +1,19 @@
|
||||
commit 07d89829cce4527c7614a34642d4b2c2ef5d6005
|
||||
Author: Will Estes <westes575@gmail.com>
|
||||
Date: Fri Dec 11 09:45:14 2015 -0500
|
||||
|
||||
Commented in C style in skeleton; fixed sf#195
|
||||
|
||||
diff --git a/src/flex.skl b/src/flex.skl
|
||||
index b63c8c8..40287b6 100644
|
||||
--- a/src/flex.skl
|
||||
+++ b/src/flex.skl
|
||||
@@ -2350,7 +2350,7 @@ void yyFlexLexer::yyensure_buffer_stack(void)
|
||||
* scanner will even need a stack. We use 2 instead of 1 to avoid an
|
||||
* immediate realloc on the next call.
|
||||
*/
|
||||
- num_to_alloc = 1; // After all that talk, this was set to 1 anyways...
|
||||
+ num_to_alloc = 1; /* After all that talk, this was set to 1 anyways... */
|
||||
YY_G(yy_buffer_stack) = (struct yy_buffer_state**)yyalloc
|
||||
(num_to_alloc * sizeof(struct yy_buffer_state*)
|
||||
M4_YY_CALL_LAST_ARG);
|
Loading…
x
Reference in New Issue
Block a user