On Wed, 09 Dec 2009, Szak�ts Viktor wrote:

Hi,

> > Unlike #pragma startup <funcname> this initialization does not use
> > <funcname> in #pragma directive so we can also store above definition
> > in single header file hbiniseg.h and then use in other code:
> >   #elif defined( HB_DATASEG_STARTUP )
> >      #define HB_DATASEG_BODY HB_DATASEG_FUNC( init_func )
> >      #include "hbiniseg.h"
> >   #endif
> > Such solution will resolve the problem with updating many different files
> > when we want to make some modifications in data segment based startup code.
> > Viktor what do you think about it?
> 
> I'd be very good if we could move the init logic 
> to a .h file. And also if could avoid forced C++ for 
> watcom. For MSVC forced mode, it's very useful to 
> keep code clean from C++ warnings though.

OK, I'll make this modification.

> With MSVC 2008, it says this for #pragma on/off:
> a.c(4) : warning C4068: unknown pragma

Thank you and Alex for the tests.

> I hope it's possible to work around it.

Yes, it's not big problem if we move whole HB_DATASEG_STARTUP
to .h file so only one file will have to be update.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to