Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dbe6832c
Commit
dbe6832c
authored
Apr 24, 2015
by
Arun Kuruvila
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mysql-5.1' into mysql-5.5
parents
6c11fedb
eb79ead4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
13 deletions
+22
-13
cmd-line-utils/libedit/el_terminal.h
cmd-line-utils/libedit/el_terminal.h
+2
-2
cmd-line-utils/libedit/emacs.c
cmd-line-utils/libedit/emacs.c
+5
-3
cmd-line-utils/libedit/terminal.c
cmd-line-utils/libedit/terminal.c
+10
-5
cmd-line-utils/libedit/vi.c
cmd-line-utils/libedit/vi.c
+5
-3
No files found.
cmd-line-utils/libedit/el_terminal.h
View file @
dbe6832c
/* $NetBSD: terminal.h,v 1.3 2011/07/29 23:44:45 christos Exp $ */
/* $NetBSD: terminal.h,v 1.3 2011/07/29 23:44:45 christos Exp $ */
/*-
/*-
* Copyright (c) 1992,
1993
* Copyright (c) 1992,
2015
* The Regents of the University of California. All rights reserved.
* The Regents of the University of California. All rights reserved.
*
*
* This code is derived from software contributed to Berkeley by
* This code is derived from software contributed to Berkeley by
...
@@ -103,7 +103,7 @@ protected int terminal_settc(EditLine *, int, const Char **);
...
@@ -103,7 +103,7 @@ protected int terminal_settc(EditLine *, int, const Char **);
protected
int
terminal_gettc
(
EditLine
*
,
int
,
char
**
);
protected
int
terminal_gettc
(
EditLine
*
,
int
,
char
**
);
protected
int
terminal_telltc
(
EditLine
*
,
int
,
const
Char
**
);
protected
int
terminal_telltc
(
EditLine
*
,
int
,
const
Char
**
);
protected
int
terminal_echotc
(
EditLine
*
,
int
,
const
Char
**
);
protected
int
terminal_echotc
(
EditLine
*
,
int
,
const
Char
**
);
protected
void
terminal_writec
(
EditLine
*
,
Int
);
protected
int
terminal_writec
(
EditLine
*
,
Int
);
protected
int
terminal__putc
(
EditLine
*
,
Int
);
protected
int
terminal__putc
(
EditLine
*
,
Int
);
protected
void
terminal__flush
(
EditLine
*
);
protected
void
terminal__flush
(
EditLine
*
);
...
...
cmd-line-utils/libedit/emacs.c
View file @
dbe6832c
/* $NetBSD: emacs.c,v 1.25 2011/07/29 15:16:33 christos Exp $ */
/* $NetBSD: emacs.c,v 1.25 2011/07/29 15:16:33 christos Exp $ */
/*-
/*-
* Copyright (c) 1992,
1993
* Copyright (c) 1992,
2015
* The Regents of the University of California. All rights reserved.
* The Regents of the University of California. All rights reserved.
*
*
* This code is derived from software contributed to Berkeley by
* This code is derived from software contributed to Berkeley by
...
@@ -58,8 +58,10 @@ em_delete_or_list(EditLine *el, Int c)
...
@@ -58,8 +58,10 @@ em_delete_or_list(EditLine *el, Int c)
/* if I'm at the end */
/* if I'm at the end */
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
buffer
)
{
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
buffer
)
{
/* and the beginning */
/* and the beginning */
terminal_writec
(
el
,
c
);
/* then do an EOF */
if
(
!
(
terminal_writec
(
el
,
c
)))
/* then do an EOF */
return
CC_EOF
;
return
CC_EOF
;
else
return
CC_ERROR
;
}
else
{
}
else
{
/*
/*
* Here we could list completions, but it is an
* Here we could list completions, but it is an
...
...
cmd-line-utils/libedit/terminal.c
View file @
dbe6832c
/* $NetBSD: terminal.c,v 1.10 2011/10/04 15:27:04 christos Exp $ */
/* $NetBSD: terminal.c,v 1.10 2011/10/04 15:27:04 christos Exp $ */
/*-
/*-
* Copyright (c) 1992,
1993
* Copyright (c) 1992,
2015
* The Regents of the University of California. All rights reserved.
* The Regents of the University of California. All rights reserved.
*
*
* This code is derived from software contributed to Berkeley by
* This code is derived from software contributed to Berkeley by
...
@@ -1271,14 +1271,19 @@ terminal__flush(EditLine *el)
...
@@ -1271,14 +1271,19 @@ terminal__flush(EditLine *el)
/* terminal_writec():
/* terminal_writec():
* Write the given character out, in a human readable form
* Write the given character out, in a human readable form
*/
*/
protected
void
protected
int
terminal_writec
(
EditLine
*
el
,
Int
c
)
terminal_writec
(
EditLine
*
el
,
Int
c
)
{
{
Char
visbuf
[
VISUAL_WIDTH_MAX
+
1
];
Char
visbuf
[
VISUAL_WIDTH_MAX
+
1
];
ssize_t
vcnt
=
ct_visual_char
(
visbuf
,
VISUAL_WIDTH_MAX
,
c
);
ssize_t
vcnt
=
ct_visual_char
(
visbuf
,
VISUAL_WIDTH_MAX
,
c
);
visbuf
[
vcnt
]
=
'\0'
;
if
(
vcnt
==
-
1
)
terminal_overwrite
(
el
,
visbuf
,
(
size_t
)
vcnt
);
return
1
;
/* Error due to insufficient space */
terminal__flush
(
el
);
else
{
visbuf
[
vcnt
]
=
'\0'
;
terminal_overwrite
(
el
,
visbuf
,
(
size_t
)
vcnt
);
terminal__flush
(
el
);
return
0
;
}
}
}
...
...
cmd-line-utils/libedit/vi.c
View file @
dbe6832c
/* $NetBSD: vi.c,v 1.41 2011/10/04 15:27:04 christos Exp $ */
/* $NetBSD: vi.c,v 1.41 2011/10/04 15:27:04 christos Exp $ */
/*-
/*-
* Copyright (c) 1992,
1993
* Copyright (c) 1992,
2015
* The Regents of the University of California. All rights reserved.
* The Regents of the University of California. All rights reserved.
*
*
* This code is derived from software contributed to Berkeley by
* This code is derived from software contributed to Berkeley by
...
@@ -607,8 +607,10 @@ vi_list_or_eof(EditLine *el, Int c)
...
@@ -607,8 +607,10 @@ vi_list_or_eof(EditLine *el, Int c)
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
lastchar
)
{
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
lastchar
)
{
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
buffer
)
{
if
(
el
->
el_line
.
cursor
==
el
->
el_line
.
buffer
)
{
terminal_writec
(
el
,
c
);
/* then do a EOF */
if
(
!
(
terminal_writec
(
el
,
c
)))
/* then do a EOF */
return
CC_EOF
;
return
CC_EOF
;
else
return
CC_ERROR
;
}
else
{
}
else
{
/*
/*
* Here we could list completions, but it is an
* Here we could list completions, but it is an
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment