RE: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Massimo Belgrano
t: R: R: R: [Harbour] HB_STATIC_FUNC Hi Massimo, > What do you think about using a robodoc for extract from source > Also here you see that separing prg and c will be more useful for > generating documentation I don't know this tools. I'll take a look. Also Francesco was inte

RE: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Massimo Belgrano
Can this help maurizio with ANIMATE class in hwgui? -Original Message- >I used to use (but not very strictly) this method, f.e.: >w32_reg.prg >w32_regc.c > >Brgds, >Viktor ___ Harbour mailing list Harbour@harbour-project.org http://lists.harbour

R: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Maurizio la Cecilia
Hi Massimo, > What do you think about using a robodoc for extract from source > Also here you see that separing prg and c will be more useful for > generating documentation I don't know this tools. I'll take a look. Also Francesco was interested to similar solution in aiding on documentation work

Re: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
A documentation is important also without documenting HB_STATIC_FUNC for now What do you think about using a robodoc for extract from source Also here you see that separing prg and c will be more useful for generating documentation Yes. Same goes for every tool which makes a decision about the

Re: R: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
There is also a workaround where you #include external .c code inside BEGINDUMP/ENDDUMP. So that you can switch between both methods. This adds some more complexity, though. He cannot. As I said in xHarbour this feature does not work correctly and #include ".c" inside BEGINDUMP/ENDDUMP is yet an

RE: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Massimo Belgrano
loper List.' Subject: R: R: R: [Harbour] HB_STATIC_FUNC Hi Victor, > From a purely practical POV regarding hwgui, the only > thing I don't see here is what makes ANIMATE > class so different from the other classes, that this > problem is present here, but not in other places.

Re: R: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Przemyslaw Czerpak
On Fri, 06 Jun 2008, Szakáts Viktor wrote: Hi Viktor, > There is also a workaround where you #include external > .c code inside BEGINDUMP/ENDDUMP. So that you can switch > between both methods. This adds some more complexity, > though. He cannot. As I said in xHarbour this feature does not work

Re: R: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
Hi Maurizio, Yes, of course, i could hide something that could be hidden natively. If no solution will came i'll do so, or i'll use some #ifdef __XHARBOUR__ taking decision at compile time about the scope of methods. Not a problem at all. There is also a workaround where you #include extern

R: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Maurizio la Cecilia
Hi Victor, > From a purely practical POV regarding hwgui, the only > thing I don't see here is what makes ANIMATE > class so different from the other classes, that this > problem is present here, but not in other places. > Simply because this was first class in alphabetical order and when i sta

Re: R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
Hi Maurizio, Notice that amongst the 7 files using "inline" C, hanimat.prg is the only one actually using STATIC, and all those functions have distinct global names anyway, so IMO the whole problem is quite marginal and academic. Not so, IMHO. The Bcc/xHarbour resolves the function reference

R: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Maurizio la Cecilia
> -Messaggio originale- > Da: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Per conto di > Szakáts Viktor > Inviato: venerdì 6 giugno 2008 9.40 > A: Harbour Project Main Developer List. > Oggetto: Re: R: [Harbour] HB_STATIC_FUNC > Notice that amongst the

Re: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
Hi Maurizio, I see that even in hwgui, there are plenty of .c and .prg files anyway, so I wonder why the mixed ones? One reason might be that this way, they can make those C functions 'static' to the .prg file that uses them (hence the recent question and all the hacking to achieve this). To me

R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Maurizio la Cecilia
Hi Przemek, > > In harbour a similar declaration results in a > HB_FUNC_EXTERN function with > > FS_PUBLIC scope and not in HB_FUNC_STATIC with FS_LOCAL scope. > > Again it's not true. I'm not so expert in prototyping, thus i could made some incorrect assertion. The true problem isn't probably

Re: R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Szakáts Viktor
Hi Maurizio, not at all. My target is strong encapsulation of data and methods in class implementation and i can obtain this, IMHO, only having in the same source the (x)harbour and C code. Otherwise the static function, i think obviously, will remain local to C module and cannot be reached

R: [Harbour] HB_STATIC_FUNC

2008-06-06 Thread Maurizio la Cecilia
Hi Viktor, > I see that even in hwgui, there are plenty of .c and > .prg files anyway, so I wonder why the mixed ones? > > One reason might be that this way, they can make > those C functions 'static' to the .prg file that uses > them (hence the recent question and all the hacking > to achieve t

R: [Harbour] HB_STATIC_FUNC

2008-06-05 Thread Maurizio la Cecilia
Hi Massimo, not at all. My target is strong encapsulation of data and methods in class implementation and i can obtain this, IMHO, only having in the same source the (x)harbour and C code. Otherwise the static function, i think obviously, will remain local to C module and cannot be reached by xBase