aboutsummaryrefslogtreecommitdiffstats
path: root/Str.h
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2003-01-20 15:30:18 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2003-01-20 15:30:18 +0000
commit18eebc64880fabfebf4e118e5b9974d221dd20cd (patch)
treef51b02643683377438d82c27b20110a79a58265a /Str.h
parent[w3m-dev 03659] Can't download from SSL. (diff)
downloadw3m-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--Str.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Str.h b/Str.h
index 74c00c4..af0b2de 100644
--- a/Str.h
+++ b/Str.h
@@ -1,4 +1,4 @@
-/* $Id: Str.h,v 1.4 2001/11/24 02:01:26 ukai Exp $ */
+/* $Id: Str.h,v 1.5 2003/01/20 15:30:19 ukai Exp $ */
/*
* String manipulation library for Boehm GC
*
@@ -70,14 +70,14 @@ void Strgrow(Str s);
#define Strcmp(x,y) strcmp((x)->ptr,(y)->ptr)
#define Strcmp_charp(x,y) strcmp((x)->ptr,(y))
#define Strncmp(x,y,n) strncmp((x)->ptr,(y)->ptr,(n))
-#define Strncmp_charp(x,y,n) strncmp((x)->ptr,y,(n))
+#define Strncmp_charp(x,y,n) strncmp((x)->ptr,(y),(n))
#define Strcasecmp(x,y) strcasecmp((x)->ptr,(y)->ptr)
#define Strcasecmp_charp(x,y) strcasecmp((x)->ptr,(y))
#define Strncasecmp(x,y,n) strncasecmp((x)->ptr,(y)->ptr,(n))
-#define Strncasecmp_charp(x,y,n) strncasecmp((x)->ptr,y,(n))
+#define Strncasecmp_charp(x,y,n) strncasecmp((x)->ptr,(y),(n))
#define Strlastchar(s) ((s)->length>0?(s)->ptr[(s)->length-1]:'\0')
-#define Strinsert(s,n,p) Strinsert_charp(s,n,(p)->ptr)
-#define Strshrinkfirst(s,n) Strdelete(s,0,n)
+#define Strinsert(s,n,p) Strinsert_charp((s),(n),(p)->ptr)
+#define Strshrinkfirst(s,n) Strdelete((s),0,(n))
#define Strfputs(s,f) fwrite((s)->ptr,1,(s)->length,(f))
#endif /* not GC_STR_H */