1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

bring in the findeol() fix from pfctl. list of affected parsers by sthen

This commit is contained in:
henning 2008-10-17 13:02:55 +00:00
parent b98e7303c3
commit 1a28f514df
9 changed files with 45 additions and 27 deletions

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.217 2008/07/08 13:14:58 claudio Exp $ */
/* $OpenBSD: parse.y,v 1.218 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -1933,11 +1933,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.38 2008/02/27 15:36:42 mpf Exp $ */
/* $OpenBSD: parse.y,v 1.39 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Reyk Floeter <reyk@openbsd.org>
@ -1400,11 +1400,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.27 2008/03/10 07:40:01 mpf Exp $ */
/* $OpenBSD: parse.y,v 1.28 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org>
@ -480,11 +480,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.13 2008/02/26 10:09:58 mpf Exp $ */
/* $OpenBSD: parse.y,v 1.14 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@ -638,11 +638,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.61 2008/02/26 10:09:58 mpf Exp $ */
/* $OpenBSD: parse.y,v 1.62 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@ -766,11 +766,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.125 2008/09/29 14:53:35 reyk Exp $ */
/* $OpenBSD: parse.y,v 1.126 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org>
@ -1618,11 +1618,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.19 2008/02/27 15:36:42 mpf Exp $ */
/* $OpenBSD: parse.y,v 1.20 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@ -485,11 +485,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.15 2008/07/18 12:35:27 reyk Exp $ */
/* $OpenBSD: parse.y,v 1.16 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2007, 2008 Reyk Floeter <reyk@vantronix.net>
@ -487,11 +487,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;

View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.3 2008/10/14 21:41:03 aschrijver Exp $ */
/* $OpenBSD: parse.y,v 1.4 2008/10/17 13:02:55 henning Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
@ -480,11 +480,13 @@ findeol(void)
int c;
parsebuf = NULL;
pushback_index = 0;
/* skip to either EOF or the first real EOL */
while (1) {
c = lgetc(0);
if (pushback_index)
c = pushback_buffer[--pushback_index];
else
c = lgetc(0);
if (c == '\n') {
file->lineno++;
break;