Hi Przemek, > 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. With MSVC 2008, it says this for #pragma on/off: a.c(4) : warning C4068: unknown pragma I hope it's possible to work around it. Brgds, Viktor _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
