- Update of devel/libedit from 2.6.9 to 2.6.10

PR:		ports/108752
Submitted by:	Martin Matuska <martin_AT_matuska dot org>
This commit is contained in:
Cheng-Lung Sung
2007-02-06 03:06:29 +00:00
parent 5b6c2fbb3e
commit ee71eecb03
5 changed files with 26 additions and 32 deletions

View File

@@ -6,8 +6,7 @@
#
PORTNAME= libedit
PORTVERSION= 2.6.9
PORTREVISION= 2
PORTVERSION= 2.6.10
CATEGORIES= devel
MASTER_SITES= ftp://ftp.astron.com/pub/libedit/ \
http://www.canonware.com/download/libedit/

View File

@@ -1,3 +1,3 @@
MD5 (libedit-2.6.9.tar.gz) = a007a8134d9daf4340c985085441ca6d
SHA256 (libedit-2.6.9.tar.gz) = 140cc16da71d4dfec200625cb960ec2341a04016f81c935cba1d5012fd1651c6
SIZE (libedit-2.6.9.tar.gz) = 156318
MD5 (libedit-2.6.10.tar.gz) = b7b332b2db3ea11c1c457d610aa0bbeb
SHA256 (libedit-2.6.10.tar.gz) = 57507d1329158979e31807065e026ebc93f65600e18ed41fb355a1142d2a649b
SIZE (libedit-2.6.10.tar.gz) = 182917

View File

@@ -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;

View File

@@ -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");

View File

@@ -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;