summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-10-26 11:05:38 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-10-26 11:05:38 +0000
commit1a80cd2aa00b232a9a2192a85d6264e44ffcbd69 (patch)
tree97a6c368818adf9978510f60b824ee1483e0c132
parentf648fcd2f91ea5c9ec318c2c0573ee82ac8c0ac9 (diff)
scaled-font: Fix documentation examples with incorrect derefs
Bug 24730 -- New: misleading use cases in cairo_scaled_font_text_to_glyphs's docs http://bugs.freedesktop.org/show_bug.cgi?id=24730 An apparent copy'n'paste error from the code which has to deal with indirect pointers crept into the documentation for the same functions.
-rw-r--r--src/cairo-scaled-font.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cairo-scaled-font.c b/src/cairo-scaled-font.c
index 5795d246..e4010e90 100644
--- a/src/cairo-scaled-font.c
+++ b/src/cairo-scaled-font.c
@@ -1612,11 +1612,11 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
* if (status == CAIRO_STATUS_SUCCESS) {
* cairo_show_text_glyphs (cr,
* utf8, utf8_len,
- * *glyphs, *num_glyphs,
- * *clusters, *num_clusters, *cluster_flags);
+ * glyphs, num_glyphs,
+ * clusters, num_clusters, cluster_flags);
*
- * cairo_glyph_free (*glyphs);
- * cairo_text_cluster_free (*clusters);
+ * cairo_glyph_free (glyphs);
+ * cairo_text_cluster_free (clusters);
* }
* </programlisting></informalexample>
*
@@ -1635,8 +1635,8 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
* NULL);
*
* if (status == CAIRO_STATUS_SUCCESS) {
- * cairo_show_glyphs (cr, *glyphs, *num_glyphs);
- * cairo_glyph_free (*glyphs);
+ * cairo_show_glyphs (cr, glyphs, num_glyphs);
+ * cairo_glyph_free (glyphs);
* }
* </programlisting></informalexample>
*
@@ -1662,13 +1662,13 @@ slim_hidden_def (cairo_scaled_font_glyph_extents);
* if (status == CAIRO_STATUS_SUCCESS) {
* cairo_show_text_glyphs (cr,
* utf8, utf8_len,
- * *glyphs, *num_glyphs,
- * *clusters, *num_clusters, *cluster_flags);
+ * glyphs, num_glyphs,
+ * clusters, num_clusters, cluster_flags);
*
* if (glyphs != stack_glyphs)
- * cairo_glyph_free (*glyphs);
+ * cairo_glyph_free (glyphs);
* if (clusters != stack_clusters)
- * cairo_text_cluster_free (*clusters);
+ * cairo_text_cluster_free (clusters);
* }
* </programlisting></informalexample>
*