summaryrefslogtreecommitdiff
path: root/src/cr-string.c
diff options
context:
space:
mode:
authorPeter J. R. Moulder <pjmoulder@src.gnome.org>2008-03-30 05:43:43 +0000
committerPeter J. R. Moulder <pjmoulder@src.gnome.org>2008-03-30 05:43:43 +0000
commit8b60be7f9ac274c014294c51f88da884a3b0c99f (patch)
tree654b4d6a08a93e2bc0e957a010f87e8e597b5841 /src/cr-string.c
parent71b9dffeed9300e3c1c6168a6023a6ee9a086889 (diff)
downloadlibcroco-8b60be7f9ac274c014294c51f88da884a3b0c99f.tar.gz
Add ‘const’ to various function prototypes, as discussed at http://www.mail-archive.com/libcroco-list@gnome.org/msg00049.html . This change is a noop in the sense that it has no effect on libcroco's object files, but does affect source-level compatibility, both forwards and backwards — though in practice I'd guess that no existing code will break from this.
svn path=/trunk/; revision=315
Diffstat (limited to 'src/cr-string.c')
-rw-r--r--src/cr-string.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cr-string.c b/src/cr-string.c
index 2529b72..633fcab 100644
--- a/src/cr-string.c
+++ b/src/cr-string.c
@@ -72,7 +72,7 @@ cr_string_new_from_string (const gchar * a_string)
*@return the newly instanciated #CRString.
*/
CRString *
-cr_string_new_from_gstring (GString *a_string)
+cr_string_new_from_gstring (GString const *a_string)
{
CRString *result = NULL ;
@@ -91,7 +91,7 @@ cr_string_new_from_gstring (GString *a_string)
}
CRString *
-cr_string_dup (CRString *a_this)
+cr_string_dup (CRString const *a_this)
{
CRString *result = NULL ;
g_return_val_if_fail (a_this, NULL) ;
@@ -107,7 +107,7 @@ cr_string_dup (CRString *a_this)
}
gchar *
-cr_string_dup2 (CRString *a_this)
+cr_string_dup2 (CRString const *a_this)
{
gchar *result = NULL ;
@@ -128,7 +128,7 @@ cr_string_dup2 (CRString *a_this)
*@param a_this the current instance of #CRString
*/
const gchar *
-cr_string_peek_raw_str (CRString *a_this)
+cr_string_peek_raw_str (CRString const *a_this)
{
g_return_val_if_fail (a_this, NULL) ;
@@ -145,7 +145,7 @@ cr_string_peek_raw_str (CRString *a_this)
*of -1 if no length can be returned.
*/
gint
-cr_string_peek_raw_str_len (CRString *a_this)
+cr_string_peek_raw_str_len (CRString const *a_this)
{
g_return_val_if_fail (a_this && a_this->stryng,
-1) ;