diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-20 15:30:18 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2003-01-20 15:30:18 +0000 |
commit | 18eebc64880fabfebf4e118e5b9974d221dd20cd (patch) | |
tree | f51b02643683377438d82c27b20110a79a58265a /table.c | |
parent | [w3m-dev 03659] Can't download from SSL. (diff) | |
download | w3m-18eebc64880fabfebf4e118e5b9974d221dd20cd.tar.gz w3m-18eebc64880fabfebf4e118e5b9974d221dd20cd.zip |
[w3m-dev 03660] Re: fputs -> Strfputs
* Str.h (Strncmp_charp): paren
(Strncasecmp_charp): ditto
(Strinsert): ditto
(Strshrinkfirst): ditto
* display.c (disp_err_message): added
* file.c (loadGeneralFile): don't put function in macro arg
(saveBuffer): ditto
* frame.c (createFrameFile): ditto
* proto.h (disp_err_message): macro->function
* table.c (pushdata): if data is NULL, use ""
(suspend_or_pushdata): if line is NULL, use ""
* textlist.h (pushText): don't use (s) twice in a macro
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | table.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: table.c,v 1.37 2002/12/17 16:17:30 ukai Exp $ */ +/* $Id: table.c,v 1.38 2003/01/20 15:30:21 ukai Exp $ */ /* * HTML table */ @@ -449,7 +449,7 @@ pushdata(struct table *t, int row, int col, char *data) if (t->tabdata[row][col] == NULL) t->tabdata[row][col] = newGeneralList(); - pushText(t->tabdata[row][col], data); + pushText(t->tabdata[row][col], data ? data : ""); } void @@ -460,7 +460,7 @@ suspend_or_pushdata(struct table *tbl, char *line) else { if (!tbl->suspended_data) tbl->suspended_data = newTextList(); - pushText(tbl->suspended_data, line); + pushText(tbl->suspended_data, line ? line : ""); } } |