summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2002-11-08 19:00:52 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2002-11-08 19:00:52 +0000
commit23c23546a22a785be7eca60f4bc59f7723456ffe (patch)
tree17eb05c1468d6ade4fc77feb36547d026a6de5af
parent1b16a7e3e014d4b4f4e6f30521a572689fa75df5 (diff)
downloadpango-23c23546a22a785be7eca60f4bc59f7723456ffe.tar.gz
Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk> * docs/tmpl/coverage-maps.sgml: * docs/tmpl/glyphs.sgml: * docs/tmpl/layout.sgml: * docs/tmpl/x-fonts.sgml: * pango/mapping.c: * pango/pango-coverage.c: * pango/pango-coverage.h: * pango/pango-glyph.h: * pango/pango-layout.c: * pango/pango-layout.h: * pango/pangox.h: Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow (#91680).
-rw-r--r--ChangeLog17
-rw-r--r--ChangeLog.pre-1-1017
-rw-r--r--ChangeLog.pre-1-217
-rw-r--r--ChangeLog.pre-1-417
-rw-r--r--ChangeLog.pre-1-617
-rw-r--r--ChangeLog.pre-1-817
-rw-r--r--docs/tmpl/coverage-maps.sgml4
-rw-r--r--docs/tmpl/glyphs.sgml4
-rw-r--r--docs/tmpl/layout.sgml14
-rw-r--r--docs/tmpl/x-fonts.sgml2
-rw-r--r--pango/mapping.c4
-rw-r--r--pango/pango-coverage.c6
-rw-r--r--pango/pango-coverage.h4
-rw-r--r--pango/pango-glyph.h4
-rw-r--r--pango/pango-layout.c20
-rw-r--r--pango/pango-layout.h14
-rw-r--r--pango/pangox.h2
17 files changed, 141 insertions, 39 deletions
diff --git a/ChangeLog b/ChangeLog
index fd51e07d..f98aab48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index fd51e07d..f98aab48 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/ChangeLog.pre-1-2 b/ChangeLog.pre-1-2
index fd51e07d..f98aab48 100644
--- a/ChangeLog.pre-1-2
+++ b/ChangeLog.pre-1-2
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/ChangeLog.pre-1-4 b/ChangeLog.pre-1-4
index fd51e07d..f98aab48 100644
--- a/ChangeLog.pre-1-4
+++ b/ChangeLog.pre-1-4
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index fd51e07d..f98aab48 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index fd51e07d..f98aab48 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,20 @@
+Fri Nov 8 20:02:09 2002 Soeren Sandmann <sandmann@daimi.au.dk>
+
+ * docs/tmpl/coverage-maps.sgml:
+ * docs/tmpl/glyphs.sgml:
+ * docs/tmpl/layout.sgml:
+ * docs/tmpl/x-fonts.sgml:
+ * pango/mapping.c:
+ * pango/pango-coverage.c:
+ * pango/pango-coverage.h:
+ * pango/pango-glyph.h:
+ * pango/pango-layout.c:
+ * pango/pango-layout.h:
+ * pango/pangox.h:
+
+ Trivial s/foo/foo_/ fixes to make pango.h includable with -Wshadow
+ (#91680).
+
2002-11-09 Changwoo Ryu <cwryu@debian.org>
* modules/hangul/hangul-x.c (render_syllable_with_ksx1001johab):
diff --git a/docs/tmpl/coverage-maps.sgml b/docs/tmpl/coverage-maps.sgml
index c3116ed2..710960a3 100644
--- a/docs/tmpl/coverage-maps.sgml
+++ b/docs/tmpl/coverage-maps.sgml
@@ -88,7 +88,7 @@ point to #PangoCoverageLevel. It is an opaque structure with no public fields.
</para>
@coverage:
-@index:
+@index_:
@Returns:
@@ -107,7 +107,7 @@ point to #PangoCoverageLevel. It is an opaque structure with no public fields.
</para>
@coverage:
-@index:
+@index_:
@level:
diff --git a/docs/tmpl/glyphs.sgml b/docs/tmpl/glyphs.sgml
index 3f48405d..9be721ce 100644
--- a/docs/tmpl/glyphs.sgml
+++ b/docs/tmpl/glyphs.sgml
@@ -319,7 +319,7 @@ The GObject type for #PangoGlyphString.
@text:
@length:
@analysis:
-@index:
+@index_:
@trailing:
@x_pos:
@@ -334,7 +334,7 @@ The GObject type for #PangoGlyphString.
@length:
@analysis:
@x_pos:
-@index:
+@index_:
@trailing:
diff --git a/docs/tmpl/layout.sgml b/docs/tmpl/layout.sgml
index 8be32be5..dc52d942 100644
--- a/docs/tmpl/layout.sgml
+++ b/docs/tmpl/layout.sgml
@@ -359,7 +359,7 @@ The GObject type for #PangoAlignment.
@layout:
@x:
@y:
-@index:
+@index_:
@trailing:
@Returns:
@@ -370,7 +370,7 @@ The GObject type for #PangoAlignment.
</para>
@layout:
-@index:
+@index_:
@pos:
@@ -380,7 +380,7 @@ The GObject type for #PangoAlignment.
</para>
@layout:
-@index:
+@index_:
@strong_pos:
@weak_pos:
@@ -600,8 +600,8 @@ The GObject type for #PangoAlignment.
</para>
@iter:
-@y0:
-@y1:
+@y0_:
+@y1_:
<!-- ##### FUNCTION pango_layout_iter_get_line_extents ##### -->
@@ -694,7 +694,7 @@ a #PangoLayoutLine.
</para>
@line:
-@index:
+@index_:
@trailing:
@x_pos:
@@ -706,7 +706,7 @@ a #PangoLayoutLine.
@line:
@x_pos:
-@index:
+@index_:
@trailing:
@Returns:
diff --git a/docs/tmpl/x-fonts.sgml b/docs/tmpl/x-fonts.sgml
index eabc2afa..048a30d4 100644
--- a/docs/tmpl/x-fonts.sgml
+++ b/docs/tmpl/x-fonts.sgml
@@ -30,7 +30,7 @@ of a character with the corresponding X font.
</para>
@subfont: a #PangoXSubfont index
-@index: the index of a character within an X font.
+@index_: the index of a character within an X font.
<!-- ##### MACRO PANGO_X_GLYPH_SUBFONT ##### -->
diff --git a/pango/mapping.c b/pango/mapping.c
index a5e6a872..46e45ac8 100644
--- a/pango/mapping.c
+++ b/pango/mapping.c
@@ -36,7 +36,7 @@
* @text: the text for the run
* @length: the number of bytes (not characters) in @text.
* @analysis: the analysis information return from pango_itemize()
- * @index: the byte index within @text
+ * @index_: the byte index within @text
* @trailing: whether we should compute the result for the beginning
* or end of the character.
* @x_pos: location to store result
@@ -160,7 +160,7 @@ pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
* @length: the number of bytes (not characters) in text.
* @analysis: the analysis information return from pango_itemize()
* @x_pos: the x offset (in thousands of a device unit)
- * @index: location to store calculated byte index within @text
+ * @index_: location to store calculated byte index within @text
* @trailing: location to store a integer indicating where
* whether the user clicked on the leading or trailing
* edge of the character.
diff --git a/pango/pango-coverage.c b/pango/pango-coverage.c
index 10b37f96..52a7c958 100644
--- a/pango/pango-coverage.c
+++ b/pango/pango-coverage.c
@@ -156,7 +156,7 @@ pango_coverage_unref (PangoCoverage *coverage)
/**
* pango_coverage_get:
* @coverage: a #PangoCoverage
- * @index: the index to check
+ * @index_: the index to check
*
* Determine whether a particular index is covered by @coverage
*
@@ -192,8 +192,8 @@ pango_coverage_get (PangoCoverage *coverage,
/**
* pango_coverage_set:
* @coverage: a #PangoCoverage
- * @index: the index to modify
- * @level: the new level for @index
+ * @index_: the index to modify
+ * @level: the new level for @index_
*
* Modify a particular index within @coverage
**/
diff --git a/pango/pango-coverage.h b/pango/pango-coverage.h
index 0ebe4fb6..e1e8d133 100644
--- a/pango/pango-coverage.h
+++ b/pango/pango-coverage.h
@@ -40,9 +40,9 @@ PangoCoverage * pango_coverage_ref (PangoCoverage *coverage);
void pango_coverage_unref (PangoCoverage *coverage);
PangoCoverage * pango_coverage_copy (PangoCoverage *coverage);
PangoCoverageLevel pango_coverage_get (PangoCoverage *coverage,
- int index);
+ int index_);
void pango_coverage_set (PangoCoverage *coverage,
- int index,
+ int index_,
PangoCoverageLevel level);
void pango_coverage_max (PangoCoverage *coverage,
PangoCoverage *other);
diff --git a/pango/pango-glyph.h b/pango/pango-glyph.h
index 16db8f8a..a3d0772b 100644
--- a/pango/pango-glyph.h
+++ b/pango/pango-glyph.h
@@ -109,7 +109,7 @@ void pango_glyph_string_index_to_x (PangoGlyphString *glyphs,
char *text,
int length,
PangoAnalysis *analysis,
- int index,
+ int index_,
gboolean trailing,
int *x_pos);
void pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
@@ -117,7 +117,7 @@ void pango_glyph_string_x_to_index (PangoGlyphString *glyphs,
int length,
PangoAnalysis *analysis,
int x_pos,
- int *index,
+ int *index_,
int *trailing);
/* Turn a string of characters into a string of glyphs
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index aec4ed70..f38465d5 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -955,7 +955,7 @@ pango_layout_get_line (PangoLayout *layout,
/**
* pango_layout_line_index_to_x:
* @line: a #PangoLayoutLine
- * @index: byte offset of a grapheme within the layout
+ * @index_: byte offset of a grapheme within the layout
* @trailing: an integer indicating the edge of the grapheme to retrieve
* the position of. If 0, the trailing edge of the grapheme,
* if > 0, the leading of the grapheme.
@@ -1119,7 +1119,7 @@ pango_layout_index_to_line_and_extents (PangoLayout *layout,
/**
* pango_layout_index_to_line_x:
* @layout: a #PangoLayout
- * @index: the byte index of a grapheme within the layout.
+ * @index_: the byte index of a grapheme within the layout.
* @trailing: an integer indicating the edge of the grapheme to retrieve the
* position of. If 0, the trailing edge of the grapheme, if > 0,
* the leading of the grapheme.
@@ -1128,7 +1128,7 @@ pango_layout_index_to_line_and_extents (PangoLayout *layout,
* @x_pos: location to store resulting position within line
* (in thousandths of a device unit)
*
- * Converts from byte @index within the @layout to line and X position.
+ * Converts from byte @index_ within the @layout to line and X position.
* (X position is measured from the left edge of the line)
*/
void
@@ -1351,7 +1351,7 @@ pango_layout_move_cursor_visually (PangoLayout *layout,
* from the left edge of the layout.
* @y: the Y offset (in thousandths of a device unit)
* from the top edge of the layout
- * @index: location to store calculated byte index
+ * @index_: location to store calculated byte index
* @trailing: location to store a integer indicating where
* in the grapheme the user clicked. It will either
* be zero, or the number of characters in the
@@ -1452,7 +1452,7 @@ pango_layout_xy_to_index (PangoLayout *layout,
/**
* pango_layout_index_to_pos:
* @layout: a #PangoLayout
- * @index: byte index within @layout
+ * @index_: byte index within @layout
* @pos: rectangle in which to store the position of the grapheme
*
* Convert from an index within a PangoLayout to the onscreen position
@@ -1677,7 +1677,7 @@ pango_layout_line_get_char_direction (PangoLayoutLine *layout_line,
/**
* pango_layout_get_cursor_pos:
* @layout: a #PangoLayout
- * @index: the byte index of the cursor
+ * @index_: the byte index of the cursor
* @strong_pos: location to store the strong cursor position (may be %NULL)
* @weak_pos: location to store the weak cursor position (may be %NULL)
*
@@ -3026,7 +3026,7 @@ pango_layout_line_unref (PangoLayoutLine *line)
* @line: a #PangoLayoutLine
* @x_pos: the x offset (in thousands of a device unit)
* from the left edge of the line.
- * @index: location to store calculated byte offset for
+ * @index_: location to store calculated byte offset for
* the grapheme in which the user clicked.
* @trailing: location to store a integer indicating where
* in the grapheme the user clicked. It will either
@@ -3035,7 +3035,7 @@ pango_layout_line_unref (PangoLayoutLine *line)
*
* Convert from x offset to the byte index of the corresponding
* character within the text of the layout. If @x_pos is outside the line,
- * the start or end of the line will be stored at @index.
+ * the start or end of the line will be stored at @index_.
*
* Returns: %FALSE if @x_pos was outside the line, %TRUE if inside
**/
@@ -4536,8 +4536,8 @@ pango_layout_iter_get_line_extents (PangoLayoutIter *iter,
/**
* pango_layout_iter_get_line_yrange:
* @iter: a #PangoLayoutIter
- * @y0: start of line
- * @y1: end of line
+ * @y0_: start of line
+ * @y1_: end of line
*
* Divides the vertical space in the #PangoLayout being iterated over
* between the lines in the layout, and returns the space belonging to
diff --git a/pango/pango-layout.h b/pango/pango-layout.h
index 6b679b6b..e840de79 100644
--- a/pango/pango-layout.h
+++ b/pango/pango-layout.h
@@ -134,10 +134,10 @@ void pango_layout_get_log_attrs (PangoLayout *layout,
gint *n_attrs);
void pango_layout_index_to_pos (PangoLayout *layout,
- int index,
+ int index_,
PangoRectangle *pos);
void pango_layout_get_cursor_pos (PangoLayout *layout,
- int index,
+ int index_,
PangoRectangle *strong_pos,
PangoRectangle *weak_pos);
void pango_layout_move_cursor_visually (PangoLayout *layout,
@@ -150,7 +150,7 @@ void pango_layout_move_cursor_visually (PangoLayout *layout,
gboolean pango_layout_xy_to_index (PangoLayout *layout,
int x,
int y,
- int *index,
+ int *index_,
int *trailing);
void pango_layout_get_extents (PangoLayout *layout,
PangoRectangle *ink_rect,
@@ -174,10 +174,10 @@ void pango_layout_line_ref (PangoLayoutLine *line);
void pango_layout_line_unref (PangoLayoutLine *line);
gboolean pango_layout_line_x_to_index (PangoLayoutLine *line,
int x_pos,
- int *index,
+ int *index_,
int *trailing);
void pango_layout_line_index_to_x (PangoLayoutLine *line,
- int index,
+ int index_,
gboolean trailing,
int *x_pos);
void pango_layout_line_get_x_ranges (PangoLayoutLine *line,
@@ -222,8 +222,8 @@ void pango_layout_iter_get_line_extents (PangoLayoutIter *iter,
* assign between-line spacing to the nearest line)
*/
void pango_layout_iter_get_line_yrange (PangoLayoutIter *iter,
- int *y0,
- int *y1);
+ int *y0_,
+ int *y1_);
void pango_layout_iter_get_layout_extents (PangoLayoutIter *iter,
PangoRectangle *ink_rect,
PangoRectangle *logical_rect);
diff --git a/pango/pangox.h b/pango/pangox.h
index 20759d80..9f2a6833 100644
--- a/pango/pangox.h
+++ b/pango/pangox.h
@@ -68,7 +68,7 @@ void pango_x_render_layout (Display *display,
*/
typedef guint16 PangoXSubfont;
-#define PANGO_X_MAKE_GLYPH(subfont,index) ((subfont)<<16 | (index))
+#define PANGO_X_MAKE_GLYPH(subfont,index_) ((subfont)<<16 | (index_))
#define PANGO_X_GLYPH_SUBFONT(glyph) ((glyph)>>16)
#define PANGO_X_GLYPH_INDEX(glyph) ((glyph) & 0xffff)