summaryrefslogtreecommitdiff
path: root/fpcsrc/rtl/morphos/utility.pp
blob: 9db0b0e75b73de52d18e9945c6ee7aa35675d2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
    This file is part of the Free Pascal run time library.
    Copyright (c) 2004 Karoly Balogh for Genesi S.a.r.l. <www.genesi.lu>

    utility.library interface unit for MorphOS/PowerPC

    MorphOS port was done on a free Pegasos II/G4 machine
    provided by Genesi S.a.r.l. <www.genesi.lu>

    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.

 **********************************************************************}
{$inline on}
unit utility;

interface

uses
  exec;

var
  UtilityBase: Pointer;

{$include utild1.inc}
{$include utild2.inc}
{$include utilf.inc}

function TAG_(value: pointer): longword; inline;
function TAG_(value: pchar): longword; inline;


implementation

function TAG_(value: pointer): longword; inline;
begin
  TAG_:=longword(value);
end;

function TAG_(value: pchar): longword; inline;
begin
  TAG_:=longword(value);
end;


begin
  UtilityBase:=MOS_UtilityBase;
end.