[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #5623] Remove lexer's eof state
From: |
John Darrington |
Subject: |
[patch #5623] Remove lexer's eof state |
Date: |
Fri, 08 Dec 2006 22:36:18 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20060607 Debian/1.7.12-1.2 |
URL:
<http://savannah.gnu.org/patch/?5623>
Summary: Remove lexer's eof state
Project: PSPP
Submitted by: jmd
Submitted on: Saturday 12/09/06 at 06:36
Category: None
Item Group: None
Status: Ready For Test/Review
Assigned to: blp
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
This change is necessary for the GUI. Currently, if the lexer reaches end of
file, it can never get out of that state. This is fine in the CLI, but in the
GUI code can get pasted into the syntax window after the lexer has decided
that there's no more input.
This changed removes the eof variable. Instead, it sets prog to NULL. When
testing for eof, it tests prog, and calls lex_get_line.
It passes make check, but maybe there are some issues I've overlooked.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Saturday 12/09/06 at 06:36 Name: lex.patch Size: 13kB By: jmd
<http://savannah.gnu.org/patch/download.php?file_id=11488>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?5623>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #5623] Remove lexer's eof state,
John Darrington <=