input.c (213811) | input.c (218306) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)input.c 8.3 (Berkeley) 6/9/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)input.c 8.3 (Berkeley) 6/9/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/input.c 213811 2010-10-13 22:18:03Z obrien $"); | 39__FBSDID("$FreeBSD: head/bin/sh/input.c 218306 2011-02-04 22:47:55Z jilles $"); |
40 41#include <stdio.h> /* defines BUFSIZ */ 42#include <fcntl.h> 43#include <errno.h> 44#include <unistd.h> 45#include <stdlib.h> 46#include <string.h> 47 --- 66 unchanged lines hidden (view full) --- 114MKINIT char basebuf[]; 115 116INIT { 117 basepf.nextc = basepf.buf = basebuf; 118} 119 120RESET { 121 popallfiles(); | 40 41#include <stdio.h> /* defines BUFSIZ */ 42#include <fcntl.h> 43#include <errno.h> 44#include <unistd.h> 45#include <stdlib.h> 46#include <string.h> 47 --- 66 unchanged lines hidden (view full) --- 114MKINIT char basebuf[]; 115 116INIT { 117 basepf.nextc = basepf.buf = basebuf; 118} 119 120RESET { 121 popallfiles(); |
122 if (exception != EXSHELLPROC) 123 parselleft = parsenleft = 0; /* clear input buffer */ | 122 parselleft = parsenleft = 0; /* clear input buffer */ |
124} | 123} |
125 126SHELLPROC { 127 popallfiles(); 128} | |
129#endif 130 131 132/* 133 * Read a line from the script. 134 */ 135 136char * --- 427 unchanged lines hidden --- | 124#endif 125 126 127/* 128 * Read a line from the script. 129 */ 130 131char * --- 427 unchanged lines hidden --- |