[Lazarus] Codetools question

Ondrej Pokorny lazarus at kluug.net
Sun Oct 11 19:00:28 CEST 2015


On 11.10.2015 18:58, Ondrej Pokorny wrote:
> I added the procedure name to the list (see patch).
Forgot the file...
-------------- next part --------------
Index: components/codetools/identcompletiontool.pas
===================================================================
--- components/codetools/identcompletiontool.pas	(revision 50030)
+++ components/codetools/identcompletiontool.pas	(working copy)
@@ -1353,6 +1353,8 @@
     AddCompilerFunction('Seg','var X','LongInt');
     AddCompilerProcedure('SetLength','var S:String;NewLength:Integer');
     AddCompilerProcedure('SetLength','var A:Array;NewLength:Integer');
+    if Scanner.Values.IsDefined('FPC_HAS_CPSTRING') then
+      AddCompilerProcedure('SetString','out S:RawByteString;Buf:PAnsiChar;Len:SizeInt');
     AddCompilerFunction('SizeOf','Identifier','Integer');
     AddCompilerFunction('Slice','var A:Array;Count:Integer','Array');
     AddCompilerProcedure('Str','const X[:Width[:Decimals]];var S:String');


More information about the Lazarus mailing list