4.1.2-8
This commit is contained in:
parent
912fdb15c7
commit
4a94a3ab7c
@ -32,7 +32,7 @@
|
|||||||
bool
|
bool
|
||||||
--- gcc/cp/decl.c (revision 123431)
|
--- gcc/cp/decl.c (revision 123431)
|
||||||
+++ gcc/cp/decl.c (revision 123432)
|
+++ gcc/cp/decl.c (revision 123432)
|
||||||
@@ -3797,6 +3797,7 @@ start_decl (const cp_declarator *declara
|
@@ -3817,6 +3817,7 @@ start_decl (const cp_declarator *declara
|
||||||
tree decl;
|
tree decl;
|
||||||
tree type, tem;
|
tree type, tem;
|
||||||
tree context;
|
tree context;
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
*pushed_scope_p = NULL_TREE;
|
*pushed_scope_p = NULL_TREE;
|
||||||
|
|
||||||
@@ -3951,6 +3952,8 @@ start_decl (const cp_declarator *declara
|
@@ -3969,6 +3970,8 @@ start_decl (const cp_declarator *declara
|
||||||
decl);
|
decl);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -49,9 +49,9 @@
|
|||||||
/* Enter this declaration into the symbol table. */
|
/* Enter this declaration into the symbol table. */
|
||||||
tem = maybe_push_decl (decl);
|
tem = maybe_push_decl (decl);
|
||||||
|
|
||||||
@@ -3971,6 +3974,17 @@ start_decl (const cp_declarator *declara
|
@@ -3988,6 +3991,17 @@ start_decl (const cp_declarator *declara
|
||||||
&& !have_global_bss_p ())
|
&& (flag_conserve_space || ! TREE_PUBLIC (tem)));
|
||||||
DECL_COMMON (tem) = 1;
|
#endif
|
||||||
|
|
||||||
+ if (TREE_CODE (tem) == VAR_DECL
|
+ if (TREE_CODE (tem) == VAR_DECL
|
||||||
+ && DECL_NAMESPACE_SCOPE_P (tem) && !TREE_PUBLIC (tem) && !was_public
|
+ && DECL_NAMESPACE_SCOPE_P (tem) && !TREE_PUBLIC (tem) && !was_public
|
||||||
@ -64,10 +64,10 @@
|
|||||||
+ DECL_THIS_STATIC (tem) = 1;
|
+ DECL_THIS_STATIC (tem) = 1;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
if (!processing_template_decl && TREE_CODE (tem) == VAR_DECL)
|
if (! processing_template_decl)
|
||||||
start_decl_1 (tem, initialized);
|
start_decl_1 (tem);
|
||||||
|
|
||||||
@@ -5283,14 +5297,6 @@ cp_finish_decl (tree decl, tree init, bo
|
@@ -5320,14 +5334,6 @@ cp_finish_decl (tree decl, tree init, bo
|
||||||
{
|
{
|
||||||
layout_var_decl (decl);
|
layout_var_decl (decl);
|
||||||
maybe_commonize_var (decl);
|
maybe_commonize_var (decl);
|
||||||
|
@ -58,16 +58,16 @@
|
|||||||
|
|
||||||
--- libjava/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java 16 Mar 2007 15:14:53 -0000 1.67
|
--- libjava/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java 16 Mar 2007 15:14:53 -0000 1.67
|
||||||
+++ libjava/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java 2 Apr 2007 19:39:26 -0000 1.68
|
+++ libjava/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java 2 Apr 2007 19:39:26 -0000 1.68
|
||||||
@@ -402,7 +402,7 @@ public abstract class CairoGraphics2D ex
|
@@ -392,7 +392,7 @@ public abstract class CairoGraphics2D ex
|
||||||
*/
|
*/
|
||||||
protected native void cairoDrawGlyphVector(long pointer, GdkFontPeer font,
|
native void cairoDrawGlyphVector(long pointer, GdkFontPeer font,
|
||||||
float x, float y, int n,
|
float x, float y, int n,
|
||||||
- int[] codes, float[] positions);
|
- int[] codes, float[] positions);
|
||||||
+ int[] codes, float[] positions, long[] fontset);
|
+ int[] codes, float[] positions, long[] fontset);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the font in cairo.
|
* Set the font in cairo.
|
||||||
@@ -1730,6 +1730,7 @@ public abstract class CairoGraphics2D ex
|
@@ -1676,6 +1676,7 @@ public abstract class CairoGraphics2D ex
|
||||||
{
|
{
|
||||||
int n = gv.getNumGlyphs ();
|
int n = gv.getNumGlyphs ();
|
||||||
int[] codes = gv.getGlyphCodes (0, n, null);
|
int[] codes = gv.getGlyphCodes (0, n, null);
|
||||||
@ -75,28 +75,28 @@
|
|||||||
float[] positions = gv.getGlyphPositions (0, n, null);
|
float[] positions = gv.getGlyphPositions (0, n, null);
|
||||||
|
|
||||||
setFont (gv.getFont ());
|
setFont (gv.getFont ());
|
||||||
@@ -1737,7 +1738,7 @@ public abstract class CairoGraphics2D ex
|
@@ -1683,7 +1684,7 @@ public abstract class CairoGraphics2D ex
|
||||||
synchronized (fontPeer)
|
synchronized (fontPeer)
|
||||||
{
|
{
|
||||||
cairoDrawGlyphVector(nativePointer, fontPeer,
|
cairoDrawGlyphVector(nativePointer, fontPeer,
|
||||||
- x, y, n, codes, positions);
|
- x, y, n, codes, positions);
|
||||||
+ x, y, n, codes, positions, fontset);
|
+ x, y, n, codes, positions, fontset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
--- libjava/classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java 16 Mar 2007 15:14:53 -0000 1.25
|
--- libjava/classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java 16 Mar 2007 15:14:53 -0000 1.25
|
||||||
+++ libjava/classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java 2 Apr 2007 19:39:26 -0000 1.26
|
+++ libjava/classpath/gnu/java/awt/peer/gtk/ComponentGraphics.java 2 Apr 2007 19:39:26 -0000 1.26
|
||||||
@@ -121,7 +121,7 @@ public class ComponentGraphics extends C
|
@@ -114,7 +114,7 @@ public class ComponentGraphics extends C
|
||||||
*/
|
|
||||||
private void lock()
|
private void lock()
|
||||||
{
|
{
|
||||||
- Integer i = (Integer) hasLock.get();
|
- Integer i = (Integer) hasLock.get();
|
||||||
+ Integer i = hasLock.get();
|
+ Integer i = hasLock.get();
|
||||||
if (i == null)
|
if (i == null)
|
||||||
{
|
{
|
||||||
start_gdk_drawing();
|
start_gdk_drawing();
|
||||||
@@ -136,7 +136,7 @@ public class ComponentGraphics extends C
|
@@ -126,7 +126,7 @@ public class ComponentGraphics extends C
|
||||||
*/
|
|
||||||
private void unlock()
|
private void unlock()
|
||||||
{
|
{
|
||||||
- Integer i = (Integer) hasLock.get();
|
- Integer i = (Integer) hasLock.get();
|
||||||
@ -104,32 +104,15 @@
|
|||||||
if (i == null)
|
if (i == null)
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
if (i == ONE)
|
if (i == ONE)
|
||||||
@@ -144,6 +144,8 @@ public class ComponentGraphics extends C
|
@@ -134,6 +134,8 @@ public class ComponentGraphics extends C
|
||||||
hasLock.set(null);
|
hasLock.set(null);
|
||||||
end_gdk_drawing();
|
end_gdk_drawing();
|
||||||
}
|
}
|
||||||
+ else if (i.intValue() == 2)
|
+ else if (i.intValue() == 2)
|
||||||
+ hasLock.set(ONE);
|
+ hasLock.set(ONE);
|
||||||
else
|
else
|
||||||
hasLock.set(Integer.valueOf(i.intValue() - 1));
|
hasLock.set(Integer.valueOf(i.intValue() - 1));
|
||||||
}
|
}
|
||||||
@@ -744,12 +746,14 @@ public class ComponentGraphics extends C
|
|
||||||
@Override
|
|
||||||
protected void cairoDrawGlyphVector(long pointer, GdkFontPeer font,
|
|
||||||
float x, float y, int n,
|
|
||||||
- int[] codes, float[] positions)
|
|
||||||
+ int[] codes, float[] positions,
|
|
||||||
+ long[] fontset)
|
|
||||||
{
|
|
||||||
try
|
|
||||||
{
|
|
||||||
lock();
|
|
||||||
- super.cairoDrawGlyphVector(pointer, font, x, y, n, codes, positions);
|
|
||||||
+ super.cairoDrawGlyphVector(pointer, font, x, y, n, codes, positions,
|
|
||||||
+ fontset);
|
|
||||||
}
|
|
||||||
finally
|
|
||||||
{
|
|
||||||
--- libjava/classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java 6 Mar 2007 19:38:31 -0000 1.16
|
--- libjava/classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java 6 Mar 2007 19:38:31 -0000 1.16
|
||||||
+++ libjava/classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java 2 Apr 2007 21:28:58 -0000 1.18
|
+++ libjava/classpath/gnu/java/awt/peer/gtk/FreetypeGlyphVector.java 2 Apr 2007 21:28:58 -0000 1.18
|
||||||
@@ -79,6 +79,11 @@ public class FreetypeGlyphVector extends
|
@@ -79,6 +79,11 @@ public class FreetypeGlyphVector extends
|
||||||
@ -283,26 +266,26 @@
|
|||||||
|
|
||||||
for(int i = 0; i < nGlyphs; i++)
|
for(int i = 0; i < nGlyphs; i++)
|
||||||
{
|
{
|
||||||
- GlyphMetrics gm = (GlyphMetrics)
|
- GlyphMetrics gm = (GlyphMetrics)
|
||||||
- peer.getGlyphMetrics( glyphCodes[ i ] );
|
- peer.getGlyphMetrics( glyphCodes[ i ] );
|
||||||
+ GlyphMetrics gm = (GlyphMetrics)peer.getGlyphMetrics(glyphCodes[i]);
|
+ GlyphMetrics gm = (GlyphMetrics)peer.getGlyphMetrics(glyphCodes[i]);
|
||||||
if( gm == null )
|
if( gm == null )
|
||||||
{
|
{
|
||||||
- double[] val = getMetricsNative( glyphCodes[ i ] );
|
- double[] val = getMetricsNative( glyphCodes[ i ] );
|
||||||
+ double[] val = getMetricsNative(glyphCodes[i], fontSet[i]);
|
+ double[] val = getMetricsNative(glyphCodes[i], fontSet[i]);
|
||||||
if( val == null )
|
if( val == null )
|
||||||
gm = null;
|
gm = null;
|
||||||
else
|
else
|
||||||
@@ -376,7 +431,8 @@ public class FreetypeGlyphVector extends
|
@@ -374,7 +429,8 @@ public class FreetypeGlyphVector extends
|
||||||
*/
|
*/
|
||||||
public Shape getGlyphOutline(int glyphIndex)
|
public Shape getGlyphOutline(int glyphIndex)
|
||||||
{
|
{
|
||||||
- GeneralPath gp = getGlyphOutlineNative( glyphCodes[ glyphIndex ] );
|
- GeneralPath gp = getGlyphOutlineNative( glyphCodes[ glyphIndex ] );
|
||||||
+ GeneralPath gp = getGlyphOutlineNative(glyphCodes[glyphIndex],
|
+ GeneralPath gp = getGlyphOutlineNative(glyphCodes[glyphIndex],
|
||||||
+ fontSet[glyphIndex]);
|
+ fontSet[glyphIndex]);
|
||||||
|
if (glyphTransforms[glyphIndex] != null)
|
||||||
|
gp.transform( glyphTransforms[glyphIndex]);
|
||||||
|
|
||||||
AffineTransform tx = AffineTransform.getTranslateInstance(glyphPositions[glyphIndex*2],
|
|
||||||
glyphPositions[glyphIndex*2+1]);
|
|
||||||
--- libjava/classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h 16 Mar 2007 15:14:53 -0000 1.17
|
--- libjava/classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h 16 Mar 2007 15:14:53 -0000 1.17
|
||||||
+++ libjava/classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h 2 Apr 2007 19:39:26 -0000 1.18
|
+++ libjava/classpath/include/gnu_java_awt_peer_gtk_CairoGraphics2D.h 2 Apr 2007 19:39:26 -0000 1.18
|
||||||
@@ -22,7 +22,7 @@ JNIEXPORT void JNICALL Java_gnu_java_awt
|
@@ -22,7 +22,7 @@ JNIEXPORT void JNICALL Java_gnu_java_awt
|
||||||
|
Loading…
Reference in New Issue
Block a user