Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-01

speedtest fixed

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Peter Vreman

The speedtest bug has been fixed. You'll need the current fixes branch for it.

The compiler has been fixed to not allow passing a string to 'array of char'. And the passing of a constant array to cdecl;external; has been fixed to not push the high value.

The GTK declaration was also wrong 'array of char' instead of 'array of int8'.

Below is the patch for gtkproc.inc:

*** /home/pfv/cvs/projects/lazarus/lcl/interfaces/gtk/gtkproc.inc	Tue Dec 19 22:40:46 2000
--- gtkproc.inc	Mon Jan  8 22:21:27 2001
***************
*** 131,141 ****
      else begin
        gdk_gc_set_line_attributes(GC, GDIPenWidth, GDK_LINE_ON_OFF_DASH, 0, 0);
        case GDIPenStyle of
!         PS_DASH:       gdk_gc_set_dashes(GC, 0, #4#4, 2);
!       	PS_DOT:        gdk_gc_set_dashes(GC, 0, #2#2, 2);
!       	PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, #4#2#2#2+#0, 4);
!       	PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, #4#2#2#2#2#2, 6);
!       	PS_NULL:       gdk_gc_set_dashes(GC, 0, #0#4, 2);
        end;
      end;
    end;
--- 131,141 ----
      else begin
        gdk_gc_set_line_attributes(GC, GDIPenWidth, GDK_LINE_ON_OFF_DASH, 0, 0);
        case GDIPenStyle of
!         PS_DASH:       gdk_gc_set_dashes(GC, 0, [4,4], 2);
!       	PS_DOT:        gdk_gc_set_dashes(GC, 0, [2,2], 2);
!       	PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, [4,2,2,2,0], 4);
!       	PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,2,2], 6);
!       	PS_NULL:       gdk_gc_set_dashes(GC, 0, [0,4], 2);
        end;
      end;
    end;

Reply by email

Marc Weustink
to Peter Vreman: because there was a missing file in the 1.0.4 from CVS. There has never been a missing…

+ From: Peter Vreman
+
+ > So, to get 1.0.5 all I need to do is a cvs co fpc right?
+ I'm currently running 1.0.4
+ because there was a missing file in the 1.0.4 from CVS.
+ >
+
+ There has never been a missing file from 1.0.4. So it looks
+ more like you have the development (1.1) compiler. +
+ You need to checkout a fresh copy of the compiler and RTL using: +
+ cvs co -r FIXES_1_0_0 compiler
+ cvs co -r FIXES_1_0_0 rtl

and fcl since a bug in TComponent was solved

Marc

Reply by email

Peter Vreman
So, to get 1.0.5 all I need to do is a cvs co fpc right? I'm currently running 1.0.4

because there was a missing file in the 1.0.4 from CVS.

There has never been a missing file from 1.0.4. So it looks more like you have the development (1.1) compiler.

You need to checkout a fresh copy of the compiler and RTL using:

cvs co -r FIXES_1_0_0 compiler
cvs co -r FIXES_1_0_0 rtl

Peter

Reply by email

Peter Vreman
>The speedtest bug has been fixed. You'll need the current fixes branch for >it. that is FIXES_1_0_0 ?

Yes

Show quoted text 8 lines
>The compiler has been fixed to not allow passing a string to 'array of >char'. And the passing of a constant array to cdecl;external; has been >fixed to not push the high value. > >The GTK declaration was also wrong 'array of char' instead of 'array of >int8'. ?? char int8

I looked it up in gdk.h and it was int8. Maybe the gchar -> gint8 change was made in after 1.2.2 or i didn't notice it when updating 1.0 -> 1.2.

Reply by email

Marc Weustink
to Peter Vreman: The speedtest bug has been fixed. You'll need the current fixes branch for it. The…
Peter Vreman wrote
The speedtest bug has been fixed. You'll need the current fixes branch for it.

that is FIXES_1_0_0 ?

Show quoted text 6 lines
The compiler has been fixed to not allow passing a string to 'array of char'. And the passing of a constant array to cdecl;external; has been fixed to not push the high value. The GTK declaration was also wrong 'array of char' instead of 'array of int8'.

?? char int8

Below is the patch for gtkproc.inc:

Committed

Thanks again, Marc

Reply by email

Shane Miller

So, to get 1.0.5 all I need to do is a cvs co fpc right? I'm currently running 1.0.4 because there was a missing file in the 1.0.4 from CVS.

Shane

Show quoted text 5 lines
>> 01/09/01 02:30AM >>> >The speedtest bug has been fixed. You'll need the current fixes branch for >it. that is FIXES_1_0_0 ?

Yes

Show quoted text 8 lines
>The compiler has been fixed to not allow passing a string to 'array of >char'. And the passing of a constant array to cdecl;external; has been >fixed to not push the high value. > >The GTK declaration was also wrong 'array of char' instead of 'array of >int8'. ?? char int8

I looked it up in gdk.h and it was int8. Maybe the gchar -> gint8 change was made in after 1.2.2 or i didn't notice it when updating 1.0 -> 1.2.

_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus

Reply by email