~ubuntu-branches/ubuntu/precise/mysql-5.5/precise-201203300109

« back to all changes in this revision

Viewing changes to cmd-line-utils/libedit/chared.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: chared.h,v 1.17 2006/03/06 21:11:56 christos Exp $     */
 
1
/*      $NetBSD: chared.h,v 1.21 2010/08/28 15:44:59 christos Exp $     */
2
2
 
3
3
/*-
4
4
 * Copyright (c) 1992, 1993
63
63
typedef struct c_macro_t {
64
64
        int       level;
65
65
        int       offset;
66
 
        char    **macro;
 
66
        Char    **macro;
67
67
} c_macro_t;
68
68
 
69
69
/*
70
70
 * Undo information for vi - no undo in emacs (yet)
71
71
 */
72
72
typedef struct c_undo_t {
73
 
        int      len;                   /* length of saved line */
 
73
        ssize_t  len;                   /* length of saved line */
74
74
        int      cursor;                /* position of saved cursor */
75
 
        char    *buf;                   /* full saved text */
 
75
        Char    *buf;                   /* full saved text */
76
76
} c_undo_t;
77
77
 
78
78
/* redo for vi */
79
79
typedef struct c_redo_t {
80
 
        char    *buf;                   /* redo insert key sequence */
81
 
        char    *pos;
82
 
        char    *lim;
 
80
        Char    *buf;                   /* redo insert key sequence */
 
81
        Char    *pos;
 
82
        Char    *lim;
83
83
        el_action_t     cmd;            /* command to redo */
84
 
        char    ch;                     /* char that invoked it */
 
84
        Char    ch;                     /* char that invoked it */
85
85
        int     count;
86
86
        int     action;                 /* from cv_action() */
87
87
} c_redo_t;
91
91
 */
92
92
typedef struct c_vcmd_t {
93
93
        int      action;
94
 
        char    *pos;
 
94
        Char    *pos;
95
95
} c_vcmd_t;
96
96
 
97
97
/*
98
98
 * Kill buffer for emacs
99
99
 */
100
100
typedef struct c_kill_t {
101
 
        char    *buf;
102
 
        char    *last;
103
 
        char    *mark;
 
101
        Char    *buf;
 
102
        Char    *last;
 
103
        Char    *mark;
104
104
} c_kill_t;
105
105
 
 
106
typedef void (*el_zfunc_t)(EditLine *, void *);
 
107
 
106
108
/*
107
109
 * Note that we use both data structures because the user can bind
108
110
 * commands from both editors!
113
115
        c_redo_t        c_redo;
114
116
        c_vcmd_t        c_vcmd;
115
117
        c_macro_t       c_macro;
 
118
        el_zfunc_t      c_resizefun;
 
119
        void *          c_resizearg;
116
120
} el_chared_t;
117
121
 
118
122
 
119
123
#define STRQQ           "\"\""
120
124
 
121
125
#define isglob(a)       (strchr("*[]?", (a)) != NULL)
122
 
#define isword(a)       (el_isprint(a))
123
126
 
124
127
#define NOP             0x00
125
128
#define DELETE          0x01
140
143
#include "fcns.h"
141
144
 
142
145
 
143
 
protected int    cv__isword(int);
144
 
protected int    cv__isWord(int);
 
146
protected int    cv__isword(Int);
 
147
protected int    cv__isWord(Int);
145
148
protected void   cv_delfini(EditLine *);
146
 
protected char  *cv__endword(char *, char *, int, int (*)(int));
147
 
protected int    ce__isword(int);
 
149
protected Char  *cv__endword(Char *, Char *, int, int (*)(Int));
 
150
protected int    ce__isword(Int);
148
151
protected void   cv_undo(EditLine *);
149
 
protected void   cv_yank(EditLine *, const char *, int);
150
 
protected char  *cv_next_word(EditLine*, char *, char *, int, int (*)(int));
151
 
protected char  *cv_prev_word(char *, char *, int, int (*)(int));
152
 
protected char  *c__next_word(char *, char *, int, int (*)(int));
153
 
protected char  *c__prev_word(char *, char *, int, int (*)(int));
 
152
protected void   cv_yank(EditLine *, const Char *, int);
 
153
protected Char  *cv_next_word(EditLine*, Char *, Char *, int, int (*)(Int));
 
154
protected Char  *cv_prev_word(Char *, Char *, int, int (*)(Int));
 
155
protected Char  *c__next_word(Char *, Char *, int, int (*)(Int));
 
156
protected Char  *c__prev_word(Char *, Char *, int, int (*)(Int));
154
157
protected void   c_insert(EditLine *, int);
155
158
protected void   c_delbefore(EditLine *, int);
156
159
protected void   c_delbefore1(EditLine *);
157
160
protected void   c_delafter(EditLine *, int);
158
161
protected void   c_delafter1(EditLine *);
159
 
protected int    c_gets(EditLine *, char *, const char *);
 
162
protected int    c_gets(EditLine *, Char *, const Char *);
160
163
protected int    c_hpos(EditLine *);
161
164
 
162
165
protected int    ch_init(EditLine *);
163
166
protected void   ch_reset(EditLine *, int);
 
167
protected int    ch_resizefun(EditLine *, el_zfunc_t, void *);
164
168
protected int    ch_enlargebufs(EditLine *, size_t);
165
169
protected void   ch_end(EditLine *);
166
170