aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2001-12-14 17:10:54 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2001-12-14 17:10:54 +0000
commit68d47de87a8f4cda2d7d50bb3a6291528d48b333 (patch)
tree0cbb4b6ecbcf861dc19dee84f177a70044b2a8d1
parent[w3m-dev 02541] mouse support on cygwin (diff)
downloadw3m-68d47de87a8f4cda2d7d50bb3a6291528d48b333.tar.gz
w3m-68d47de87a8f4cda2d7d50bb3a6291528d48b333.zip
[w3m-dev 02656]
From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
Diffstat (limited to '')
-rw-r--r--ChangeLog9
-rw-r--r--XMakefile4
-rw-r--r--anchor.c10
-rw-r--r--indep.c14
4 files changed, 20 insertions, 17 deletions
diff --git a/ChangeLog b/ChangeLog
index 9605de8..f26b80f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2001-12-15 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
+
+ * [w3m-dev 02656]
+ * XMakefile (clean): remove functable.c
+ * anchor.c (_put_anchor_new): use Strnew_size() and Strcat_charp_n()
+ * indep.c (getescapechar): use GET_MYCDIGIT
+
2001-12-13 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
* [w3m-dev 02541] mouse support on cygwin
@@ -1225,4 +1232,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.125 2001/12/12 17:04:20 ukai Exp $
+$Id: ChangeLog,v 1.126 2001/12/14 17:10:54 ukai Exp $
diff --git a/XMakefile b/XMakefile
index b4c8c3b..9dbdd48 100644
--- a/XMakefile
+++ b/XMakefile
@@ -1,4 +1,4 @@
-# $Id: XMakefile,v 1.16 2001/12/10 17:02:44 ukai Exp $
+# $Id: XMakefile,v 1.17 2001/12/14 17:10:54 ukai Exp $
SRCS=main.c file.c buffer.c display.c etc.c search.c linein.c table.c local.c \
form.c map.c frame.c rc.c menu.c mailcap.c\
func.c cookie.c history.c backend.c $(KEYBIND_SRC)
@@ -142,7 +142,7 @@ uninstall:
clean: sweep
-rm -f *.o *.a $(TARGETS) mktable$(EXT)
- -rm -f funcname.c funcname1.h funcname2.h tagtable.c
+ -rm -f funcname.c funcname1.h funcname2.h tagtable.c functable.c
-for dir in $(SCRIPTSUBDIRS); \
do \
(cd $$dir; $(MAKE) clean); \
diff --git a/anchor.c b/anchor.c
index 02e7ef1..d54f827 100644
--- a/anchor.c
+++ b/anchor.c
@@ -1,4 +1,4 @@
-/* $Id: anchor.c,v 1.6 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: anchor.c,v 1.7 2001/12/14 17:10:54 ukai Exp $ */
#include "fm.h"
#include "myctype.h"
#include "regex.h"
@@ -185,14 +185,14 @@ searchURLLabel(Buffer *buf, char *url)
static Anchor *
_put_anchor_news(Buffer *buf, char *p1, char *p2, int line, int pos)
{
- Str tmp = Strnew_charp("news:");
+ Str tmp;
p1++;
if (*(p2 - 1) == '>')
p2--;
- while (p1 < p2) {
- Strcat_char(tmp, *(p1++));
- }
+ tmp = Strnew_size(sizeof("news:") - 1 + (p2 - p1));
+ Strcat_charp_n(tmp, "news:", sizeof("news:") - 1);
+ Strcat_charp_n(tmp, p1, p2 - p1);
return registerHref(buf, tmp->ptr, NULL, NO_REFERER, line, pos);
}
#endif /* USE_NNTP */
diff --git a/indep.c b/indep.c
index f47f4a4..95f89f8 100644
--- a/indep.c
+++ b/indep.c
@@ -1,4 +1,4 @@
-/* $Id: indep.c,v 1.17 2001/12/10 17:02:44 ukai Exp $ */
+/* $Id: indep.c,v 1.18 2001/12/14 17:10:54 ukai Exp $ */
#include "fm.h"
#include <stdio.h>
#include <pwd.h>
@@ -286,13 +286,11 @@ getescapechar(char **str)
*str = p;
return -1;
}
- q = p;
- for (p++; IS_XDIGIT(*p); p++) ;
- q = allocStr(q, p - q);
+ for (dummy = GET_MYCDIGIT(*p), p++; IS_XDIGIT(*p); p++)
+ dummy = dummy * 0x10 + GET_MYCDIGIT(*p);
if (*p == ';')
p++;
*str = p;
- sscanf(q, "%x", &dummy);
return dummy;
}
else {
@@ -300,13 +298,11 @@ getescapechar(char **str)
*str = p;
return -1;
}
- q = p;
- for (p++; IS_DIGIT(*p); p++) ;
- q = allocStr(q, p - q);
+ for (dummy = GET_MYCDIGIT(*p), p++; IS_DIGIT(*p); p++)
+ dummy = dummy * 10 + GET_MYCDIGIT(*p);
if (*p == ';')
p++;
*str = p;
- sscanf(q, "%d", &dummy);
return dummy;
}
}