Deleted Added
full compact
readline.h (55987) readline.h (58314)
1/* $FreeBSD: head/contrib/libreadline/readline.h 58314 2000-03-19 22:00:57Z ache $ */
1/* Readline.h -- the names of functions callable from within readline. */
2
3/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
4
5 This file is part of the GNU Readline Library, a library for
6 reading lines of text with interactive input and history editing.
7
8 The GNU Readline Library is free software; you can redistribute it
9 and/or modify it under the terms of the GNU General Public License
2/* Readline.h -- the names of functions callable from within readline. */
3
4/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
5
6 This file is part of the GNU Readline Library, a library for
7 reading lines of text with interactive input and history editing.
8
9 The GNU Readline Library is free software; you can redistribute it
10 and/or modify it under the terms of the GNU General Public License
10 as published by the Free Software Foundation; either version 1, or
11 as published by the Free Software Foundation; either version 2, or
11 (at your option) any later version.
12
13 The GNU Readline Library is distributed in the hope that it will be
14 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
15 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 The GNU General Public License is often shipped with GNU software, and
19 is generally kept in a file called COPYING or LICENSE. If you do not
20 have a copy of the license, write to the Free Software Foundation,
12 (at your option) any later version.
13
14 The GNU Readline Library is distributed in the hope that it will be
15 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
16 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 The GNU General Public License is often shipped with GNU software, and
20 is generally kept in a file called COPYING or LICENSE. If you do not
21 have a copy of the license, write to the Free Software Foundation,
21 675 Mass Ave, Cambridge, MA 02139, USA. */
22 59 Temple Place, Suite 330, Boston, MA 02111 USA. */
22
23
23/* $FreeBSD: head/contrib/libreadline/readline.h 55987 2000-01-14 18:57:33Z bde $ */
24
25#if !defined (_READLINE_H_)
26#define _READLINE_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#if defined (READLINE_LIBRARY)

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

189/* Bindable commands for incremental and non-incremental history searching. */
190extern int rl_history_search_forward __P((int, int));
191extern int rl_history_search_backward __P((int, int));
192extern int rl_noninc_forward_search __P((int, int));
193extern int rl_noninc_reverse_search __P((int, int));
194extern int rl_noninc_forward_search_again __P((int, int));
195extern int rl_noninc_reverse_search_again __P((int, int));
196
24#if !defined (_READLINE_H_)
25#define _READLINE_H_
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31#if defined (READLINE_LIBRARY)

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

188/* Bindable commands for incremental and non-incremental history searching. */
189extern int rl_history_search_forward __P((int, int));
190extern int rl_history_search_backward __P((int, int));
191extern int rl_noninc_forward_search __P((int, int));
192extern int rl_noninc_reverse_search __P((int, int));
193extern int rl_noninc_forward_search_again __P((int, int));
194extern int rl_noninc_reverse_search_again __P((int, int));
195
197/* Not available unless readline is compiled -DPAREN_MATCHING. */
196/* Bindable command used when inserting a matching close character. */
198extern int rl_insert_close __P((int, int));
199
200/* Not available unless READLINE_CALLBACKS is defined. */
201extern void rl_callback_handler_install __P((char *, VFunction *));
202extern void rl_callback_read_char __P((void));
203extern void rl_callback_handler_remove __P((void));
204
205/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */

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

297extern void rl_function_dumper __P((int));
298extern void rl_macro_dumper __P((int));
299extern void rl_variable_dumper __P((int));
300
301extern int rl_read_init_file __P((char *));
302extern int rl_parse_and_bind __P((char *));
303
304/* Functions for manipulating keymaps. */
197extern int rl_insert_close __P((int, int));
198
199/* Not available unless READLINE_CALLBACKS is defined. */
200extern void rl_callback_handler_install __P((char *, VFunction *));
201extern void rl_callback_read_char __P((void));
202extern void rl_callback_handler_remove __P((void));
203
204/* Things for vi mode. Not available unless readline is compiled -DVI_MODE. */

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

296extern void rl_function_dumper __P((int));
297extern void rl_macro_dumper __P((int));
298extern void rl_variable_dumper __P((int));
299
300extern int rl_read_init_file __P((char *));
301extern int rl_parse_and_bind __P((char *));
302
303/* Functions for manipulating keymaps. */
304extern Keymap rl_make_bare_keymap __P((void));
305extern Keymap rl_copy_keymap __P((Keymap));
306extern Keymap rl_make_keymap __P((void));
307extern void rl_discard_keymap __P((Keymap));
308
309extern Keymap rl_get_keymap_by_name __P((char *));
305extern char *rl_get_keymap_name __P((Keymap));
310extern char *rl_get_keymap_name __P((Keymap));
311extern void rl_set_keymap __P((Keymap));
312extern Keymap rl_get_keymap __P((void));
306extern void rl_set_keymap_from_edit_mode __P((void));
307extern char *rl_get_keymap_name_from_edit_mode __P((void));
308
309/* Functions for manipulating the funmap, which maps command names to functions. */
310extern int rl_add_funmap_entry __P((char *, Function *));
311extern void rl_initialize_funmap __P((void));
312extern char **rl_funmap_names __P((void));
313

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

320extern int rl_do_undo __P((void));
321extern int rl_begin_undo_group __P((void));
322extern int rl_end_undo_group __P((void));
323extern int rl_modifying __P((int, int));
324
325/* Functions for redisplay. */
326extern void rl_redisplay __P((void));
327extern int rl_on_new_line __P((void));
313extern void rl_set_keymap_from_edit_mode __P((void));
314extern char *rl_get_keymap_name_from_edit_mode __P((void));
315
316/* Functions for manipulating the funmap, which maps command names to functions. */
317extern int rl_add_funmap_entry __P((char *, Function *));
318extern void rl_initialize_funmap __P((void));
319extern char **rl_funmap_names __P((void));
320

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

327extern int rl_do_undo __P((void));
328extern int rl_begin_undo_group __P((void));
329extern int rl_end_undo_group __P((void));
330extern int rl_modifying __P((int, int));
331
332/* Functions for redisplay. */
333extern void rl_redisplay __P((void));
334extern int rl_on_new_line __P((void));
335extern int rl_on_new_line_with_prompt __P((void));
328extern int rl_forced_update_display __P((void));
329extern int rl_clear_message __P((void));
330extern int rl_reset_line_state __P((void));
331
336extern int rl_forced_update_display __P((void));
337extern int rl_clear_message __P((void));
338extern int rl_reset_line_state __P((void));
339
332#if defined (__STDC__) && defined (USE_VARARGS) && defined (PREFER_STDARG)
340#if (defined (__STDC__) || defined (__cplusplus)) && defined (USE_VARARGS) && defined (PREFER_STDARG)
333extern int rl_message (const char *, ...);
334#else
335extern int rl_message ();
336#endif
337
338/* Undocumented in texinfo manual. */
339extern int rl_show_char __P((int));
340extern int rl_character_len __P((int, int));

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

394/* */
395/* Well Published Variables */
396/* */
397/* **************************************************************** */
398
399/* The version of this incarnation of the readline library. */
400extern char *rl_library_version;
401
341extern int rl_message (const char *, ...);
342#else
343extern int rl_message ();
344#endif
345
346/* Undocumented in texinfo manual. */
347extern int rl_show_char __P((int));
348extern int rl_character_len __P((int, int));

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

402/* */
403/* Well Published Variables */
404/* */
405/* **************************************************************** */
406
407/* The version of this incarnation of the readline library. */
408extern char *rl_library_version;
409
410/* True if this is real GNU readline. */
411extern int rl_gnu_readline_p;
412
402/* The name of the calling program. You should initialize this to
403 whatever was in argv[0]. It is used when parsing conditionals. */
404extern char *rl_readline_name;
405
406/* The prompt readline uses. This is set from the argument to
407 readline (), and should not be assigned to directly. */
408extern char *rl_prompt;
409

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

457extern Keymap rl_binding_keymap;
458
459/* Display variables. */
460/* If non-zero, readline will erase the entire line, including any prompt,
461 if the only thing typed on an otherwise-blank line is something bound to
462 rl_newline. */
463extern int rl_erase_empty_line;
464
413/* The name of the calling program. You should initialize this to
414 whatever was in argv[0]. It is used when parsing conditionals. */
415extern char *rl_readline_name;
416
417/* The prompt readline uses. This is set from the argument to
418 readline (), and should not be assigned to directly. */
419extern char *rl_prompt;
420

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

468extern Keymap rl_binding_keymap;
469
470/* Display variables. */
471/* If non-zero, readline will erase the entire line, including any prompt,
472 if the only thing typed on an otherwise-blank line is something bound to
473 rl_newline. */
474extern int rl_erase_empty_line;
475
476/* If non-zero, the application has already printed the prompt (rl_prompt)
477 before calling readline, so readline should not output it the first time
478 redisplay is done. */
479extern int rl_already_prompted;
480
481/* A non-zero value means to read only this many characters rather than
482 up to a character bound to accept-line. */
483extern int rl_num_chars_to_read;
484
465/* Variables to control readline signal handling. */
466/* If non-zero, readline will install its own signal handlers for
467 SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
468extern int rl_catch_signals;
469
470/* If non-zero, readline will install a signal handler for SIGWINCH
471 that also attempts to call any calling application's SIGWINCH signal
472 handler. Note that the terminal is not cleaned up before the

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

601/* Possible values for do_replace argument to rl_filename_quoting_function,
602 called by rl_complete_internal. */
603#define NO_MATCH 0
604#define SINGLE_MATCH 1
605#define MULT_MATCH 2
606
607#if !defined (savestring)
608#define savestring rl_savestring
485/* Variables to control readline signal handling. */
486/* If non-zero, readline will install its own signal handlers for
487 SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, SIGTTIN, and SIGTTOU. */
488extern int rl_catch_signals;
489
490/* If non-zero, readline will install a signal handler for SIGWINCH
491 that also attempts to call any calling application's SIGWINCH signal
492 handler. Note that the terminal is not cleaned up before the

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

621/* Possible values for do_replace argument to rl_filename_quoting_function,
622 called by rl_complete_internal. */
623#define NO_MATCH 0
624#define SINGLE_MATCH 1
625#define MULT_MATCH 2
626
627#if !defined (savestring)
628#define savestring rl_savestring
609extern char *savestring (); /* XXX backwards compatibility */
629extern char *savestring __P((char *)); /* XXX backwards compatibility */
610#endif
611
612#ifdef __cplusplus
613}
614#endif
615
616#endif /* _READLINE_H_ */
630#endif
631
632#ifdef __cplusplus
633}
634#endif
635
636#endif /* _READLINE_H_ */