summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-05-14 04:24:47 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-05-14 04:24:47 +0000
commit3edbdfc9aaa778f76b6dc97f6ee55d389446e598 (patch)
treebd0a1daaae17dfe0dbf632c6a388e1424af2cecf
parentd12fc92eeb6f86502e3bd7658bfbe7e33c6c9e3a (diff)
downloadpango-3edbdfc9aaa778f76b6dc97f6ee55d389446e598.tar.gz
Mark some arguments const.
2007-05-14 Behdad Esfahbod <behdad@gnome.org> * pango/pango-ot-buffer.c (pango_ot_buffer_get_glyphs), (pango_ot_buffer_output): * pango/pango-ot-ruleset.c (pango_ot_ruleset_substitute), (pango_ot_ruleset_position): * pango/pango-ot.h: Mark some arguments const. svn path=/trunk/; revision=2288
-rw-r--r--ChangeLog9
-rw-r--r--pango/pango-ot-buffer.c10
-rw-r--r--pango/pango-ot-ruleset.c8
-rw-r--r--pango/pango-ot.h18
4 files changed, 27 insertions, 18 deletions
diff --git a/ChangeLog b/ChangeLog
index df291f6c..f9100ac4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2007-05-14 Behdad Esfahbod <behdad@gnome.org>
+
+ * pango/pango-ot-buffer.c (pango_ot_buffer_get_glyphs),
+ (pango_ot_buffer_output):
+ * pango/pango-ot-ruleset.c (pango_ot_ruleset_substitute),
+ (pango_ot_ruleset_position):
+ * pango/pango-ot.h:
+ Mark some arguments const.
+
2007-05-13 Behdad Esfahbod <behdad@gnome.org>
Part of Bug 325714 – Pango should respect $LANGUAGE
diff --git a/pango/pango-ot-buffer.c b/pango/pango-ot-buffer.c
index ca1ae99d..8804ebd8 100644
--- a/pango/pango-ot-buffer.c
+++ b/pango/pango-ot-buffer.c
@@ -163,9 +163,9 @@ pango_ot_buffer_set_zero_width_marks (PangoOTBuffer *buffer,
* Since: 1.4
**/
void
-pango_ot_buffer_get_glyphs (PangoOTBuffer *buffer,
- PangoOTGlyph **glyphs,
- int *n_glyphs)
+pango_ot_buffer_get_glyphs (const PangoOTBuffer *buffer,
+ PangoOTGlyph **glyphs,
+ int *n_glyphs)
{
if (glyphs)
*glyphs = (PangoOTGlyph *)buffer->buffer->in_string;
@@ -294,8 +294,8 @@ apply_gpos_rtl (PangoGlyphString *glyphs,
* Since: 1.4
**/
void
-pango_ot_buffer_output (PangoOTBuffer *buffer,
- PangoGlyphString *glyphs)
+pango_ot_buffer_output (const PangoOTBuffer *buffer,
+ PangoGlyphString *glyphs)
{
FT_Face face;
PangoOTInfo *info;
diff --git a/pango/pango-ot-ruleset.c b/pango/pango-ot-ruleset.c
index 75896f56..8efdcff9 100644
--- a/pango/pango-ot-ruleset.c
+++ b/pango/pango-ot-ruleset.c
@@ -342,8 +342,8 @@ pango_ot_ruleset_maybe_add_features (PangoOTRuleset *ruleset,
* Since: 1.4
**/
void
-pango_ot_ruleset_substitute (PangoOTRuleset *ruleset,
- PangoOTBuffer *buffer)
+pango_ot_ruleset_substitute (const PangoOTRuleset *ruleset,
+ PangoOTBuffer *buffer)
{
unsigned int i;
@@ -386,8 +386,8 @@ pango_ot_ruleset_substitute (PangoOTRuleset *ruleset,
* Since: 1.4
**/
void
-pango_ot_ruleset_position (PangoOTRuleset *ruleset,
- PangoOTBuffer *buffer)
+pango_ot_ruleset_position (const PangoOTRuleset *ruleset,
+ PangoOTBuffer *buffer)
{
unsigned int i;
diff --git a/pango/pango-ot.h b/pango/pango-ot.h
index df049378..7959c6d6 100644
--- a/pango/pango-ot.h
+++ b/pango/pango-ot.h
@@ -112,11 +112,11 @@ void pango_ot_buffer_add_glyph (PangoOTBuffer *buffer,
guint glyph,
guint properties,
guint cluster);
-void pango_ot_buffer_get_glyphs (PangoOTBuffer *buffer,
- PangoOTGlyph **glyphs,
- int *n_glyphs);
-void pango_ot_buffer_output (PangoOTBuffer *buffer,
- PangoGlyphString *glyphs);
+void pango_ot_buffer_get_glyphs (const PangoOTBuffer *buffer,
+ PangoOTGlyph **glyphs,
+ int *n_glyphs);
+void pango_ot_buffer_output (const PangoOTBuffer *buffer,
+ PangoGlyphString *glyphs);
void pango_ot_buffer_set_zero_width_marks (PangoOTBuffer *buffer,
gboolean zero_width_marks);
@@ -137,10 +137,10 @@ int pango_ot_ruleset_maybe_add_features (PangoOTRuleset *ru
PangoOTTableType table_type,
const PangoOTFeatureMap *features,
int n_features);
-void pango_ot_ruleset_substitute (PangoOTRuleset *ruleset,
- PangoOTBuffer *buffer);
-void pango_ot_ruleset_position (PangoOTRuleset *ruleset,
- PangoOTBuffer *buffer);
+void pango_ot_ruleset_substitute (const PangoOTRuleset *ruleset,
+ PangoOTBuffer *buffer);
+void pango_ot_ruleset_position (const PangoOTRuleset *ruleset,
+ PangoOTBuffer *buffer);
PangoScript pango_ot_tag_to_script (PangoOTTag script_tag);
PangoOTTag pango_ot_tag_from_script (PangoScript script);
PangoLanguage* pango_ot_tag_to_language (PangoOTTag language_tag);