summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2004-07-26 19:25:45 +0000
committerOwen Taylor <otaylor@src.gnome.org>2004-07-26 19:25:45 +0000
commit6c4fc6de9418e54c9d8d2c7ad4d9430524456edf (patch)
tree312e3c29e9ceb4f353f983c4f2f533d3d144f57d
parent1065559f841d0ab9cef9e6851aad9b2d5f0d4948 (diff)
downloadpango-6c4fc6de9418e54c9d8d2c7ad4d9430524456edf.tar.gz
Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.
Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com> * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the unused parameter from the IN_CURITEM() and IN_CURGLYPH macros.
-rw-r--r--ChangeLog6
-rw-r--r--ChangeLog.pre-1-106
-rw-r--r--ChangeLog.pre-1-66
-rw-r--r--ChangeLog.pre-1-86
-rw-r--r--pango/opentype/ftxgsub.c56
5 files changed, 52 insertions, 28 deletions
diff --git a/ChangeLog b/ChangeLog
index c8a6f2f4..6ef6e717 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the
+ unused parameter from the IN_CURITEM() and IN_CURGLYPH
+ macros.
+
Mon Jul 26 15:21:23 2004 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxgsub.c: Add missing macro to make the
diff --git a/ChangeLog.pre-1-10 b/ChangeLog.pre-1-10
index c8a6f2f4..6ef6e717 100644
--- a/ChangeLog.pre-1-10
+++ b/ChangeLog.pre-1-10
@@ -1,3 +1,9 @@
+Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the
+ unused parameter from the IN_CURITEM() and IN_CURGLYPH
+ macros.
+
Mon Jul 26 15:21:23 2004 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxgsub.c: Add missing macro to make the
diff --git a/ChangeLog.pre-1-6 b/ChangeLog.pre-1-6
index c8a6f2f4..6ef6e717 100644
--- a/ChangeLog.pre-1-6
+++ b/ChangeLog.pre-1-6
@@ -1,3 +1,9 @@
+Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the
+ unused parameter from the IN_CURITEM() and IN_CURGLYPH
+ macros.
+
Mon Jul 26 15:21:23 2004 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxgsub.c: Add missing macro to make the
diff --git a/ChangeLog.pre-1-8 b/ChangeLog.pre-1-8
index c8a6f2f4..6ef6e717 100644
--- a/ChangeLog.pre-1-8
+++ b/ChangeLog.pre-1-8
@@ -1,3 +1,9 @@
+Mon Jul 26 15:24:11 2004 Owen Taylor <otaylor@redhat.com>
+
+ * pango/opentype/ftxgsub.c (ADD_Glyph): Remove the
+ unused parameter from the IN_CURITEM() and IN_CURGLYPH
+ macros.
+
Mon Jul 26 15:21:23 2004 Owen Taylor <otaylor@redhat.com>
* pango/opentype/ftxgsub.c: Add missing macro to make the
diff --git a/pango/opentype/ftxgsub.c b/pango/opentype/ftxgsub.c
index 3e98c130..3312c6c3 100644
--- a/pango/opentype/ftxgsub.c
+++ b/pango/opentype/ftxgsub.c
@@ -40,8 +40,8 @@
#define IN_GLYPH( pos ) buffer->in_string[(pos)].gindex
#define IN_ITEM( pos ) (&buffer->in_string[(pos)])
-#define IN_CURGLYPH( pos ) buffer->in_string[(pos) + buffer->in_pos].gindex
-#define IN_CURITEM( pos ) (&buffer->in_string[(pos) + buffer->in_pos])
+#define IN_CURGLYPH() buffer->in_string[buffer->in_pos].gindex
+#define IN_CURITEM( ) (&buffer->in_string[buffer->in_pos])
#define IN_PROPERTIES( pos ) buffer->in_string[(pos)].properties
#define IN_LIGID( pos ) buffer->in_string[(pos)].ligID
@@ -330,17 +330,17 @@
if ( context_length != 0xFFFF && context_length < 1 )
return TTO_Err_Not_Covered;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
- error = Coverage_Index( &ss->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &ss->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
switch ( ss->SubstFormat )
{
case 1:
- value = ( IN_CURGLYPH( 0 ) + ss->ssf.ssf1.DeltaGlyphID ) & 0xFFFF;
+ value = ( IN_CURGLYPH() + ss->ssf.ssf1.DeltaGlyphID ) & 0xFFFF;
if ( ADD_Glyph( buffer, value, 0xFFFF, 0xFFFF ) )
return error;
break;
@@ -534,10 +534,10 @@
if ( context_length != 0xFFFF && context_length < 1 )
return TTO_Err_Not_Covered;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
- error = Coverage_Index( &ms->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &ms->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -732,10 +732,10 @@
if ( context_length != 0xFFFF && context_length < 1 )
return TTO_Err_Not_Covered;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
- error = Coverage_Index( &as->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &as->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -744,7 +744,7 @@
/* we use a user-defined callback function to get the alternate index */
if ( gsub->altfunc )
- alt_index = (gsub->altfunc)( buffer->out_pos, IN_CURGLYPH( 0 ),
+ alt_index = (gsub->altfunc)( buffer->out_pos, IN_CURGLYPH(),
aset.GlyphCount, aset.Alternate,
gsub->data );
else
@@ -1010,13 +1010,13 @@
TTO_Ligature* lig;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
if ( property == TTO_MARK || property & IGNORE_SPECIAL_MARKS )
first_is_mark = TRUE;
- error = Coverage_Index( &ls->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &ls->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -1103,9 +1103,9 @@
for ( i = 0; i < lig->ComponentCount - 1; i++ )
{
- while ( CHECK_Property( gdef, IN_CURITEM( 0 ),
+ while ( CHECK_Property( gdef, IN_CURITEM(),
flags, &property ) )
- if ( ADD_Glyph( buffer, IN_CURGLYPH( 0 ),
+ if ( ADD_Glyph( buffer, IN_CURGLYPH(),
i, ligID ) )
return error;
@@ -1159,7 +1159,7 @@
{
/* XXX "can't happen" -- but don't count on it */
- if ( ADD_Glyph( buffer, IN_CURGLYPH( 0 ),
+ if ( ADD_Glyph( buffer, IN_CURGLYPH(),
0xFFFF, 0xFFFF ) )
return error;
i++;
@@ -1171,7 +1171,7 @@
{
/* No substitution for this index */
- if ( ADD_Glyph( buffer, IN_CURGLYPH( 0 ),
+ if ( ADD_Glyph( buffer, IN_CURGLYPH(),
0xFFFF, 0xFFFF ) )
return error;
i++;
@@ -1911,10 +1911,10 @@
gdef = gsub->gdef;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
- error = Coverage_Index( &csf1->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &csf1->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -1980,21 +1980,21 @@
gdef = gsub->gdef;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
/* Note: The coverage table in format 2 doesn't give an index into
anything. It just lets us know whether or not we need to
do any lookup at all. */
- error = Coverage_Index( &csf2->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &csf2->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
if ( ALLOC_ARRAY( classes, csf2->MaxContextLength, FT_UShort ) )
return error;
- error = Get_Class( &csf2->ClassDef, IN_CURGLYPH( 0 ),
+ error = Get_Class( &csf2->ClassDef, IN_CURGLYPH(),
&classes[0], NULL );
if ( error && error != TTO_Err_Not_Covered )
goto End;
@@ -2082,7 +2082,7 @@
gdef = gsub->gdef;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
if ( context_length != 0xFFFF && context_length < csf3->GlyphCount )
@@ -3187,10 +3187,10 @@
gdef = gsub->gdef;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
- error = Coverage_Index( &ccsf1->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &ccsf1->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -3328,14 +3328,14 @@
gdef = gsub->gdef;
memory = gsub->memory;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
/* Note: The coverage table in format 2 doesn't give an index into
anything. It just lets us know whether or not we need to
do any lookup at all. */
- error = Coverage_Index( &ccsf2->Coverage, IN_CURGLYPH( 0 ), &index );
+ error = Coverage_Index( &ccsf2->Coverage, IN_CURGLYPH(), &index );
if ( error )
return error;
@@ -3351,7 +3351,7 @@
goto End2;
known_lookahead_classes = 0;
- error = Get_Class( &ccsf2->InputClassDef, IN_CURGLYPH( 0 ),
+ error = Get_Class( &ccsf2->InputClassDef, IN_CURGLYPH(),
&input_classes[0], NULL );
if ( error && error != TTO_Err_Not_Covered )
goto End1;
@@ -3518,7 +3518,7 @@
gdef = gsub->gdef;
- if ( CHECK_Property( gdef, IN_CURITEM( 0 ), flags, &property ) )
+ if ( CHECK_Property( gdef, IN_CURITEM(), flags, &property ) )
return error;
bgc = ccsf3->BacktrackGlyphCount;