aboutsummaryrefslogtreecommitdiff
path: root/devel/libedit/files
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-02-06 03:06:29 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-02-06 03:06:29 +0000
commitee71eecb03eccf100697bfb72a00c9910d05a1e3 (patch)
tree14056cbb796a5caa425bb2a012fc558accbed2a6 /devel/libedit/files
parent5b6c2fbb3e55a502c571e251fdd0f9001e8ef7de (diff)
downloadports-ee71eecb03eccf100697bfb72a00c9910d05a1e3.tar.gz
ports-ee71eecb03eccf100697bfb72a00c9910d05a1e3.zip
Notes
Diffstat (limited to 'devel/libedit/files')
-rw-r--r--devel/libedit/files/patch-history.c16
-rw-r--r--devel/libedit/files/patch-makelist11
-rw-r--r--devel/libedit/files/patch-vi.c22
3 files changed, 22 insertions, 27 deletions
diff --git a/devel/libedit/files/patch-history.c b/devel/libedit/files/patch-history.c
deleted file mode 100644
index a035eec96202..000000000000
--- a/devel/libedit/files/patch-history.c
+++ /dev/null
@@ -1,16 +0,0 @@
---- history.c.orig Tue Nov 23 01:41:41 2004
-+++ history.c Tue Nov 23 01:43:09 2004
-@@ -728,10 +728,10 @@
- for (i = 0, retval = HLAST(h, &ev);
- retval != -1;
- retval = HPREV(h, &ev), i++) {
-- len = strlen(ev.str) * 4;
-- if (len >= max_size) {
-+ len = strlen(ev.str) * 4 + 1;
-+ if (len > max_size) {
- char *nptr;
-- max_size = (len + 1023) & 1023;
-+ max_size = (len + 1023) & ~1023;
- nptr = h_realloc(ptr, max_size);
- if (nptr == NULL) {
- i = -1;
diff --git a/devel/libedit/files/patch-makelist b/devel/libedit/files/patch-makelist
deleted file mode 100644
index da82137a8109..000000000000
--- a/devel/libedit/files/patch-makelist
+++ /dev/null
@@ -1,11 +0,0 @@
---- makelist.orig Tue Sep 13 00:37:41 2005
-+++ makelist Tue Sep 13 00:38:08 2005
-@@ -145,7 +145,7 @@
- #
- -fh)
- cat $FILES | $AWK '/el_action_t/ { print $3 }' | \
-- sort | tr '[a-z]' '[A-Z]' | $AWK '
-+ sort | tr '[:lower:]' '[:upper:]' | $AWK '
- BEGIN {
- printf("/* Automatically generated file, do not edit */\n");
- printf("#ifndef _h_fcns_c\n#define _h_fcns_c\n");
diff --git a/devel/libedit/files/patch-vi.c b/devel/libedit/files/patch-vi.c
new file mode 100644
index 000000000000..b6dbc2adfe3e
--- /dev/null
+++ b/devel/libedit/files/patch-vi.c
@@ -0,0 +1,22 @@
+--- vi.c.orig Sun Feb 4 11:49:12 2007
++++ vi.c Sun Feb 4 11:51:31 2007
+@@ -915,16 +915,15 @@
+ * NB: posix implies that we should enter insert mode, however
+ * this is against historical precedent...
+ */
+-#ifdef __weak_reference
+-extern char *get_alias_text(const char *) __weak_reference(get_alias_text);
+-#endif
+ protected el_action_t
+ /*ARGSUSED*/
+ vi_alias(EditLine *el, int c)
+ {
+-#ifdef __weak_reference
++#ifdef __weak_extern
+ char alias_name[3];
+ char *alias_text;
++ extern char *get_alias_text(const char *);
++ __weak_extern(get_alias_text);
+
+ if (get_alias_text == 0) {
+ return CC_ERROR;