Re: [Geany-devel] Function Definition

2010-04-18 Thread Enrico Tröger
On Fri, 16 Apr 2010 20:39:59 +0200, Colomban wrote: jordan a écrit : As Enzo said, there is the scope to determine if a particular line is part of a function or not, but its is not supported by every tag generator used by Geany. What I personally chose was to walk the tag list and find the

Re: [Geany-devel] Function Definition

2010-04-17 Thread jordan
On 04/16/2010 02:39 PM, Colomban Wendling wrote: jordan a écrit : As Enzo said, there is the scope to determine if a particular line is part of a function or not, but its is not supported by every tag generator used by Geany. What I personally chose was to walk the tag list and find the

Re: [Geany-devel] Function Definition

2010-04-17 Thread Colomban Wendling
jordan a écrit : […] however this method seems broken as after the first comment block is inserted any tags below the insertion no longer have a valid line number until the application is saved. I notice this behavior is also present in the symbol browser of Geany, if you add some lines

Re: [Geany-devel] Function Definition

2010-04-16 Thread Colomban Wendling
jordan a écrit : As Enzo said, there is the scope to determine if a particular line is part of a function or not, but its is not supported by every tag generator used by Geany. What I personally chose was to walk the tag list and find the tag closest to the current line. Tweaking this way a

Re: [Geany-devel] Function Definition

2010-04-14 Thread Enzo Matrix
So this brings me to my questions, is there an easy way to determine if the current position in the editor is part of a function or not? If so is there an easy way to get the function definition? If not could someone maybe point me to some tutorials about parsing text in c. If you

Re: [Geany-devel] Function Definition

2010-04-14 Thread Colomban Wendling
Hi Jordan, jordan a écrit : I'm trying to write a plug-in that among other things adds a function header.Unfortunately this is also my first C program so it has been more of a learning experience then anything, but I'm finally at the point where it sort of works. What does your plugin,