LongDirtyAnimAlf / Reiniero-fpcup

fpcup (and fpclazup) are installers for FPC (and Lazarus).
54 stars 11 forks source link

Pos() function with 3 parameters #6

Closed ghost closed 9 years ago

ghost commented 9 years ago

In m_any_to_androidarm.pas I found two places ndkversion:=Pos(DirectorySeparator,FBinUtilsPath,ndkversion);

But my FPC has only two parameters http://www.freepascal.org/docs-html/rtl/system/pos.html

Could you change to ndkversion:=Pos(DirectorySeparator,FBinUtilsPath);

LongDirtyAnimAlf commented 9 years ago

On my system, Pos can have 2 or 3 arguments. But then again, changed Pos to PosEx.

ghost commented 9 years ago

Thanks for favorable consideration my request. But I have to ask: What version fpc/lazarus has pos() with 3 arguments.

LongDirtyAnimAlf commented 9 years ago

I have fpc 3.1.1 (trunk with new RTTI)

Inside \fpc\rtl\inc\systemh.inc, I have:

function pos(const substr : shortstring;c:char; Offset: Sizeint = 1): SizeInt; Function Pos (const Substr : RawByteString; const Source : RawByteString; Offset: Sizeint = 1) : SizeInt; Function Pos (c : AnsiChar; const s : RawByteString; Offset: Sizeint = 1) : SizeInt;

ghost commented 9 years ago

I have 3.1.1 but too old ;) 31464 revison michael 2015-08-31 15:05:37 * Add offset to Pos functions, Delphi XE 8 compatible. Thx