SHA256
1
0
forked from pool/bison

Accepting request 201240 from home:AndreasSchwab:ff

- location-eof-check.patch: Fix broken EOF check

OBS-URL: https://build.opensuse.org/request/show/201240
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/bison?expand=0&rev=32
This commit is contained in:
Ismail Dönmez 2013-09-28 08:18:17 +00:00 committed by Git OBS Bridge
parent cf2ae47823
commit 9a8cec91e2
3 changed files with 20 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 27 20:13:38 UTC 2013 - schwab@linux-m68k.org
- location-eof-check.patch: Fix broken EOF check
-------------------------------------------------------------------
Sat Aug 3 02:24:50 UTC 2013 - crrodriguez@opensuse.org

View File

@ -33,6 +33,7 @@ Group: Development/Languages/C and C++
Url: http://www.gnu.org/software/bison/bison.html
Source: http://ftp.gnu.org/gnu/bison/bison-%{version}.tar.xz
Source2: baselibs.conf
Patch: location-eof-check.patch
Requires: m4
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -41,6 +42,7 @@ Bison is a parser generator similar to yacc(1).
%prep
%setup -q
%patch -p1
%build
%configure --disable-silent-rules --disable-rpath \

13
location-eof-check.patch Normal file
View File

@ -0,0 +1,13 @@
Index: bison-3.0/src/location.c
===================================================================
--- bison-3.0.orig/src/location.c
+++ bison-3.0/src/location.c
@@ -188,7 +188,7 @@ location_caret (location loc, FILE *out)
/* Read the actual line. Don't update the offset, so that we keep a pointer
to the start of the line. */
{
- char c = getc (caret_info.source);
+ int c = getc (caret_info.source);
if (c != EOF)
{
/* Quote the file, indent by a single column. */