mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
codetools: fixed parsing parameter modifier location on m68k and powerpc, bug #29350
git-svn-id: branches/fixes_1_6@51314 -
This commit is contained in:
parent
0779740372
commit
bebbb5aa73
@ -1502,6 +1502,8 @@ end;
|
||||
function TPascalParserTool.ReadParamType(ExceptionOnError, Extract: boolean;
|
||||
const Attr: TProcHeadAttributes): boolean;
|
||||
// after reading, CurPos is the atom after the type
|
||||
// Examples:
|
||||
// Domain: LongInt location 'd0' (only m68k, powerpc)
|
||||
var
|
||||
copying: boolean;
|
||||
IsArrayType: Boolean;
|
||||
@ -1602,7 +1604,16 @@ begin
|
||||
else exit;
|
||||
end;
|
||||
if AtomIsChar('<') then
|
||||
ReadGenericParam;
|
||||
ReadGenericParam
|
||||
else if UpAtomIs('LOCATION')
|
||||
and (Scanner.Values.IsDefined('CPUM68K') or Scanner.Values.IsDefined('CPUPOWERPC'))
|
||||
then begin
|
||||
// for example Domain: LongInt location 'd0'
|
||||
ReadNextAtom;
|
||||
if not AtomIsStringConstant then
|
||||
SaveRaiseStringExpectedButAtomFound(ctsStringConstant);
|
||||
ReadNextAtom;
|
||||
end;
|
||||
Result:=true;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user