Recent

Author Topic: How to modify the StringList and ability to debug it?  (Read 4213 times)

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
How to modify the StringList and ability to debug it?
« 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.
« Last Edit: August 18, 2017, 01:39:56 am by edgarrod71 »

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: How to modify the StringList and ability to debug it?
« Reply #1 on: August 18, 2017, 01:48:25 am »
What do you want to do for which you find TStringlist has shortcomings?

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Re: How to modify the StringList and ability to debug it?
« Reply #2 on: August 18, 2017, 03:04:38 am »
I want to modify and recompile CLASSESH.INC how can I do it?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to modify the StringList and ability to debug it?
« Reply #3 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.

edgarrod71

  • Jr. Member
  • **
  • Posts: 68
Re: How to modify the StringList and ability to debug it?
« Reply #4 on: August 18, 2017, 11:40:54 am »
Is it a step by step instructions for dummies?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: How to modify the StringList and ability to debug it?
« Reply #5 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

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: How to modify the StringList and ability to debug it?
« Reply #6 on: August 19, 2017, 05:13:25 pm »
You can just derive a class from TStringList and override the methods you want to change.


Thaddy

  • Hero Member
  • *****
  • Posts: 14198
  • Probably until I exterminate Putin.
Re: How to modify the StringList and ability to debug it?
« Reply #7 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.
Specialize a type, not a var.

 

TinyPortal © 2005-2018