[Mono-devel-list] Re: Patch: 100% working mono under FreeBSD (small nit)
Bill Middleton
flashdict at gmail.com
Mon Apr 11 14:31:38 EDT 2005
Hi Lupus,
I will work up another patch to implement your suggestions. I based
the original on the principle of "do the least harm", but I will
remove the #ifdefs where you have suggested, and setup a check for
ucontext.h in configure.in.
See below.
On Apr 11, 2005 7:17 PM, Paolo Molaro <lupus at ximian.com> wrote:
> #if defined(__FreeBSD__)
> #define CTX_REG_EAX(ctx) ((ctx)uc_mcontext.mc_eax)
> ...
> #else
> #define CTX_REG_EAX(ctx) ((ctx)uc_mcontext.gregs [REG_EAX])
> ...
> #endif
>
> This way the #ifdefs are moved to the header file and not in the middle
> of the code.
This one is a bit trickier. The current implementation relies on
Zoltan's new sigcontext_to_monocontext() fix, and I don't know how he
wants to handle it going forward. I'll defer to him.
Thanks for the feedback.
Bill
More information about the Mono-devel-list
mailing list