source: patches/bison-3.0-fix_eof-1.patch@ f120918

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f120918 was 15945347, checked in by William Harrington <kb0iic@…>, 11 years ago

Add bison eof fix patch.

  • Property mode set to 100644
File size: 1.1 KB
  • bison-3.0/src/location.c

    Submitted By: Ken Moffat (zrniwhoop at ntlworld dot com)
    Date: 2013-10-16
    Initial Package Version: 3.0
    Origin: Upstream
    Upstream Status: Applied
    Description: Fixes EOF check.
    
    commit 4c4191cec2b30632a31993a6e46fb241ab9c3434
    
    Author: Andreas Schwab <schwab@linux-m68k.org>
    Date:   Sat Sep 28 00:00:34 2013 +0200
                                          
        location: fix EOF check           
                               
        * location.c (location_caret): Use int, not char, for values from
        getc.                                                            
    
     found at http://git.savannah.gnu.org/cgit/bison.git/diff/src/location.c?id=4c4191cec2b30632a31993a6e46fb241ab9c3434&ignorews=1
     copied and pasted.
    
    old new  
    188188  /* Read the actual line.  Don't update the offset, so that we keep a pointer
    189189     to the start of the line.  */
    190190  {
    191     char c = getc (caret_info.source);
     191    int c = getc (caret_info.source);
    192192    if (c != EOF)
    193193      {
    194194        /* Quote the file, indent by a single column.  */
Note: See TracBrowser for help on using the repository browser.