add comments

This commit is contained in:
Fumitoshi UKAI
2003-09-26 17:59:51 +00:00
parent 0a1f4d97bf
commit eb5aa3e915
15 changed files with 145 additions and 18 deletions

6
func.c
View File

@@ -1,4 +1,4 @@
/* $Id: func.c,v 1.26 2003/09/24 18:48:59 ukai Exp $ */
/* $Id: func.c,v 1.27 2003/09/26 17:59:51 ukai Exp $ */
/*
* w3m func.c
*/
@@ -29,8 +29,10 @@ setKeymap(char *p, int lineno, int verbose)
c = getKey(s);
if (c < 0) { /* error */
if (lineno > 0)
/* FIXME: gettextize? */
emsg = Sprintf("line %d: unknown key '%s'", lineno, s)->ptr;
else
/* FIXME: gettextize? */
emsg = Sprintf("defkey: unknown key '%s'", s)->ptr;
record_err_message(emsg);
if (verbose)
@@ -41,8 +43,10 @@ setKeymap(char *p, int lineno, int verbose)
f = getFuncList(s);
if (f < 0) {
if (lineno > 0)
/* FIXME: gettextize? */
emsg = Sprintf("line %d: invalid command '%s'", lineno, s)->ptr;
else
/* FIXME: gettextize? */
emsg = Sprintf("defkey: invalid command '%s'", s)->ptr;
record_err_message(emsg);
if (verbose)