Deleted Added
full compact
rl.c (119610) rl.c (157184)
1/*
2 * rl - command-line interface to read a line from the standard input
3 * (or another fd) using readline.
4 *
5 * usage: rl [-p prompt] [-u unit] [-d default] [-n nchars]
6 */
7
8/* Copyright (C) 1987-2002 Free Software Foundation, Inc.

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

26 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
27
28#if defined (HAVE_CONFIG_H)
29# include <config.h>
30#endif
31
32#include <stdio.h>
33#include <sys/types.h>
1/*
2 * rl - command-line interface to read a line from the standard input
3 * (or another fd) using readline.
4 *
5 * usage: rl [-p prompt] [-u unit] [-d default] [-n nchars]
6 */
7
8/* Copyright (C) 1987-2002 Free Software Foundation, Inc.

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

26 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
27
28#if defined (HAVE_CONFIG_H)
29# include <config.h>
30#endif
31
32#include <stdio.h>
33#include <sys/types.h>
34#include "posixstat.h"
35
34
35#ifdef HAVE_STDLIB_H
36# include <stdlib.h>
37#else
38extern void exit();
39#endif
40
36#if defined (READLINE_LIBRARY)
41#if defined (READLINE_LIBRARY)
42# include "posixstat.h"
37# include "readline.h"
38# include "history.h"
39#else
43# include "readline.h"
44# include "history.h"
45#else
46# include <sys/stat.h>
40# include <readline/readline.h>
41# include <readline/history.h>
42#endif
43
44extern int optind;
45extern char *optarg;
46
47#if !defined (strchr) && !defined (__STDC__)

--- 104 unchanged lines hidden ---
47# include <readline/readline.h>
48# include <readline/history.h>
49#endif
50
51extern int optind;
52extern char *optarg;
53
54#if !defined (strchr) && !defined (__STDC__)

--- 104 unchanged lines hidden ---