summaryrefslogtreecommitdiffstats
path: root/contrib/tcsh/sh.lex.c
diff options
context:
space:
mode:
authormp <mp@FreeBSD.org>2004-07-11 02:17:56 +0000
committermp <mp@FreeBSD.org>2004-07-11 02:17:56 +0000
commitbbd1addf8f9452690ad13ce5b875ee4cc9633958 (patch)
tree730792f0cc19f3bb4fb663fe727589381f5901be /contrib/tcsh/sh.lex.c
parentf2c2aa29b7d05c53575ab7ce4dc5870fd33a1310 (diff)
downloadFreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.zip
FreeBSD-src-bbd1addf8f9452690ad13ce5b875ee4cc9633958.tar.gz
Import of tcsh-6.13.00
Diffstat (limited to 'contrib/tcsh/sh.lex.c')
-rw-r--r--contrib/tcsh/sh.lex.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/contrib/tcsh/sh.lex.c b/contrib/tcsh/sh.lex.c
index 6999279..e6c7e2d 100644
--- a/contrib/tcsh/sh.lex.c
+++ b/contrib/tcsh/sh.lex.c
@@ -1,4 +1,4 @@
-/* $Header: /src/pub/tcsh/sh.lex.c,v 3.56 2002/07/08 20:57:32 christos Exp $ */
+/* $Header: /src/pub/tcsh/sh.lex.c,v 3.57 2003/08/04 16:19:13 christos Exp $ */
/*
* sh.lex.c: Lexical analysis into tokens
*/
@@ -32,7 +32,7 @@
*/
#include "sh.h"
-RCSID("$Id: sh.lex.c,v 3.56 2002/07/08 20:57:32 christos Exp $")
+RCSID("$Id: sh.lex.c,v 3.57 2003/08/04 16:19:13 christos Exp $")
#include "ed.h"
/* #define DEBUG_INP */
@@ -1476,8 +1476,7 @@ readc(wanteof)
{
int c;
static int sincereal; /* Number of real EOFs we've seen */
- Char *ptr; /* For STRignoreeof */
- int numeof = 0; /* Value of STRignoreeof */
+ extern int numeof;
#ifdef DEBUG_INP
xprintf("readc\n");
@@ -1487,20 +1486,6 @@ readc(wanteof)
return (c);
}
- /* Compute the value of EOFs */
- if ((ptr = varval(STRignoreeof)) != STRNULL) {
- while (*ptr) {
- if (!Isdigit(*ptr)) {
- numeof = 0;
- break;
- }
- numeof = numeof * 10 + *ptr++ - '0';
- }
- if (numeof != 0)
- numeof++;
- }
- if (numeof < 0) numeof = 26; /* Sanity check */
-
top:
aret = TCSH_F_SEEK;
if (alvecp) {
OpenPOWER on IntegriCloud