chardefs.h | chardefs.h | |||
---|---|---|---|---|
/* chardefs.h -- Character definitions for readline. */ | /* chardefs.h -- Character definitions for readline. */ | |||
/* Copyright (C) 1994 Free Software Foundation, Inc. | /* Copyright (C) 1994 Free Software Foundation, Inc. | |||
This file is part of the GNU Readline Library, a library for | This file is part of the GNU Readline Library, a library for | |||
reading lines of text with interactive input and history editing. | reading lines of text with interactive input and history editing. | |||
The GNU Readline Library is free software; you can redistribute it | The GNU Readline Library is free software; you can redistribute it | |||
and/or modify it under the terms of the GNU General Public License | and/or modify it under the terms of the GNU General Public License | |||
as published by the Free Software Foundation; either version 1, or | as published by the Free Software Foundation; either version 2, or | |||
(at your option) any later version. | (at your option) any later version. | |||
The GNU Readline Library is distributed in the hope that it will be | The GNU Readline Library is distributed in the hope that it will be | |||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#ifndef _CHARDEFS_H_ | #ifndef _CHARDEFS_H_ | |||
#define _CHARDEFS_H_ | #define _CHARDEFS_H_ | |||
#include <ctype.h> | #include <ctype.h> | |||
#if defined (HAVE_CONFIG_H) | #if defined (HAVE_CONFIG_H) | |||
# if defined (HAVE_STRING_H) | # if defined (HAVE_STRING_H) | |||
# include <string.h> | # include <string.h> | |||
# else | # else | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||
history.h | history.h | |||
---|---|---|---|---|
/* History.h -- the names of functions that you can call in history. */ | /* History.h -- the names of functions that you can call in history. */ | |||
/* Copyright (C) 1989, 1992 Free Software Foundation, Inc. | /* Copyright (C) 1989, 1992 Free Software Foundation, Inc. | |||
This file contains the GNU History Library (the Library), a set of | This file contains the GNU History Library (the Library), a set of | |||
routines for managing the text of previously typed lines. | routines for managing the text of previously typed lines. | |||
The Library is free software; you can redistribute it and/or modify | The Library is free software; you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; either version 1, or (at your option) | the Free Software Foundation; either version 2, or (at your option) | |||
any later version. | any later version. | |||
The Library is distributed in the hope that it will be useful, but | The Library is distributed in the hope that it will be useful, but | |||
WITHOUT ANY WARRANTY; without even the implied warranty of | WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
General Public License for more details. | General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#ifndef _HISTORY_H_ | #ifndef _HISTORY_H_ | |||
#define _HISTORY_H_ | #define _HISTORY_H_ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#if defined READLINE_LIBRARY | #if defined READLINE_LIBRARY | |||
# include "rlstdc.h" | # include "rlstdc.h" | |||
skipping to change at line 122 | skipping to change at line 122 | |||
history. Element 0 of this list is the beginning of time. If there | history. Element 0 of this list is the beginning of time. If there | |||
is no history, return NULL. */ | is no history, return NULL. */ | |||
extern HIST_ENTRY **history_list __P((void)); | extern HIST_ENTRY **history_list __P((void)); | |||
/* Returns the number which says what history element we are now | /* Returns the number which says what history element we are now | |||
looking at. */ | looking at. */ | |||
extern int where_history __P((void)); | extern int where_history __P((void)); | |||
/* Return the history entry at the current position, as determined by | /* Return the history entry at the current position, as determined by | |||
history_offset. If there is no entry there, return a NULL pointer. */ | history_offset. If there is no entry there, return a NULL pointer. */ | |||
HIST_ENTRY *current_history __P((void)); | extern HIST_ENTRY *current_history __P((void)); | |||
/* Return the history entry which is logically at OFFSET in the history | /* Return the history entry which is logically at OFFSET in the history | |||
array. OFFSET is relative to history_base. */ | array. OFFSET is relative to history_base. */ | |||
extern HIST_ENTRY *history_get __P((int)); | extern HIST_ENTRY *history_get __P((int)); | |||
/* Return the number of bytes that the primary history entries are using. | /* Return the number of bytes that the primary history entries are using. | |||
This just adds up the lengths of the_history->lines. */ | This just adds up the lengths of the_history->lines. */ | |||
extern int history_total_bytes __P((void)); | extern int history_total_bytes __P((void)); | |||
/* Moving around the history list. */ | /* Moving around the history list. */ | |||
/* Set the position in the history list to POS. */ | /* Set the position in the history list to POS. */ | |||
int history_set_pos __P((int)); | extern int history_set_pos __P((int)); | |||
/* Back up history_offset to the previous history entry, and return | /* Back up history_offset to the previous history entry, and return | |||
a pointer to that entry. If there is no previous entry, return | a pointer to that entry. If there is no previous entry, return | |||
a NULL pointer. */ | a NULL pointer. */ | |||
extern HIST_ENTRY *previous_history __P((void)); | extern HIST_ENTRY *previous_history __P((void)); | |||
/* Move history_offset forward to the next item in the input_history, | /* Move history_offset forward to the next item in the input_history, | |||
and return the a pointer to that entry. If there is no next entry, | and return the a pointer to that entry. If there is no next entry, | |||
return a NULL pointer. */ | return a NULL pointer. */ | |||
extern HIST_ENTRY *next_history __P((void)); | extern HIST_ENTRY *next_history __P((void)); | |||
skipping to change at line 190 | skipping to change at line 190 | |||
~/.history. Returns 0 if successful, or errno if not. */ | ~/.history. Returns 0 if successful, or errno if not. */ | |||
extern int read_history_range __P((char *, int, int)); | extern int read_history_range __P((char *, int, int)); | |||
/* Write the current history to FILENAME. If FILENAME is NULL, | /* Write the current history to FILENAME. If FILENAME is NULL, | |||
then write the history list to ~/.history. Values returned | then write the history list to ~/.history. Values returned | |||
are as in read_history (). */ | are as in read_history (). */ | |||
extern int write_history __P((char *)); | extern int write_history __P((char *)); | |||
/* Append NELEMENT entries to FILENAME. The entries appended are from | /* Append NELEMENT entries to FILENAME. The entries appended are from | |||
the end of the list minus NELEMENTs up to the end of the list. */ | the end of the list minus NELEMENTs up to the end of the list. */ | |||
int append_history __P((int, char *)); | extern int append_history __P((int, char *)); | |||
/* Truncate the history file, leaving only the last NLINES lines. */ | /* Truncate the history file, leaving only the last NLINES lines. */ | |||
extern int history_truncate_file __P((char *, int)); | extern int history_truncate_file __P((char *, int)); | |||
/* History expansion. */ | /* History expansion. */ | |||
/* Expand the string STRING, placing the result into OUTPUT, a pointer | /* Expand the string STRING, placing the result into OUTPUT, a pointer | |||
to a string. Returns: | to a string. Returns: | |||
0) If no expansions took place (or, if the only change in | 0) If no expansions took place (or, if the only change in | |||
End of changes. 5 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added | |||
keymaps.h | keymaps.h | |||
---|---|---|---|---|
/* keymaps.h -- Manipulation of readline keymaps. */ | /* keymaps.h -- Manipulation of readline keymaps. */ | |||
/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. | /* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. | |||
This file is part of the GNU Readline Library, a library for | This file is part of the GNU Readline Library, a library for | |||
reading lines of text with interactive input and history editing. | reading lines of text with interactive input and history editing. | |||
The GNU Readline Library is free software; you can redistribute it | The GNU Readline Library is free software; you can redistribute it | |||
and/or modify it under the terms of the GNU General Public License | and/or modify it under the terms of the GNU General Public License | |||
as published by the Free Software Foundation; either version 1, or | as published by the Free Software Foundation; either version 2, or | |||
(at your option) any later version. | (at your option) any later version. | |||
The GNU Readline Library is distributed in the hope that it will be | The GNU Readline Library is distributed in the hope that it will be | |||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#ifndef _KEYMAPS_H_ | #ifndef _KEYMAPS_H_ | |||
#define _KEYMAPS_H_ | #define _KEYMAPS_H_ | |||
#ifdef __cplusplus | ||||
extern "C" { | ||||
#endif | ||||
#if defined (READLINE_LIBRARY) | #if defined (READLINE_LIBRARY) | |||
# include "rlstdc.h" | # include "rlstdc.h" | |||
# include "chardefs.h" | # include "chardefs.h" | |||
#else | #else | |||
# include <readline/rlstdc.h> | # include <readline/rlstdc.h> | |||
# include <readline/chardefs.h> | # include <readline/chardefs.h> | |||
#endif | #endif | |||
#if !defined (_FUNCTION_DEF) | #if !defined (_FUNCTION_DEF) | |||
# define _FUNCTION_DEF | # define _FUNCTION_DEF | |||
skipping to change at line 100 | skipping to change at line 104 | |||
/* Return the keymap corresponding to a given name. Names look like | /* Return the keymap corresponding to a given name. Names look like | |||
`emacs' or `emacs-meta' or `vi-insert'. */ | `emacs' or `emacs-meta' or `vi-insert'. */ | |||
extern Keymap rl_get_keymap_by_name __P((char *)); | extern Keymap rl_get_keymap_by_name __P((char *)); | |||
/* Return the current keymap. */ | /* Return the current keymap. */ | |||
extern Keymap rl_get_keymap __P((void)); | extern Keymap rl_get_keymap __P((void)); | |||
/* Set the current keymap to MAP. */ | /* Set the current keymap to MAP. */ | |||
extern void rl_set_keymap __P((Keymap)); | extern void rl_set_keymap __P((Keymap)); | |||
#ifdef __cplusplus | ||||
} | ||||
#endif | ||||
#endif /* _KEYMAPS_H_ */ | #endif /* _KEYMAPS_H_ */ | |||
End of changes. 4 change blocks. | ||||
2 lines changed or deleted | 10 lines changed or added | |||
readline.h | readline.h | |||
---|---|---|---|---|
/* Readline.h -- the names of functions callable from within readline. */ | /* Readline.h -- the names of functions callable from within readline. */ | |||
/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. | /* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. | |||
This file is part of the GNU Readline Library, a library for | This file is part of the GNU Readline Library, a library for | |||
reading lines of text with interactive input and history editing. | reading lines of text with interactive input and history editing. | |||
The GNU Readline Library is free software; you can redistribute it | The GNU Readline Library is free software; you can redistribute it | |||
and/or modify it under the terms of the GNU General Public License | and/or modify it under the terms of the GNU General Public License | |||
as published by the Free Software Foundation; either version 1, or | as published by the Free Software Foundation; either version 2, or | |||
(at your option) any later version. | (at your option) any later version. | |||
The GNU Readline Library is distributed in the hope that it will be | The GNU Readline Library is distributed in the hope that it will be | |||
useful, but WITHOUT ANY WARRANTY; without even the implied warranty | useful, but WITHOUT ANY WARRANTY; without even the implied warranty | |||
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | GNU General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#if !defined (_READLINE_H_) | #if !defined (_READLINE_H_) | |||
#define _READLINE_H_ | #define _READLINE_H_ | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
#if defined (READLINE_LIBRARY) | #if defined (READLINE_LIBRARY) | |||
# include "rlstdc.h" | # include "rlstdc.h" | |||
skipping to change at line 195 | skipping to change at line 195 | |||
extern int rl_tty_status __P((int, int)); | extern int rl_tty_status __P((int, int)); | |||
/* Bindable commands for incremental and non-incremental history searching. */ | /* Bindable commands for incremental and non-incremental history searching. */ | |||
extern int rl_history_search_forward __P((int, int)); | extern int rl_history_search_forward __P((int, int)); | |||
extern int rl_history_search_backward __P((int, int)); | extern int rl_history_search_backward __P((int, int)); | |||
extern int rl_noninc_forward_search __P((int, int)); | extern int rl_noninc_forward_search __P((int, int)); | |||
extern int rl_noninc_reverse_search __P((int, int)); | extern int rl_noninc_reverse_search __P((int, int)); | |||
extern int rl_noninc_forward_search_again __P((int, int)); | extern int rl_noninc_forward_search_again __P((int, int)); | |||
extern int rl_noninc_reverse_search_again __P((int, int)); | extern int rl_noninc_reverse_search_again __P((int, int)); | |||
/* Not available unless readline is compiled -DPAREN_MATCHING. */ | /* Bindable command used when inserting a matching close character. */ | |||
extern int rl_insert_close __P((int, int)); | extern int rl_insert_close __P((int, int)); | |||
/* Not available unless READLINE_CALLBACKS is defined. */ | /* Not available unless READLINE_CALLBACKS is defined. */ | |||
extern void rl_callback_handler_install __P((char *, VFunction *)); | extern void rl_callback_handler_install __P((char *, VFunction *)); | |||
extern void rl_callback_read_char __P((void)); | extern void rl_callback_read_char __P((void)); | |||
extern void rl_callback_handler_remove __P((void)); | extern void rl_callback_handler_remove __P((void)); | |||
/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */ | /* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */ | |||
/* VI-mode bindable commands. */ | /* VI-mode bindable commands. */ | |||
extern int rl_vi_redo __P((int, int)); | extern int rl_vi_redo __P((int, int)); | |||
skipping to change at line 334 | skipping to change at line 334 | |||
extern void rl_add_undo __P((enum undo_code, int, int, char *)); | extern void rl_add_undo __P((enum undo_code, int, int, char *)); | |||
extern void free_undo_list __P((void)); | extern void free_undo_list __P((void)); | |||
extern int rl_do_undo __P((void)); | extern int rl_do_undo __P((void)); | |||
extern int rl_begin_undo_group __P((void)); | extern int rl_begin_undo_group __P((void)); | |||
extern int rl_end_undo_group __P((void)); | extern int rl_end_undo_group __P((void)); | |||
extern int rl_modifying __P((int, int)); | extern int rl_modifying __P((int, int)); | |||
/* Functions for redisplay. */ | /* Functions for redisplay. */ | |||
extern void rl_redisplay __P((void)); | extern void rl_redisplay __P((void)); | |||
extern int rl_on_new_line __P((void)); | extern int rl_on_new_line __P((void)); | |||
extern int rl_on_new_line_with_prompt __P((void)); | ||||
extern int rl_forced_update_display __P((void)); | extern int rl_forced_update_display __P((void)); | |||
extern int rl_clear_message __P((void)); | extern int rl_clear_message __P((void)); | |||
extern int rl_reset_line_state __P((void)); | extern int rl_reset_line_state __P((void)); | |||
#if defined (__STDC__) && defined (USE_VARARGS) && defined (PREFER_STDARG) | #if (defined (__STDC__) || defined (__cplusplus)) && defined (USE_VARARGS) && defined (PREFER_STDARG) | |||
extern int rl_message (const char *, ...); | extern int rl_message (const char *, ...); | |||
#else | #else | |||
extern int rl_message (); | extern int rl_message (); | |||
#endif | #endif | |||
/* Undocumented in texinfo manual. */ | /* Undocumented in texinfo manual. */ | |||
extern int rl_show_char __P((int)); | extern int rl_show_char __P((int)); | |||
extern int rl_character_len __P((int, int)); | extern int rl_character_len __P((int, int)); | |||
extern int crlf __P((void)); | extern int crlf __P((void)); | |||
skipping to change at line 408 | skipping to change at line 409 | |||
/* **************************************************************** */ | /* **************************************************************** */ | |||
/* */ | /* */ | |||
/* Well Published Variables */ | /* Well Published Variables */ | |||
/* */ | /* */ | |||
/* **************************************************************** */ | /* **************************************************************** */ | |||
/* The version of this incarnation of the readline library. */ | /* The version of this incarnation of the readline library. */ | |||
extern char *rl_library_version; | extern char *rl_library_version; | |||
/* True if this is real GNU readline. */ | ||||
extern int rl_gnu_readline_p; | ||||
/* The name of the calling program. You should initialize this to | /* The name of the calling program. You should initialize this to | |||
whatever was in argv[0]. It is used when parsing conditionals. */ | whatever was in argv[0]. It is used when parsing conditionals. */ | |||
extern char *rl_readline_name; | extern char *rl_readline_name; | |||
/* The prompt readline uses. This is set from the argument to | /* The prompt readline uses. This is set from the argument to | |||
readline (), and should not be assigned to directly. */ | readline (), and should not be assigned to directly. */ | |||
extern char *rl_prompt; | extern char *rl_prompt; | |||
/* The line buffer that is in use. */ | /* The line buffer that is in use. */ | |||
extern char *rl_line_buffer; | extern char *rl_line_buffer; | |||
skipping to change at line 471 | skipping to change at line 475 | |||
/* Dispatch variables. */ | /* Dispatch variables. */ | |||
extern Keymap rl_executing_keymap; | extern Keymap rl_executing_keymap; | |||
extern Keymap rl_binding_keymap; | extern Keymap rl_binding_keymap; | |||
/* Display variables. */ | /* Display variables. */ | |||
/* If non-zero, readline will erase the entire line, including any prompt, | /* If non-zero, readline will erase the entire line, including any prompt, | |||
if the only thing typed on an otherwise-blank line is something bound to | if the only thing typed on an otherwise-blank line is something bound to | |||
rl_newline. */ | rl_newline. */ | |||
extern int rl_erase_empty_line; | extern int rl_erase_empty_line; | |||
/* If non-zero, the application has already printed the prompt (rl_prompt) | ||||
before calling readline, so readline should not output it the first time | ||||
redisplay is done. */ | ||||
extern int rl_already_prompted; | ||||
/* A non-zero value means to read only this many characters rather than | ||||
up to a character bound to accept-line. */ | ||||
extern int rl_num_chars_to_read; | ||||
/* Variables to control readline signal handling. */ | /* Variables to control readline signal handling. */ | |||
/* If non-zero, readline will install its own signal handlers for | /* If non-zero, readline will install its own signal handlers for | |||
SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ | SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */ | |||
extern int rl_catch_signals; | extern int rl_catch_signals; | |||
/* If non-zero, readline will install a signal handler for SIGWINCH | /* If non-zero, readline will install a signal handler for SIGWINCH | |||
that also attempts to call any calling application's SIGWINCH signal | that also attempts to call any calling application's SIGWINCH signal | |||
handler. Note that the terminal is not cleaned up before the | handler. Note that the terminal is not cleaned up before the | |||
application's signal handler is called; use rl_cleanup_after_signal() | application's signal handler is called; use rl_cleanup_after_signal() | |||
to do that. */ | to do that. */ | |||
skipping to change at line 614 | skipping to change at line 627 | |||
#define RL_PROMPT_START_IGNORE '\001' | #define RL_PROMPT_START_IGNORE '\001' | |||
#define RL_PROMPT_END_IGNORE '\002' | #define RL_PROMPT_END_IGNORE '\002' | |||
/* Possible values for do_replace argument to rl_filename_quoting_function, | /* Possible values for do_replace argument to rl_filename_quoting_function, | |||
called by rl_complete_internal. */ | called by rl_complete_internal. */ | |||
#define NO_MATCH 0 | #define NO_MATCH 0 | |||
#define SINGLE_MATCH 1 | #define SINGLE_MATCH 1 | |||
#define MULT_MATCH 2 | #define MULT_MATCH 2 | |||
#if !defined (savestring) | #if !defined (savestring) | |||
extern char *savestring (); /* XXX backwards compatibility */ | extern char *savestring __P((char *)); /* XXX backwards compatibility */ | |||
#endif | #endif | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
} | } | |||
#endif | #endif | |||
#endif /* _READLINE_H_ */ | #endif /* _READLINE_H_ */ | |||
End of changes. 8 change blocks. | ||||
5 lines changed or deleted | 18 lines changed or added | |||
rlconf.h | rlconf.h | |||
---|---|---|---|---|
/* rlconf.h -- readline configuration definitions */ | /* rlconf.h -- readline configuration definitions */ | |||
/* Copyright (C) 1994 Free Software Foundation, Inc. | /* Copyright (C) 1994 Free Software Foundation, Inc. | |||
This file contains the Readline Library (the Library), a set of | This file contains the Readline Library (the Library), a set of | |||
routines for providing Emacs style line input to programs that ask | routines for providing Emacs style line input to programs that ask | |||
for it. | for it. | |||
The Library is free software; you can redistribute it and/or modify | The Library is free software; you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; either version 1, or (at your option) | the Free Software Foundation; either version 2, or (at your option) | |||
any later version. | any later version. | |||
The Library is distributed in the hope that it will be useful, but | The Library is distributed in the hope that it will be useful, but | |||
WITHOUT ANY WARRANTY; without even the implied warranty of | WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
General Public License for more details. | General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#if !defined (_RLCONF_H_) | #if !defined (_RLCONF_H_) | |||
#define _RLCONF_H_ | #define _RLCONF_H_ | |||
/* Define this if you want the vi-mode editing available. */ | /* Define this if you want the vi-mode editing available. */ | |||
#define VI_MODE | #define VI_MODE | |||
/* Define this to get an indication of file type when listing completions. */ | /* Define this to get an indication of file type when listing completions. */ | |||
#define VISIBLE_STATS | #define VISIBLE_STATS | |||
/* If defined, readline shows opening parens and braces when closing | ||||
paren or brace entered. */ | ||||
/* #define PAREN_MATCHING */ | ||||
/* This definition is needed by readline.c, rltty.c, and signals.c. */ | /* This definition is needed by readline.c, rltty.c, and signals.c. */ | |||
/* If on, then readline handles signals in a way that doesn't screw. */ | /* If on, then readline handles signals in a way that doesn't screw. */ | |||
#define HANDLE_SIGNALS | #define HANDLE_SIGNALS | |||
/* Ugly but working hack for binding prefix meta. */ | /* Ugly but working hack for binding prefix meta. */ | |||
#define PREFIX_META_HACK | #define PREFIX_META_HACK | |||
/* The final, last-ditch effort file name for an init file. */ | /* The final, last-ditch effort file name for an init file. */ | |||
#define DEFAULT_INPUTRC "~/.inputrc" | #define DEFAULT_INPUTRC "~/.inputrc" | |||
End of changes. 3 change blocks. | ||||
6 lines changed or deleted | 2 lines changed or added | |||
rlstdc.h | rlstdc.h | |||
---|---|---|---|---|
/* stdc.h -- macros to make source compile on both ANSI C and K&R C | /* stdc.h -- macros to make source compile on both ANSI C and K&R C | |||
compilers. */ | compilers. */ | |||
/* Copyright (C) 1993 Free Software Foundation, Inc. | /* Copyright (C) 1993 Free Software Foundation, Inc. | |||
This file is part of GNU Bash, the Bourne Again SHell. | This file is part of GNU Bash, the Bourne Again SHell. | |||
Bash is free software; you can redistribute it and/or modify it | Bash is free software; you can redistribute it and/or modify it | |||
under the terms of the GNU General Public License as published by | under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; either version 1, or (at your option) | the Free Software Foundation; either version 2, or (at your option) | |||
any later version. | any later version. | |||
Bash is distributed in the hope that it will be useful, but WITHOUT | Bash is distributed in the hope that it will be useful, but WITHOUT | |||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |||
License for more details. | License for more details. | |||
You should have received a copy of the GNU General Public License | You should have received a copy of the GNU General Public License | |||
along with Bash; see the file COPYING. If not, write to the Free | along with Bash; see the file COPYING. If not, write to the Free | |||
Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ | Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. * / | |||
#if !defined (_RL_STDC_H_) | #if !defined (_RL_STDC_H_) | |||
#define _RL_STDC_H_ | #define _RL_STDC_H_ | |||
/* Adapted from BSD /usr/include/sys/cdefs.h. */ | /* Adapted from BSD /usr/include/sys/cdefs.h. */ | |||
/* A function can be defined using prototypes and compile on both ANSI C | /* A function can be defined using prototypes and compile on both ANSI C | |||
and traditional C compilers with something like this: | and traditional C compilers with something like this: | |||
extern char *func __P((char *, char *, int)); */ | extern char *func __P((char *, char *, int)); */ | |||
#if defined (__STDC__) | #if !defined (__P) | |||
# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) | ||||
# if !defined (__P) | ||||
# define __P(protos) protos | # define __P(protos) protos | |||
# endif | # else | |||
# define __STRING(x) #x | ||||
# if !defined (__GNUC__) | ||||
# define inline | ||||
# endif | ||||
#else /* !__STDC__ */ | ||||
# if !defined (__P) | ||||
# define __P(protos) () | # define __P(protos) () | |||
# endif | # endif | |||
# define __STRING(x) "x" | #endif | |||
#if defined (__GNUC__) /* gcc with -traditional */ | ||||
# if !defined (const) | ||||
# define const __const | ||||
# endif | ||||
# if !defined (inline) | ||||
# define inline __inline | ||||
# endif | ||||
# if !defined (signed) | ||||
# define signed __signed | ||||
# endif | ||||
# if !defined (volatile) | ||||
# define volatile __volatile | ||||
# endif | ||||
#else /* !__GNUC__ */ | ||||
# if !defined (const) | ||||
# define const | ||||
# endif | ||||
# if !defined (inline) | ||||
# define inline | ||||
# endif | ||||
# if !defined (signed) | ||||
# define signed | ||||
# endif | ||||
# if !defined (volatile) | ||||
# define volatile | ||||
# endif | ||||
#endif /* !__GNUC__ */ | ||||
#endif /* !__STDC__ */ | ||||
#endif /* !_RL_STDC_H_ */ | #endif /* !_RL_STDC_H_ */ | |||
End of changes. 5 change blocks. | ||||
46 lines changed or deleted | 6 lines changed or added | |||
tilde.h | tilde.h | |||
---|---|---|---|---|
/* tilde.h: Externally available variables and function in libtilde.a. */ | /* tilde.h: Externally available variables and function in libtilde.a. */ | |||
/* Copyright (C) 1992 Free Software Foundation, Inc. | /* Copyright (C) 1992 Free Software Foundation, Inc. | |||
This file contains the Readline Library (the Library), a set of | This file contains the Readline Library (the Library), a set of | |||
routines for providing Emacs style line input to programs that ask | routines for providing Emacs style line input to programs that ask | |||
for it. | for it. | |||
The Library is free software; you can redistribute it and/or modify | The Library is free software; you can redistribute it and/or modify | |||
it under the terms of the GNU General Public License as published by | it under the terms of the GNU General Public License as published by | |||
the Free Software Foundation; either version 1, or (at your option) | the Free Software Foundation; either version 2, or (at your option) | |||
any later version. | any later version. | |||
The Library is distributed in the hope that it will be useful, but | The Library is distributed in the hope that it will be useful, but | |||
WITHOUT ANY WARRANTY; without even the implied warranty of | WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |||
General Public License for more details. | General Public License for more details. | |||
The GNU General Public License is often shipped with GNU software, and | The GNU General Public License is often shipped with GNU software, and | |||
is generally kept in a file called COPYING or LICENSE. If you do not | is generally kept in a file called COPYING or LICENSE. If you do not | |||
have a copy of the license, write to the Free Software Foundation, | have a copy of the license, write to the Free Software Foundation, | |||
675 Mass Ave, Cambridge, MA 02139, USA. */ | 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ | |||
#if !defined (_TILDE_H_) | #if !defined (_TILDE_H_) | |||
# define _TILDE_H_ | # define _TILDE_H_ | |||
#ifdef __cplusplus | ||||
extern "C" { | ||||
#endif | ||||
/* A function can be defined using prototypes and compile on both ANSI C | ||||
and traditional C compilers with something like this: | ||||
extern char *func __P((char *, char *, int)); */ | ||||
#if !defined (__P) | ||||
# if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) | ||||
# define __P(protos) protos | ||||
# else | ||||
# define __P(protos) () | ||||
# endif | ||||
#endif | ||||
/* Function pointers can be declared as (Function *)foo. */ | /* Function pointers can be declared as (Function *)foo. */ | |||
#if !defined (_FUNCTION_DEF) | #if !defined (_FUNCTION_DEF) | |||
# define _FUNCTION_DEF | # define _FUNCTION_DEF | |||
typedef int Function (); | typedef int Function (); | |||
typedef void VFunction (); | typedef void VFunction (); | |||
typedef char *CPFunction (); | typedef char *CPFunction (); | |||
typedef char **CPPFunction (); | typedef char **CPPFunction (); | |||
#endif /* _FUNCTION_DEF */ | #endif /* _FUNCTION_DEF */ | |||
/* If non-null, this contains the address of a function that the applicatio n | /* If non-null, this contains the address of a function that the applicatio n | |||
skipping to change at line 59 | skipping to change at line 75 | |||
are duplicates for a tilde prefix. Bash uses this to expand | are duplicates for a tilde prefix. Bash uses this to expand | |||
`=~' and `:~'. */ | `=~' and `:~'. */ | |||
extern char **tilde_additional_prefixes; | extern char **tilde_additional_prefixes; | |||
/* When non-null, this is a NULL terminated array of strings which match | /* When non-null, this is a NULL terminated array of strings which match | |||
the end of a username, instead of just "/". Bash sets this to | the end of a username, instead of just "/". Bash sets this to | |||
`:' and `=~'. */ | `:' and `=~'. */ | |||
extern char **tilde_additional_suffixes; | extern char **tilde_additional_suffixes; | |||
/* Return a new string which is the result of tilde expanding STRING. */ | /* Return a new string which is the result of tilde expanding STRING. */ | |||
extern char *tilde_expand (); | extern char *tilde_expand __P((char *)); | |||
/* Do the work of tilde expansion on FILENAME. FILENAME starts with a | /* Do the work of tilde expansion on FILENAME. FILENAME starts with a | |||
tilde. If there is no expansion, call tilde_expansion_failure_hook. */ | tilde. If there is no expansion, call tilde_expansion_failure_hook. */ | |||
extern char *tilde_expand_word (); | extern char *tilde_expand_word __P((char *)); | |||
#ifdef __cplusplus | ||||
} | ||||
#endif | ||||
#endif /* _TILDE_H_ */ | #endif /* _TILDE_H_ */ | |||
End of changes. 5 change blocks. | ||||
4 lines changed or deleted | 24 lines changed or added | |||