diff options
author | Peter J. R. Moulder <pjmoulder@src.gnome.org> | 2008-03-30 05:43:43 +0000 |
---|---|---|
committer | Peter J. R. Moulder <pjmoulder@src.gnome.org> | 2008-03-30 05:43:43 +0000 |
commit | 8b60be7f9ac274c014294c51f88da884a3b0c99f (patch) | |
tree | 654b4d6a08a93e2bc0e957a010f87e8e597b5841 /src/cr-num.c | |
parent | 71b9dffeed9300e3c1c6168a6023a6ee9a086889 (diff) | |
download | libcroco-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-num.c')
-rw-r--r-- | src/cr-num.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cr-num.c b/src/cr-num.c index 2a14011..28c5df0 100644 --- a/src/cr-num.c +++ b/src/cr-num.c @@ -92,7 +92,7 @@ cr_num_new_with_val (gdouble a_val, enum CRNumType a_type) *free the returned string. */ guchar * -cr_num_to_string (CRNum * a_this) +cr_num_to_string (CRNum const * a_this) { gdouble test_val = 0.0; @@ -215,7 +215,7 @@ cr_num_to_string (CRNum * a_this) *error code otherwise. */ enum CRStatus -cr_num_copy (CRNum * a_dest, CRNum * a_src) +cr_num_copy (CRNum * a_dest, CRNum const * a_src) { g_return_val_if_fail (a_dest && a_src, CR_BAD_PARAM_ERROR); @@ -234,7 +234,7 @@ cr_num_copy (CRNum * a_dest, CRNum * a_src) *Must be freed by cr_num_destroy(). */ CRNum * -cr_num_dup (CRNum * a_this) +cr_num_dup (CRNum const * a_this) { CRNum *result = NULL; enum CRStatus status = CR_OK; @@ -284,7 +284,7 @@ cr_num_set (CRNum * a_this, gdouble a_val, enum CRNumType a_type) *FALSE otherwise. */ gboolean -cr_num_is_fixed_length (CRNum * a_this) +cr_num_is_fixed_length (CRNum const * a_this) { gboolean result = FALSE; |