Improved 64bit compatibility.

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@138 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2011-04-13 13:31:29 +00:00
parent 59ebd894da
commit ea46074261
3 changed files with 15 additions and 11 deletions

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 001.001.001 | | Project : Ararat Synapse | 001.001.002 |
|==============================================================================| |==============================================================================|
| Content: Socket debug tools | | Content: Socket debug tools |
|==============================================================================| |==============================================================================|
| Copyright (c)2008-2010, Lukas Gebauer | | Copyright (c)2008-2011, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. | | DAMAGE. |
|==============================================================================| |==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2008-2010. | | Portions created by Lukas Gebauer are Copyright (c)2008-2011. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -57,7 +57,7 @@ unit synadbg;
interface interface
uses uses
blcksock, synsock, synautil, classes, sysutils; blcksock, synsock, synautil, classes, sysutils, synafpc;
type type
TSynaDebug = class(TObject) TSynaDebug = class(TObject)
@ -130,7 +130,7 @@ begin
else else
s := '-unknown-'; s := '-unknown-';
end; end;
s := inttohex(integer(Sender), 8) + s + ': ' + value + CRLF; s := inttohex(PtrInt(Sender), 8) + s + ': ' + value + CRLF;
AppendToLog(s); AppendToLog(s);
end; end;
@ -144,7 +144,7 @@ begin
d := '-> ' d := '-> '
else else
d := '<- '; d := '<- ';
s :=inttohex(integer(Sender), 8) + d + s + CRLF; s :=inttohex(PtrInt(Sender), 8) + d + s + CRLF;
AppendToLog(s); AppendToLog(s);
end; end;

View File

@ -1,9 +1,9 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 001.001.002 | | Project : Ararat Synapse | 001.002.000 |
|==============================================================================| |==============================================================================|
| Content: Utils for FreePascal compatibility | | Content: Utils for FreePascal compatibility |
|==============================================================================| |==============================================================================|
| Copyright (c)1999-2010, Lukas Gebauer | | Copyright (c)1999-2011, Lukas Gebauer |
| All rights reserved. | | All rights reserved. |
| | | |
| Redistribution and use in source and binary forms, with or without | | Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. | | DAMAGE. |
|==============================================================================| |==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).| | The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c)2003-2010. | | Portions created by Lukas Gebauer are Copyright (c)2003-2011. |
| All Rights Reserved. | | All Rights Reserved. |
|==============================================================================| |==============================================================================|
| Contributor(s): | | Contributor(s): |
@ -82,8 +82,12 @@ function GetModuleFileName(Module: TLibHandle; Buffer: PChar; BufLen: Integer):
type type
{$IFDEF CIL} {$IFDEF CIL}
TLibHandle = Integer; TLibHandle = Integer;
PtrInt = Integer;
{$ELSE} {$ELSE}
TLibHandle = HModule; TLibHandle = HModule;
{$IFNDEF WIN64}
PtrInt = Integer;
{$ENDIF}
{$ENDIF} {$ENDIF}
{$IFDEF VER100} {$IFDEF VER100}
LongWord = DWord; LongWord = DWord;

View File

@ -1,5 +1,5 @@
{==============================================================================| {==============================================================================|
| Project : Ararat Synapse | 007.005.001 | | Project : Ararat Synapse | 007.005.002 |
|==============================================================================| |==============================================================================|
| Content: Serial port support | | Content: Serial port support |
|==============================================================================| |==============================================================================|
@ -1938,7 +1938,7 @@ begin
{$IFDEF DARWIN} {$IFDEF DARWIN}
SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH)); SerialCheck(fpioctl(FHandle, TCIOflush, TCIOFLUSH));
{$ELSE} {$ELSE}
SerialCheck(fpioctl(FHandle, TCFLSH, TCIOFLUSH)); SerialCheck(fpioctl(FHandle, TCFLSH, Pointer(PtrInt(TCIOFLUSH))));
{$ENDIF} {$ENDIF}
{$ENDIF} {$ENDIF}
FBuffer := ''; FBuffer := '';