aboutsummaryrefslogtreecommitdiffstats
path: root/history.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-09-26 17:59:51 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-09-26 17:59:51 +0000
commiteb5aa3e9152b2078fc3341625b9eeecd6328494a (patch)
treea19587f2a7efc6f78ce5946016aad9d16ca30d53 /history.c
parentconv.c ucs_eucjp.h ucs_latin1.h: deleted (diff)
downloadw3m-eb5aa3e9152b2078fc3341625b9eeecd6328494a.tar.gz
w3m-eb5aa3e9152b2078fc3341625b9eeecd6328494a.zip
add comments
Diffstat (limited to '')
-rw-r--r--history.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/history.c b/history.c
index b2ef573..951ef83 100644
--- a/history.c
+++ b/history.c
@@ -1,4 +1,4 @@
-/* $Id: history.c,v 1.10 2003/07/22 17:29:48 ukai Exp $ */
+/* $Id: history.c,v 1.11 2003/09/26 17:59:51 ukai Exp $ */
#include "fm.h"
#ifdef USE_HISTORY
@@ -9,6 +9,7 @@ historyBuffer(Hist *hist)
HistItem *item;
char *p, *q;
+ /* FIXME: gettextize? */
Strcat_charp(src, "<html>\n<head><title>History Page</title></head>\n");
Strcat_charp(src, "<body>\n<h1>History Page</h1>\n<hr>\n");
Strcat_charp(src, "<ol>\n");
@@ -64,6 +65,7 @@ saveHistory(Hist *hist, size_t size)
return;
tmpf = tmpfname(TMPF_DFL, NULL)->ptr;
if ((f = fopen(tmpf, "w")) == NULL) {
+ /* FIXME: gettextize? */
disp_err_message("Can't open history", FALSE);
return;
}
@@ -73,6 +75,7 @@ saveHistory(Hist *hist, size_t size)
for (; item; item = item->next)
fprintf(f, "%s\n", (char *)item->ptr);
if (fclose(f) == EOF) {
+ /* FIXME: gettextize? */
disp_err_message("Can't save history", FALSE);
return;
}