On 9/7/19 4:20 PM, Alessio Vanni wrote: > Christian Grothoff <[email protected]> writes: > >> but in this case there seems to be a better alternative: use >> a C constructor to call GNUNET_OS_init(): >> >> /** >> * Initialize i18n >> */ >> void __attribute__ ((constructor)) i18n_init () { >> GNUNET_OS_init (...); >> } >> >> Constructors run before main(), so that should fix your problem nicely. > > I wasn't aware of this feature. Would it be OK to add a constructor > calling `GNUNET_OS_init' in the gnunet-ext service? It seems to be > something that a reference implementation/template might want to show.
Sure, overall gnunet-ext could certainly be improved by illustrating more things. Patches welcome ;-) -Christian
signature.asc
Description: OpenPGP digital signature
_______________________________________________ GNUnet-developers mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gnunet-developers
