mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-26 23:43:41 +02:00

the use of Objective-C 1.0 constructs. Because it is a mode switch, it can be used cumulatively with every syntax mode. Note that a {$mode xxx} statement resets all mode switches as well, so you cannot use the -Mobjectivec1 variant if you have such a statement in a unit. This modeswitch is currently only enabled for Darwin/PowerPC and Darwin/i386, as the backend support is not yet implemented for other platforms. + implemented selector() statement that can be used to create an Objective-C selector for the message with the specified *constant* name (in the future, it will also work for Objective-C method identifiers) + added SEL type to the system unit (the selector() statement returns it) + added all Objective-C segments to the assembler writers + (currently mostly dummy) objc1 unit that is automatically included if the {$modeswitch objectivec1} statement is used + some tests for the selector() statement git-svn-id: trunk@12870 -
52 lines
1.4 KiB
ObjectPascal
52 lines
1.4 KiB
ObjectPascal
{
|
|
Copyright (c) 2000-2002 by Florian Klaempfl
|
|
|
|
Includes the PowerPC code generator
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2 of the License, or
|
|
(at your option) any later version.
|
|
|
|
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. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
****************************************************************************
|
|
}
|
|
unit cpunode;
|
|
|
|
{$i fpcdefs.inc}
|
|
|
|
interface
|
|
|
|
implementation
|
|
|
|
uses
|
|
{ generic nodes }
|
|
ncgbas,ncgld,ncgflw,ncgcnv,ncgmem,ncgcon,ncgcal,ncgset,ncginl,ncgopt,
|
|
ncgobjc,
|
|
{ to be able to only parts of the generic code,
|
|
the processor specific nodes must be included
|
|
after the generic one (FK)
|
|
}
|
|
nppcadd,
|
|
nppccal,
|
|
// nppccon,
|
|
// nppcflw,
|
|
// nppcmem,
|
|
ngppcset,
|
|
ngppcinl,
|
|
// nppcopt,
|
|
nppcmat,
|
|
nppccnv
|
|
// nppcld
|
|
;
|
|
|
|
end.
|