Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/readline/rltypedefs.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /* rltypedefs.h -- Type declarations for readline functions. */
0002 
0003 /* Copyright (C) 2000-2021 Free Software Foundation, Inc.
0004 
0005    This file is part of the GNU Readline Library (Readline), a library
0006    for reading lines of text with interactive input and history editing.      
0007 
0008    Readline is free software: you can redistribute it and/or modify
0009    it under the terms of the GNU General Public License as published by
0010    the Free Software Foundation, either version 3 of the License, or
0011    (at your option) any later version.
0012 
0013    Readline is distributed in the hope that it will be useful,
0014    but WITHOUT ANY WARRANTY; without even the implied warranty of
0015    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0016    GNU General Public License for more details.
0017 
0018    You should have received a copy of the GNU General Public License
0019    along with Readline.  If not, see <http://www.gnu.org/licenses/>.
0020 */
0021 
0022 #ifndef _RL_TYPEDEFS_H_
0023 #define _RL_TYPEDEFS_H_
0024 
0025 #ifdef __cplusplus
0026 extern "C" {
0027 #endif
0028 
0029 /* Old-style, attempt to mark as deprecated in some way people will notice. */
0030 
0031 #if !defined (_FUNCTION_DEF)
0032 #  define _FUNCTION_DEF
0033 
0034 #if defined(__GNUC__) || defined(__clang__)
0035 typedef int Function () __attribute__((deprecated));
0036 typedef void VFunction () __attribute__((deprecated));
0037 typedef char *CPFunction () __attribute__((deprecated));
0038 typedef char **CPPFunction () __attribute__((deprecated));
0039 #else
0040 typedef int Function ();
0041 typedef void VFunction ();
0042 typedef char *CPFunction ();
0043 typedef char **CPPFunction ();
0044 #endif
0045 
0046 #endif /* _FUNCTION_DEF */
0047 
0048 /* New style. */
0049 
0050 #if !defined (_RL_FUNCTION_TYPEDEF)
0051 #  define _RL_FUNCTION_TYPEDEF
0052 
0053 /* Bindable functions */
0054 typedef int rl_command_func_t (int, int);
0055 
0056 /* Typedefs for the completion system */
0057 typedef char *rl_compentry_func_t (const char *, int);
0058 typedef char **rl_completion_func_t (const char *, int, int);
0059 
0060 typedef char *rl_quote_func_t (char *, int, char *);
0061 typedef char *rl_dequote_func_t (char *, int);
0062 
0063 typedef int rl_compignore_func_t (char **);
0064 
0065 typedef void rl_compdisp_func_t (char **, int, int);
0066 
0067 /* Type for input and pre-read hook functions like rl_event_hook */
0068 typedef int rl_hook_func_t (void);
0069 
0070 /* Input function type */
0071 typedef int rl_getc_func_t (FILE *);
0072 
0073 /* Generic function that takes a character buffer (which could be the readline
0074    line buffer) and an index into it (which could be rl_point) and returns
0075    an int. */
0076 typedef int rl_linebuf_func_t (char *, int);
0077 
0078 /* `Generic' function pointer typedefs */
0079 typedef int rl_intfunc_t (int);
0080 #define rl_ivoidfunc_t rl_hook_func_t
0081 typedef int rl_icpfunc_t (char *);
0082 typedef int rl_icppfunc_t (char **);
0083 
0084 typedef void rl_voidfunc_t (void);
0085 typedef void rl_vintfunc_t (int);
0086 typedef void rl_vcpfunc_t (char *);
0087 typedef void rl_vcppfunc_t (char **);
0088 
0089 typedef char *rl_cpvfunc_t (void);
0090 typedef char *rl_cpifunc_t (int);
0091 typedef char *rl_cpcpfunc_t (char  *);
0092 typedef char *rl_cpcppfunc_t (char  **);
0093 
0094 #endif /* _RL_FUNCTION_TYPEDEF */
0095 
0096 #ifdef __cplusplus
0097 }
0098 #endif
0099 
0100 #endif /* _RL_TYPEDEFS_H_ */