aboutsummaryrefslogtreecommitdiffstats
path: root/Str.h
diff options
context:
space:
mode:
authorTatsuya Kinoshita <tats@debian.org>2015-08-06 14:09:58 +0000
committerTatsuya Kinoshita <tats@debian.org>2015-08-06 14:09:58 +0000
commit7834d34636db11b518444dd9ef005f42f6f1cb14 (patch)
tree457f676d4af7b0657f232f205ad62c54f39b20d2 /Str.h
parentUpdate ChangeLog (diff)
parentStrnew_charp and co do not modify the char* input (diff)
downloadw3m-7834d34636db11b518444dd9ef005f42f6f1cb14.tar.gz
w3m-7834d34636db11b518444dd9ef005f42f6f1cb14.zip
Merge pull request #6 from richq/static-checks
Static checks
Diffstat (limited to '')
-rw-r--r--Str.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Str.h b/Str.h
index f345c74..248815d 100644
--- a/Str.h
+++ b/Str.h
@@ -30,22 +30,22 @@ typedef struct _Str {
Str Strnew(void);
Str Strnew_size(int);
-Str Strnew_charp(char *);
-Str Strnew_charp_n(char *, int);
-Str Strnew_m_charp(char *, ...);
+Str Strnew_charp(const char *);
+Str Strnew_charp_n(const char *, int);
+Str Strnew_m_charp(const char *, ...);
Str Strdup(Str);
void Strclear(Str);
void Strfree(Str);
void Strcopy(Str, Str);
-void Strcopy_charp(Str, char *);
-void Strcopy_charp_n(Str, char *, int);
-void Strcat_charp_n(Str, char *, int);
+void Strcopy_charp(Str, const char *);
+void Strcopy_charp_n(Str, const char *, int);
+void Strcat_charp_n(Str, const char *, int);
void Strcat(Str, Str);
-void Strcat_charp(Str, char *);
+void Strcat_charp(Str, const char *);
void Strcat_m_charp(Str, ...);
Str Strsubstr(Str, int, int);
void Strinsert_char(Str, int, char);
-void Strinsert_charp(Str, int, char *);
+void Strinsert_charp(Str, int, const char *);
void Strdelete(Str, int, int);
void Strtruncate(Str, int);
void Strlower(Str);