summaryrefslogtreecommitdiff
path: root/src/cr-term.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-term.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-term.c')
-rw-r--r--src/cr-term.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/cr-term.c b/src/cr-term.c
index 33eed40..d6db51a 100644
--- a/src/cr-term.c
+++ b/src/cr-term.c
@@ -276,10 +276,10 @@ cr_term_prepend_term (CRTerm * a_this, CRTerm * a_new_term)
*form of #CRTerm. MUST BE FREED BY THE CALLER using g_free().
*/
guchar *
-cr_term_to_string (CRTerm * a_this)
+cr_term_to_string (CRTerm const * a_this)
{
GString *str_buf = NULL;
- CRTerm *cur = NULL;
+ CRTerm const *cur = NULL;
guchar *result = NULL,
*content = NULL;
@@ -473,7 +473,7 @@ cr_term_to_string (CRTerm * a_this)
}
guchar *
-cr_term_one_to_string (CRTerm * a_this)
+cr_term_one_to_string (CRTerm const * a_this)
{
GString *str_buf = NULL;
guchar *result = NULL,
@@ -677,7 +677,7 @@ cr_term_one_to_string (CRTerm * a_this)
*@param a_fp the destination file pointer.
*/
void
-cr_term_dump (CRTerm * a_this, FILE * a_fp)
+cr_term_dump (CRTerm const * a_this, FILE * a_fp)
{
guchar *content = NULL;
@@ -697,9 +697,9 @@ cr_term_dump (CRTerm * a_this, FILE * a_fp)
*@return number of terms in the expression.
*/
int
-cr_term_nr_values (CRTerm *a_this)
+cr_term_nr_values (CRTerm const *a_this)
{
- CRTerm *cur = NULL ;
+ CRTerm const *cur = NULL ;
int nr = 0;
g_return_val_if_fail (a_this, -1) ;