Deleted Added
full compact
input.c (250267) input.c (253650)
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 250267 2013-05-05 10:51:40Z jilles $");
39__FBSDID("$FreeBSD: head/bin/sh/input.c 253650 2013-07-25 15:08:41Z 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

--- 55 unchanged lines hidden (view full) ---

103int whichprompt; /* 1 == PS1, 2 == PS2 */
104
105EditLine *el; /* cookie for editline package */
106
107static void pushfile(void);
108static int preadfd(void);
109static void popstring(void);
110
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

--- 55 unchanged lines hidden (view full) ---

103int whichprompt; /* 1 == PS1, 2 == PS2 */
104
105EditLine *el; /* cookie for editline package */
106
107static void pushfile(void);
108static int preadfd(void);
109static void popstring(void);
110
111#ifdef mkinit
112INCLUDE "input.h"
113INCLUDE "error.h"
114
115RESET {
111void
112resetinput(void)
113{
116 popallfiles();
117 parselleft = parsenleft = 0; /* clear input buffer */
118}
114 popallfiles();
115 parselleft = parsenleft = 0; /* clear input buffer */
116}
119#endif
120
121
122/*
123 * Read a line from the script.
124 */
125
126char *
127pfgets(char *line, int len)

--- 425 unchanged lines hidden ---
117
118
119/*
120 * Read a line from the script.
121 */
122
123char *
124pfgets(char *line, int len)

--- 425 unchanged lines hidden ---