[cairo] [PATCH] Fix a few more documentation typos
Fernando Carrijo
fcarrijo at yahoo.com.br
Tue Dec 29 16:57:01 PST 2009
This patch fixes a few more documentation typos found in Cairo.
---
src/cairo-cache.c | 6 ++----
src/cairo-hash.c | 2 +-
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/cairo-cache.c b/src/cairo-cache.c
index 025dd9f..a50c4a8 100644
--- a/src/cairo-cache.c
+++ b/src/cairo-cache.c
@@ -53,6 +53,7 @@ _cairo_cache_entry_is_non_zero (const void *entry)
* _cairo_cache_init:
* @cache: the #cairo_cache_t to initialise
* @keys_equal: a function to return %TRUE if two keys are equal
+ * @predicate: a function used to select an entry for ejection whenever the cache needs to be shrinked
* @entry_destroy: destroy notifier for cache entries
* @max_size: the maximum size for this cache
* Returns: the newly created #cairo_cache_t
@@ -184,15 +185,12 @@ _cairo_cache_thaw (cairo_cache_t *cache)
* _cairo_cache_lookup:
* @cache: a cache
* @key: the key of interest
- * @entry_return: pointer for return value
*
* Performs a lookup in @cache looking for an entry which has a key
* that matches @key, (as determined by the keys_equal() function
* passed to _cairo_cache_init()).
*
- * Return value: %TRUE if there is an entry in the cache that matches
- * @key, (which will now be in *entry_return). %FALSE otherwise, (in
- * which case *entry_return will be %NULL).
+ * Return value: the matching entry, or %NULL if no match was found.
**/
void *
_cairo_cache_lookup (cairo_cache_t *cache,
diff --git a/src/cairo-hash.c b/src/cairo-hash.c
index 15159d9..4efb68f 100644
--- a/src/cairo-hash.c
+++ b/src/cairo-hash.c
@@ -303,7 +303,7 @@ _cairo_hash_table_resize (cairo_hash_table_t *hash_table)
* key that matches @key, (as determined by the keys_equal() function
* passed to _cairo_hash_table_create).
*
- * Return value: the matching entry, of %NULL if no match was found.
+ * Return value: the matching entry, or %NULL if no match was found.
**/
void *
_cairo_hash_table_lookup (cairo_hash_table_t *hash_table,
--
1.5.6.3
More information about the cairo
mailing list