Lazarus

Free Pascal => FPC development => Topic started by: edgarrod71 on August 18, 2017, 01:15:26 am

Title: How to modify the StringList and ability to debug it?
Post by: edgarrod71 on August 18, 2017, 01:15:26 am
I wish somebody could give me instructions precise to modify TStringList source code from the base unit and other LCL and instructions to debug them.  Thank you.
Title: Re: How to modify the StringList and ability to debug it?
Post by: howardpc on August 18, 2017, 01:48:25 am
What do you want to do for which you find TStringlist has shortcomings?
Title: Re: How to modify the StringList and ability to debug it?
Post by: edgarrod71 on August 18, 2017, 03:04:38 am
I want to modify and recompile CLASSESH.INC how can I do it?
Title: Re: How to modify the StringList and ability to debug it?
Post by: Leledumbo on August 18, 2017, 05:33:23 am
Just modify the corresponding file and do `make all install=/your/fpc/base/directory` in rtl folder.
Title: Re: How to modify the StringList and ability to debug it?
Post by: edgarrod71 on August 18, 2017, 11:40:54 am
Is it a step by step instructions for dummies?
Title: Re: How to modify the StringList and ability to debug it?
Post by: Leledumbo on August 19, 2017, 04:20:07 pm
Is it a step by step instructions for dummies?
I can't say how dummies-friendly it is, but it's the primary source when talking about build system of FPC itself: http://www.stack.nl/~marcov/buildfaq.pdf
Title: Re: How to modify the StringList and ability to debug it?
Post by: BeniBela on August 19, 2017, 05:13:25 pm
You can just derive a class from TStringList and override the methods you want to change.

Title: Re: How to modify the StringList and ability to debug it?
Post by: Thaddy on August 19, 2017, 05:33:59 pm
You can just derive a class from TStringList and override the methods you want to change.

That's what I would do too... Tstringlist and Tstrings are heavily used and you run the risk of breaking all of the places where it is used.
TinyPortal © 2005-2018