Yes I'm afraid I do,
look at the diff file below needed for fixing current svn ...
I find this surprising that the other problem (void function returning a value)
has not been catched before ... ?

Attached a diff from 6577 to fix the compilation problem.

Fabien

start of diff ------------------>
Index: src/fl_font.cxx
===================================================================
--- src/fl_font.cxx     (révision 6577)
+++ src/fl_font.cxx     (copie de travail)
@@ -69,10 +69,11 @@
 }

 void fl_text_extents(const char *c, int &dx, int &dy, int &w, int &h) {
-  if (c) return fl_text_extents(c, strlen(c), dx, dy, w, h);
-  // else
-  w = 0; h = 0;
-  dx = 0; dy = 0;
+  if (c)  fl_text_extents(c, strlen(c), dx, dy, w, h);
+  else {
+    w = 0; h = 0;
+    dx = 0; dy = 0;
+  }
 } // fl_text_extents


Index: src/fl_font_win32.cxx
===================================================================
--- src/fl_font_win32.cxx       (révision 6577)
+++ src/fl_font_win32.cxx       (copie de travail)
@@ -239,7 +239,7 @@
   GLYPHMETRICS metrics;
   int maxw = 0, maxh = 0, dh;
   int minx = 0, miny = -999999;
-  unsigned len = 0;
+  unsigned len = 0, idx = 0;

   // Have we loaded the GetGlyphIndicesW function yet?
   if (have_loaded_GetGlyphIndices == 0) {
@@ -266,7 +266,7 @@
   }

   // now we have the glyph array we measure each glyph in turn...
-  for(unsigned idx = 0; idx < len; idx++){
+  for(idx = 0; idx < len; idx++){
     if (GetGlyphOutlineW (fl_gc, gi[idx], GGO_METRICS | GGO_GLYPH_INDEX,
                                              &metrics, 0, NULL, &matrix) == 
GDI_ERROR) {
                     goto exit_error;
<------------------- end of diff

Ian wrote:
> > > > > I'm sort of wondering which compiler variants do/don't=3D20
> > > > allow that style
> > > > > of usage...
> > > >=3D20
> > > > Me too. Which compiler did _not_ like it?
> > >
> > > This one complained:
> > >
> > > $ gcc -v
> > > Reading specs from d:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
> > VC6 is not happy too, and has another problem compiling=20
> > fl_text_extents overloading.
> > I'm on it...
>
>
> The fix for the declarations been crossed by the goto was fixed in svn -
> Albrecht checked in the correction - so that should be OK.
>
> And you are saying there is an new fault that VC6 chokes on?
>
>
>
> SELEX Sensors and Airborne Systems Limited
> Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex=
>  SS14 3EL
> A company registered in England & Wales.  Company no. 02426132
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************
>

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to