Deleted Added
full compact
callback.c (21308) callback.c (26497)
1/* callback.c -- functions to use readline as an X `callback' mechanism. */
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

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

34
35/* System-specific feature definitions and include files. */
36#include "rldefs.h"
37#include "readline.h"
38
39extern void readline_internal_startup ();
40extern char *readline_internal_teardown ();
41extern int readline_internal_char ();
1/* callback.c -- functions to use readline as an X `callback' mechanism. */
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

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

34
35/* System-specific feature definitions and include files. */
36#include "rldefs.h"
37#include "readline.h"
38
39extern void readline_internal_startup ();
40extern char *readline_internal_teardown ();
41extern int readline_internal_char ();
42extern void _rl_init_line_state ();
42
43extern int _rl_meta_flag;
44extern char *rl_prompt;
45extern int rl_visible_prompt_length;
46
47/* **************************************************************** */
48/* */
49/* Callback Readline Functions */

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

115
116 (*rl_deprep_term_function) ();
117#if defined (HANDLE_SIGNALS)
118 rl_clear_signals ();
119#endif
120 in_handler = 0;
121 (*rl_linefunc) (line);
122
43
44extern int _rl_meta_flag;
45extern char *rl_prompt;
46extern int rl_visible_prompt_length;
47
48/* **************************************************************** */
49/* */
50/* Callback Readline Functions */

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

116
117 (*rl_deprep_term_function) ();
118#if defined (HANDLE_SIGNALS)
119 rl_clear_signals ();
120#endif
121 in_handler = 0;
122 (*rl_linefunc) (line);
123
124 /* If the user did not clear out the line, do it for him. */
125 if (rl_line_buffer[0])
126 _rl_init_line_state ();
127
123 /* Redisplay the prompt if readline_handler_{install,remove} not called. */
124 if (in_handler == 0 && rl_linefunc)
125 _rl_callback_newline ();
126 }
127}
128
129/* Remove the handler, and make sure the terminal is in its normal state. */
130void

--- 14 unchanged lines hidden ---
128 /* Redisplay the prompt if readline_handler_{install,remove} not called. */
129 if (in_handler == 0 && rl_linefunc)
130 _rl_callback_newline ();
131 }
132}
133
134/* Remove the handler, and make sure the terminal is in its normal state. */
135void

--- 14 unchanged lines hidden ---