atari: added classes unit and a dummy threading implementation

git-svn-id: trunk@34589 -
This commit is contained in:
Károly Balogh 2016-10-02 01:33:26 +00:00
parent 39f0b9c888
commit 175cc52e8d
3 changed files with 137 additions and 0 deletions

2
.gitattributes vendored
View File

@ -8397,6 +8397,7 @@ rtl/aros/timerd.inc svneol=native#text/plain
rtl/aros/x86_64/prt0.as svneol=native#text/plain
rtl/atari/Makefile svneol=native#text/plain
rtl/atari/Makefile.fpc svneol=native#text/plain
rtl/atari/classes.pp svneol=native#text/plain
rtl/atari/prt0.as svneol=native#text/plain
rtl/atari/rtldefs.inc svneol=native#text/plain
rtl/atari/sysdir.inc svneol=native#text/plain
@ -8405,6 +8406,7 @@ rtl/atari/sysheap.inc svneol=native#text/plain
rtl/atari/sysos.inc svneol=native#text/plain
rtl/atari/sysosh.inc svneol=native#text/plain
rtl/atari/system.pp svneol=native#text/plain
rtl/atari/tthread.inc svneol=native#text/plain
rtl/avr/avr.inc svneol=native#text/plain
rtl/avr/int64p.inc svneol=native#text/plain
rtl/avr/makefile.cpu svneol=native#text/plain

49
rtl/atari/classes.pp Normal file
View File

@ -0,0 +1,49 @@
{
This file is part of the Free Component Library (FCL)
Copyright (c) 2016 by the Free Pascal development team
Classes unit for Atari
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{$mode objfpc}
{ determine the type of the resource/form file }
{$define Win16Res}
unit Classes;
interface
uses
sysutils,
rtlconsts,
types,
{$ifdef FPC_TESTGENERICS}
fgl,
{$endif}
typinfo;
{$i classesh.inc}
implementation
{ OS - independent class implementations are in /inc directory. }
{$i classes.inc}
initialization
CommonInit;
finalization
CommonCleanup;
end.

86
rtl/atari/tthread.inc Normal file
View File

@ -0,0 +1,86 @@
{
This file is part of the Free Component Library (FCL)
Copyright (c) 1999-2000 by the Free Pascal development team
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
{****************************************************************************}
{* TThread *}
{****************************************************************************}
procedure TThread.CallOnTerminate;
begin
end;
function TThread.GetPriority: TThreadPriority;
begin
GetPriority:=tpNormal;
end;
procedure TThread.SetPriority(Value: TThreadPriority);
begin
end;
procedure TThread.SetSuspended(Value: Boolean);
begin
end;
procedure TThread.DoTerminate;
begin
end;
procedure TThread.SysCreate(CreateSuspended: Boolean; const StackSize: SizeUInt);
begin
{IsMultiThread := TRUE; }
end;
procedure TThread.SysDestroy;
begin
end;
procedure TThread.Resume;
begin
end;
procedure TThread.Suspend;
begin
end;
procedure TThread.Terminate;
begin
end;
function TThread.WaitFor: Integer;
begin
WaitFor:=0;
end;