~ubuntu-branches/ubuntu/raring/mysql-5.5/raring-proposed

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/readline/readline.h

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-02-14 23:59:22 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20120214235922-cux5uek1e5l0hje9
Tags: 5.5.20-0ubuntu1
* New upstream release.
* d/mysql-server-5.5.mysql.upstart: Fix stop on to make sure mysql is
  fully stopped before shutdown commences. (LP: #688541) Also simplify
  start on as it is redundant.
* d/control: Depend on upstart version which has apparmor profile load
  script to prevent failure on upgrade from lucid to precise.
  (LP: #907465)
* d/apparmor-profile: need to allow /run since that is the true path
  of /var/run files. (LP: #917542)
* d/control: mysql-server-5.5 has files in it that used to be owned
  by libmysqlclient-dev, so it must break/replace it. (LP: #912487)
* d/rules, d/control: 5.5.20 Fixes segfault on tests with gcc 4.6,
  change compiler back to system default.
* d/rules: Turn off embedded libedit/readline.(Closes: #659566)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*      $NetBSD: readline.h,v 1.24 2009/02/05 19:15:26 christos Exp $   */
 
1
/*      $NetBSD: readline.h,v 1.32 2010/09/16 20:08:52 christos Exp $   */
2
2
 
3
3
/*-
4
4
 * Copyright (c) 1997 The NetBSD Foundation, Inc.
32
32
#define _READLINE_H_
33
33
 
34
34
#include <sys/types.h>
 
35
#include <stdio.h>
35
36
 
36
37
/* list of readline stuff supported by editline library's readline wrapper */
37
38
 
42
43
typedef char     *CPFunction(const char *, int);
43
44
typedef char    **CPPFunction(const char *, int, int);
44
45
typedef char     *rl_compentry_func_t(const char *, int);
 
46
typedef int       rl_command_func_t(int, int);
 
47
 
 
48
/* only supports length */
 
49
typedef struct {
 
50
        int length;
 
51
} HISTORY_STATE;
 
52
 
 
53
typedef void *histdata_t;
45
54
 
46
55
typedef struct _hist_entry {
47
56
        const char      *line;
48
 
        const char      *data;
 
57
        histdata_t       data;
49
58
} HIST_ENTRY;
50
59
 
51
60
typedef struct _keymap_entry {
79
88
 
80
89
#define RUBOUT          0x7f
81
90
#define ABORT_CHAR      CTRL('G')
 
91
#define RL_READLINE_VERSION     0x0402
 
92
#define RL_PROMPT_START_IGNORE  '\1'
 
93
#define RL_PROMPT_END_IGNORE    '\2'
82
94
 
83
95
/* global variables used by readline enabled applications */
84
96
#ifdef __cplusplus
85
97
extern "C" {
86
98
#endif
87
99
extern const char       *rl_library_version;
 
100
extern int              rl_readline_version; 
88
101
extern char             *rl_readline_name;
89
102
extern FILE             *rl_instream;
90
103
extern FILE             *rl_outstream;
138
151
HIST_ENTRY      *current_history(void);
139
152
HIST_ENTRY      *history_get(int);
140
153
HIST_ENTRY      *remove_history(int);
 
154
HIST_ENTRY      *replace_history_entry(int, const char *, histdata_t);
141
155
int              history_total_bytes(void);
142
156
int              history_set_pos(int);
143
157
HIST_ENTRY      *previous_history(void);
147
161
int              history_search_pos(const char *, int, int);
148
162
int              read_history(const char *);
149
163
int              write_history(const char *);
 
164
int              history_truncate_file (const char *, int);
150
165
int              history_expand(char *, char **);
151
166
char           **history_tokenize(const char *);
152
167
const char      *get_history_event(const char *, int *, int);
161
176
void             rl_display_match_list(char **, int, int);
162
177
 
163
178
int              rl_insert(int, int);
 
179
int              rl_insert_text(const char *);
164
180
void             rl_reset_terminal(const char *);
165
 
int              rl_bind_key(int, int (*)(int, int));
 
181
int              rl_bind_key(int, rl_command_func_t *);
166
182
int              rl_newline(int, int);
167
183
void             rl_callback_read_char(void);
168
184
void             rl_callback_handler_install(const char *, VCPFunction *);
176
192
int              rl_variable_bind(const char *, const char *);
177
193
void             rl_stuff_char(int);
178
194
int              rl_add_defun(const char *, Function *, int);
 
195
HISTORY_STATE   *history_get_history_state(void);
179
196
void             rl_get_screen_size(int *, int *);
180
197
void             rl_set_screen_size(int, int);
181
198
char            *rl_filename_completion_function (const char *, int);
184
201
char           **rl_completion_matches(const char *, rl_compentry_func_t *);
185
202
void             rl_forced_update_display(void);
186
203
int              rl_set_prompt(const char *);
 
204
int              rl_on_new_line(void);
187
205
 
188
206
/*
189
207
 * The following are not implemented
193
211
void             rl_set_keymap(Keymap);
194
212
Keymap           rl_make_bare_keymap(void);
195
213
int              rl_generic_bind(int, const char *, const char *, Keymap);
196
 
int              rl_bind_key_in_map(int, Function *, Keymap);
 
214
int              rl_bind_key_in_map(int, rl_command_func_t *, Keymap);
 
215
void             rl_cleanup_after_signal(void);
 
216
void             rl_free_line_state(void);
197
217
#ifdef __cplusplus
198
218
}
199
219
#endif