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 |
35#ifdef HAVE_STDLIB_H 36# include <stdlib.h> 37#else 38extern void exit(); 39#endif 40 |
41#if defined (READLINE_LIBRARY) |
42# include "posixstat.h" |
43# include "readline.h" 44# include "history.h" 45#else |
46# include <sys/stat.h> |
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 --- |