Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/bash/src/lib/readline/compat.c |
Source code | Switch to Preprocessed file |
Line | Source | Count |
---|---|---|
1 | /* compat.c -- backwards compatibility functions. */ | - |
2 | - | |
3 | /* Copyright (C) 2000-2017 Free Software Foundation, Inc. | - |
4 | - | |
5 | This file is part of the GNU Readline Library (Readline), a library | - |
6 | for reading lines of text with interactive input and history editing. | - |
7 | - | |
8 | Readline is free software: you can redistribute it and/or modify | - |
9 | it under the terms of the GNU General Public License as published by | - |
10 | the Free Software Foundation, either version 3 of the License, or | - |
11 | (at your option) any later version. | - |
12 | - | |
13 | Readline is distributed in the hope that it will be useful, | - |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | - |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | - |
16 | GNU General Public License for more details. | - |
17 | - | |
18 | You should have received a copy of the GNU General Public License | - |
19 | along with Readline. If not, see <http://www.gnu.org/licenses/>. | - |
20 | */ | - |
21 | - | |
22 | #define READLINE_LIBRARY | - |
23 | - | |
24 | #if defined (HAVE_CONFIG_H) | - |
25 | # include <config.h> | - |
26 | #endif | - |
27 | - | |
28 | #include <stdio.h> | - |
29 | - | |
30 | #include "rlstdc.h" | - |
31 | #include "rltypedefs.h" | - |
32 | - | |
33 | extern void rl_free_undo_list PARAMS((void)); | - |
34 | extern int rl_maybe_save_line PARAMS((void)); | - |
35 | extern int rl_maybe_unsave_line PARAMS((void)); | - |
36 | extern int rl_maybe_replace_line PARAMS((void)); | - |
37 | - | |
38 | extern int rl_crlf PARAMS((void)); | - |
39 | extern int rl_ding PARAMS((void)); | - |
40 | extern int rl_alphabetic PARAMS((int)); | - |
41 | - | |
42 | extern char **rl_completion_matches PARAMS((const char *, rl_compentry_func_t *)); | - |
43 | extern char *rl_username_completion_function PARAMS((const char *, int)); | - |
44 | extern char *rl_filename_completion_function PARAMS((const char *, int)); | - |
45 | - | |
46 | /* Provide backwards-compatible entry points for old function names. */ | - |
47 | - | |
48 | void | - |
49 | free_undo_list (void) | - |
50 | { | - |
51 | rl_free_undo_list (); | - |
52 | } never executed: end of block | 0 |
53 | - | |
54 | int | - |
55 | maybe_replace_line (void) | - |
56 | { | - |
57 | return rl_maybe_replace_line (); never executed: return rl_maybe_replace_line (); | 0 |
58 | } | - |
59 | - | |
60 | int | - |
61 | maybe_save_line (void) | - |
62 | { | - |
63 | return rl_maybe_save_line (); never executed: return rl_maybe_save_line (); | 0 |
64 | } | - |
65 | - | |
66 | int | - |
67 | maybe_unsave_line (void) | - |
68 | { | - |
69 | return rl_maybe_unsave_line (); never executed: return rl_maybe_unsave_line (); | 0 |
70 | } | - |
71 | - | |
72 | int | - |
73 | ding (void) | - |
74 | { | - |
75 | return rl_ding (); never executed: return rl_ding (); | 0 |
76 | } | - |
77 | - | |
78 | int | - |
79 | crlf (void) | - |
80 | { | - |
81 | return rl_crlf (); never executed: return rl_crlf (); | 0 |
82 | } | - |
83 | - | |
84 | int | - |
85 | alphabetic (int c) | - |
86 | { | - |
87 | return rl_alphabetic (c); never executed: return rl_alphabetic (c); | 0 |
88 | } | - |
89 | - | |
90 | char ** | - |
91 | completion_matches (const char *s, rl_compentry_func_t *f) | - |
92 | { | - |
93 | return rl_completion_matches (s, f); never executed: return rl_completion_matches (s, f); | 0 |
94 | } | - |
95 | - | |
96 | char * | - |
97 | username_completion_function (const char *s, int i) | - |
98 | { | - |
99 | return rl_username_completion_function (s, i); never executed: return rl_username_completion_function (s, i); | 0 |
100 | } | - |
101 | - | |
102 | char * | - |
103 | filename_completion_function (const char *s, int i) | - |
104 | { | - |
105 | return rl_filename_completion_function (s, i); never executed: return rl_filename_completion_function (s, i); | 0 |
106 | } | - |
Source code | Switch to Preprocessed file |