mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-31 09:30:17 +02:00
+ a tiny bit of support for macos
+ warning that this is under construction
This commit is contained in:
parent
99776e6402
commit
8e646a530a
@ -2,9 +2,13 @@
|
|||||||
$Id$
|
$Id$
|
||||||
|
|
||||||
This file is part of the Free Pascal run time library.
|
This file is part of the Free Pascal run time library.
|
||||||
Copyright (c) 2004 by Olle Raab
|
Copyright (c) 2004-2005 by Olle Raab
|
||||||
|
|
||||||
Sysutils unit for Mac OS
|
Sysutils unit for Mac OS.
|
||||||
|
|
||||||
|
NOTE !!! THIS FILE IS UNDER CONSTRUCTION AND DOES NOT WORK CURRENLY.
|
||||||
|
|
||||||
|
THUS IT IS NOT BUILT BY THE MAKEFILES
|
||||||
|
|
||||||
See the file COPYING.FPC, included in this distribution,
|
See the file COPYING.FPC, included in this distribution,
|
||||||
for details about the copyright.
|
for details about the copyright.
|
||||||
@ -21,10 +25,25 @@ interface
|
|||||||
{ force ansistrings }
|
{ force ansistrings }
|
||||||
{$H+}
|
{$H+}
|
||||||
|
|
||||||
|
uses
|
||||||
|
MacOSTP;
|
||||||
|
|
||||||
//{$DEFINE HAS_SLEEP} TODO
|
//{$DEFINE HAS_SLEEP} TODO
|
||||||
//{$DEFINE HAS_OSERROR} TODO
|
//{$DEFINE HAS_OSERROR} TODO
|
||||||
//{$DEFINE HAS_OSCONFIG} TODO
|
//{$DEFINE HAS_OSCONFIG} TODO
|
||||||
|
|
||||||
|
type
|
||||||
|
//TODO Check pad and size
|
||||||
|
//TODO unify with Dos.SearchRec
|
||||||
|
PMacOSFindData = ^TMacOSFindData;
|
||||||
|
TMacOSFindData = record
|
||||||
|
{MacOS specific params, private, do not use:}
|
||||||
|
paramBlock: CInfoPBRec;
|
||||||
|
searchFSSpec: FSSpec;
|
||||||
|
searchAttr: Byte; {attribute we are searching for}
|
||||||
|
exactMatch: Boolean;
|
||||||
|
end;
|
||||||
|
|
||||||
{ Include platform independent interface part }
|
{ Include platform independent interface part }
|
||||||
{$i sysutilh.inc}
|
{$i sysutilh.inc}
|
||||||
|
|
||||||
@ -248,14 +267,14 @@ end;
|
|||||||
*)
|
*)
|
||||||
|
|
||||||
|
|
||||||
Function DoFind(Var Rslt : TSearchRec) : Longint;
|
procedure DoFind (var F: TSearchRec; firstTime: Boolean);
|
||||||
|
|
||||||
var
|
var
|
||||||
err: OSErr;
|
err: OSErr;
|
||||||
s: Str255;
|
s: Str255;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
with Rslt, paramBlock do
|
with Rslt, findData, paramBlock do
|
||||||
begin
|
begin
|
||||||
ioVRefNum := searchFSSpec.vRefNum;
|
ioVRefNum := searchFSSpec.vRefNum;
|
||||||
if firstTime then
|
if firstTime then
|
||||||
@ -699,7 +718,11 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.4 2004-12-11 11:32:44 michael
|
Revision 1.5 2005-01-24 18:28:58 olle
|
||||||
|
+ a tiny bit of support for macos
|
||||||
|
+ warning that this is under construction
|
||||||
|
|
||||||
|
Revision 1.4 2004/12/11 11:32:44 michael
|
||||||
+ Added GetEnvironmentVariableCount and GetEnvironmentString calls
|
+ Added GetEnvironmentVariableCount and GetEnvironmentString calls
|
||||||
|
|
||||||
Revision 1.3 2004/10/14 16:27:11 mazen
|
Revision 1.3 2004/10/14 16:27:11 mazen
|
||||||
|
Loading…
Reference in New Issue
Block a user