joerg
9674b81ed9
Introduce __weakref_visible to handle the different required visibility
...
for weak references. GCC 4.2+ and Clang require static, older GCC wants
extern. Change __weak_reference to include sym. This requires changes
the existing users to not reuse the name of the symbol, but avoids
further differences between GCC 4.1 and GCC 4.2+/clang.
2011-02-22 05:45:05 +00:00
joerg
6f7bc0c1ed
Deal with changes in the weak_reference semantic in GCC 4.2 and later.
2011-02-17 16:44:48 +00:00
christos
f70a466a92
fix fd leak found by Igor Zinovik
2010-10-23 23:27:40 +00:00
christos
34e53048e6
Wide character support (UTF-8) from Johny Mattsson; currently disabled.
2009-12-30 22:37:40 +00:00
christos
954af9bb67
more size_t stuff.
2009-02-21 23:31:56 +00:00
christos
5c894153a3
pass lint on _LP64.
2009-02-15 21:55:23 +00:00
sketch
5e72d51013
Portability fix.
2009-02-06 13:14:37 +00:00
mrg
d257e1e9bd
__weakref__ attribute can not be applied to anything when inside function
...
scope, so, move the extern of get_alias_text outside vi_alias().
fixes build problems with GCC 4.1-20061021.
2006-10-22 07:48:13 +00:00
christos
96473fa808
change __weak_extern to __weak_reference so that gcc4 works.
2006-05-18 17:54:19 +00:00
christos
230c3d4ed6
Print the actual eofc, instead of ^D\b\b.
...
Change internal character decoding to prevent buffer oveflows.
2006-03-06 21:11:56 +00:00
christos
55ca57f0a2
Don't save the el->el_line.cursor over a cv_insert call and use it later
...
because it might change. From Stefan Farfedeler.
2005-08-10 12:46:24 +00:00
christos
fda9b4f722
Don't delete the current line in vi mode when typing 'yy'.
...
From Stefan Farfeleder.
2005-08-09 16:40:12 +00:00
christos
2ecb0fb73d
Spelling mistakes and comment errors (from FreeBSD via Stefan Farfeleder; many
...
thanks)
2005-08-08 14:05:37 +00:00
matt
35f4d7fe23
Terminate the arglist with a NULL instead of 0. (Shuts up gcc4.x)
2005-04-25 01:06:03 +00:00
mycroft
6360c4b0f8
Delete-previous-char and delete-next-char without an argument are not supposed
...
to modify the yank buffer in Emacs. Make it so.
2004-08-13 12:10:38 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
christos
839ca00b3c
From michael@moria.de:
...
- use __attribute__((__unused__)) in arguments where appropriate.
- some int -> size_t and char * to const char * conversions.
2003-06-19 15:55:05 +00:00
matt
362ac6119e
Only return CC_EOF if ^D (VEOF) was the only thing on the line. Otherwise
...
beep and don't do anything else. This mimics the behavor of ^D outside in
normal terminal mode. (^D in vi scrolls forwards and as such isn't
appropriate to emulation)
2003-06-04 20:14:05 +00:00
dsl
25456aecdb
Put the __weak_extern() back inside vi_alias, but after the extern for
...
get_alias_text().
2003-03-10 11:09:25 +00:00
he
d5428a2906
Move the __weak_extern() (ifdef'ed) outside of the vi_alias()
...
function, so that this compiles again.
2003-03-10 09:55:10 +00:00
christos
2ffae6453d
if no __weak_extern, don't even try to do vi_alias.
2003-03-10 01:14:07 +00:00
christos
61c24e2c2a
fix uninitialized variable.
...
grr, I want gcc-3.3
2003-03-10 01:05:12 +00:00
christos
39f224af48
PR/18995: David Laight: libedit fixes for posix conformant sh
...
The posix 'sh' specification defines vi-mode editing quite tightly.
The netbsd libedit code (used by sh to do this) was missing several
features, there were also minor errors in others.
Compare netbsd sh to the definition available from:
http://www.opengroup.org/onlinepubs/007904975/utilities/sh.html
In particular the following were not supported:
U - undo all changes to line
| - goto column
Y - yank to end of line
y - yank
# - comment out current line
@ - take input from shell alias [1]
G - goto numbered line in history buffer
v - edit history line with vi
_ - append word from last input line
. - redo last command
Other minor changes have also been made.
[1] This needs the shell to define an appropriate routine to
return the text of the alias. There is no requirement that
such a function exist.
2002-11-15 14:32:32 +00:00
christos
905b699ab7
support for % command [matching parens/brackets/braces] on vi modes.
...
From David Laight, thanks!
2002-10-31 02:01:46 +00:00
christos
a17c7fe4a6
vi mode and memory fixes from david laight.
2002-10-27 21:41:50 +00:00
christos
0e0ac6b723
- constify; passes all gcc and lint strict checks.
...
- add config.h [Jason Evans], to create a portable version of libedit that
can be easily compiled on other OS's.
2002-03-18 16:00:50 +00:00
lukem
d30d584a91
convert to new style guide, which includes:
...
- ansi prototypes & features (such as stdargs)
- 8 space indents
2000-09-04 22:06:28 +00:00
simonb
1528b77539
More trailing white space.
1999-07-02 15:14:07 +00:00
christos
571b899770
delint.
1999-02-05 20:53:49 +00:00
christos
a6d4afba22
delint
1998-12-12 20:08:21 +00:00
perry
0b7831a37b
remove obsolete register declarations
1998-02-03 19:12:13 +00:00
christos
54fac6850e
Fix compiler warnings.
1997-07-06 18:25:21 +00:00
lukem
2543e3e651
RCSid police
...
editline first appeared in 4.4BSD not NetBSD1.0
1997-01-11 06:47:47 +00:00
cgd
6dc2f1db52
libedit!
1994-05-06 06:01:42 +00:00