[fpc-devel] fpdoc link attribute in element tag

2010-08-26 Thread Graeme Geldenhuys
Hi,

For some reason the link attribute inside the ELEMENT tag doesn't function
any more.  Can others duplicate this issues, or is it just my system acting
up again.

For an example, take a look at the DB unit documentation, it uses the link
attribute there.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Žilvinas Ledas


On 2010-08-22 16:42, Graeme Geldenhuys wrote:

fpprofiler (it was a bit further along than my own attempt), but it
wasn't touched for over 2 years, so didn't compile. It was also
riddled with memory leaks (sorry Darius Blaszyk). I fixed a lot of
things including memory leaks, removed the custom parser to rather use
the one included in FCL etc..


Sorry for OT, but where can I find fpprofiler? I didn't manage to find 
svn link to it (some links google gave me were broken...).

Even better would be to have your updated/improved profiler.


Thanks
Žilvinas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] [patch] fpdoc linear writer ResolveLink fix

2010-08-26 Thread Graeme Geldenhuys
Hi,

Finally squashed this bug!  Sorry Michael, I couldn't wait - I wanted to
get some documentation released and needed this fix.

Patch is include in Mantis report
   http://bugs.freepascal.org/view.php?id=17276


In summary
--
Problem was that the check for Results quit the ResolveLink procedure to
early. It never got to the recursive looking through modules or packages. I
simply had to tweak the Results check.


Remaining issue.

Links in module topics (eg: system unit documentation) is not resolved.
This bug is not caused by my patch - the bug was there all the time, but
unknown to me. No wonder DocView could never find documentation on Pos()
function - and I thought it was a DocView bug.

The ScanModule call (inside the linear constructor) does call
AddTopicPages, but I don't know why they are not added correctly to the
link list. If you add system.writeln(...) in the AddLabel() method, you
will see in the output that things like #rtl.system.Pos does not exist.
No idea why yet.




Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-26 15:50, Žilvinas Ledas het geskryf:
 
 Sorry for OT, but where can I find fpprofiler? I didn't manage to find 
 svn link to it (some links google gave me were broken...).
 Even better would be to have your updated/improved profiler.

It's in the 'fpcprojects' repository.

  http://svn.freepascal.org/svn/fpcprojects/fpprofiler


I'm going to move fpprofiler history, including my changes to a Git
repository. Not sure where yet, probably SourceForge or GitHub.
'fpcprojects' repository is a mess, because it's one SubVersion repository
for many projects - so history is all mixed up. I already extracted all the
fpprofiler specific history from the SubVersion repository into a local git
repository, I simply need to push it to a new home.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] fpdoc's RTF output

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-25 08:25, Michael Van Canneyt het geskryf:
 
 I looked at it, and I've seen where the problem is. I'll try and fix it
 tonight.

Please see the patch at:
   http://bugs.freepascal.org/view.php?id=17276

Not sure if it's the most efficient, but fixes the problem. I tested with
RTL, FCL and fpGUI - looking at all known problem areas in the
documentation. All links are now resolved - if there is documentation for
them. Tested LaTeX, RTF and IPF output writers.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Alan Krause
Graeme,

Can fpprofiler be used to profile code in a shared library (e.g. DLL on
Windows or .so on Linux)? If so, then I'd be very interested in looking at
it as well, and giving it a go.

Thanks much,
  Alan Krause


On Thu, Aug 26, 2010 at 7:11 AM, Graeme Geldenhuys
graemeg.li...@gmail.comwrote:

 Op 2010-08-26 15:50, Žilvinas Ledas het geskryf:
 
  Sorry for OT, but where can I find fpprofiler? I didn't manage to find
  svn link to it (some links google gave me were broken...).
  Even better would be to have your updated/improved profiler.

 It's in the 'fpcprojects' repository.

  http://svn.freepascal.org/svn/fpcprojects/fpprofiler


 I'm going to move fpprofiler history, including my changes to a Git
 repository. Not sure where yet, probably SourceForge or GitHub.
 'fpcprojects' repository is a mess, because it's one SubVersion repository
 for many projects - so history is all mixed up. I already extracted all the
 fpprofiler specific history from the SubVersion repository into a local git
 repository, I simply need to push it to a new home.



 Regards,
  - Graeme -

 --
 fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
 http://opensoft.homeip.net/fpgui/

 ___
 fpc-devel maillist  -  fpc-devel@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-26 16:20, Žilvinas Ledas het geskryf:
 It's in the 'fpcprojects' repository.
http://svn.freepascal.org/svn/fpcprojects/fpprofiler

 Thanks, I'll try it.

Just remember, that's not going to compile.


 Please, post a link to it when you have it. I am definately interested 
 in it!

I'll find it a new home tomorrow and post the link.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-26 16:19, Alan Krause het geskryf:
 
 Can fpprofiler be used to profile code in a shared library (e.g. DLL on
 Windows or .so on Linux)? If so, then I'd be very interested in looking
 at it as well, and giving it a go.

Yes, it should be able too - as soon as fcl-passrc can parse a library
unit. I believe Dimitry is working on that now. I saw Dimitry committed
yesterday a fix for fcl-passrc to parse a program unit. So we are almost
there. :)


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Žilvinas Ledas



On 2010-08-26 17:24, Graeme Geldenhuys wrote:

Op 2010-08-26 16:20, Žilvinas Ledas het geskryf:

It's in the 'fpcprojects' repository.
http://svn.freepascal.org/svn/fpcprojects/fpprofiler


Thanks, I'll try it.

Just remember, that's not going to compile.


Yes, I understand that.

Please, post a link to it when you have it. I am definately interested
in it!

I'll find it a new home tomorrow and post the link.


If you will do it tomorrow then I will wait for it ;)
BTW, what is required/preffered version of fpc? I didn't updated it in a 
few months (2010/06/09) so I guess I should get an update to use your 
improved version of fpprofiler?



Regards
Žilvinas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] fpdoc linear writer ResolveLink fix

2010-08-26 Thread Michael Van Canneyt



On Thu, 26 Aug 2010, Graeme Geldenhuys wrote:


Hi,

Finally squashed this bug!  Sorry Michael, I couldn't wait - I wanted to
get some documentation released and needed this fix.



No need to apologize; It's great that you found a fix. I didn't find time to
work on it, so if you did: perfect


Patch is include in Mantis report
  http://bugs.freepascal.org/view.php?id=17276


In summary
--
Problem was that the check for Results quit the ResolveLink procedure to
early. It never got to the recursive looking through modules or packages. I
simply had to tweak the Results check.


Remaining issue.

Links in module topics (eg: system unit documentation) is not resolved.
This bug is not caused by my patch - the bug was there all the time, but
unknown to me. No wonder DocView could never find documentation on Pos()
function - and I thought it was a DocView bug.

The ScanModule call (inside the linear constructor) does call
AddTopicPages, but I don't know why they are not added correctly to the
link list. If you add system.writeln(...) in the AddLabel() method, you
will see in the output that things like #rtl.system.Pos does not exist.
No idea why yet.


We'll have to do some more debugging.

I applied the patch.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] pscanner: differentiate between EOL Tab characters from general Whitespace

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-26 16:31, Žilvinas Ledas het geskryf:
 BTW, what is required/preffered version of fpc? I didn't updated it in a 
 few months (2010/06/09) so I guess I should get an update to use your 
 improved version of fpprofiler?

I was testing with the latest FPC Trunk (2.5.1) to get the latest features
of fcl-passrc. I don't know if fpprofiler will work on 2.4.x - I haven't tried.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] fpdoc linear writer ResolveLink fix

2010-08-26 Thread Graeme Geldenhuys
Op 2010-08-26 16:42, Michael Van Canneyt het geskryf:
 
 We'll have to do some more debugging.

The bugs get stranger by the minute. :-)

The topics in system units doesn't resolve, but the topics in typinfo unit
does. Is there actually something like a system.pas unit for fpdoc to
parse? I know from history that system unit has always been some special
unit - not like the others. Don't know if this is related though.


 I applied the patch.

Thanks.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] fpdoc linear writer ResolveLink fix

2010-08-26 Thread Michael Van Canneyt



On Thu, 26 Aug 2010, Graeme Geldenhuys wrote:


Op 2010-08-26 16:42, Michael Van Canneyt het geskryf:


We'll have to do some more debugging.


The bugs get stranger by the minute. :-)

The topics in system units doesn't resolve, but the topics in typinfo unit
does. Is there actually something like a system.pas unit for fpdoc to
parse? I know from history that system unit has always been some special
unit - not like the others. Don't know if this is related though.


for fpdoc, the system unit is like any other.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] [patch] fpdoc linear writer ResolveLink fix

2010-08-26 Thread Marco van de Voort
In our previous episode, Graeme Geldenhuys said:
 
 Finally squashed this bug!  Sorry Michael, I couldn't wait - I wanted to
 get some documentation released and needed this fix.
 
 Patch is include in Mantis report
http://bugs.freepascal.org/view.php?id=17276

 In summary
 --
 Problem was that the check for Results quit the ResolveLink procedure to
 early. It never got to the recursive looking through modules or packages. I
 simply had to tweak the Results check.

I don't understand this patch!??!?!

What is the pos() case meant to solve?  If relative link starts with the
current modules unit name, then try package.relativelink?

But what if the relative link is to a different unit? I'm not sure, but
afaik this will break stuff that worked before ?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel