9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Jens Staal <staal1978@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] a jmp_buf in APE question
Date: Mon,  7 Jan 2013 17:43:28 +0100	[thread overview]
Message-ID: <2866092.UbjgmXZDK6@krypton> (raw)
In-Reply-To: <ffa1f863ed603ea4877115140f236c1c@kw.quanstro.net>

måndagen den 7 januari 2013 06.15.08 skrev  erik quanstrom:

> 
> yes, i think it would be unwise.  i think you mean
> 
> 		sp = ((uintptr*)jb)[0]
> 		pc = ((uintptr*)jb)[1]
> 

yeah sorry I did not mean it to look like C-code and the paranthesis was meant 
to indicate that jb got #defined to jmp_buf.

> > this is how other similar ports of this package (GNU portable threads)
> > have
> > been made, for example for win32
> 
> it's just my opinion.  i would see such code as peeking through
> an deliberately-opaque interface.  and to me that's almost always
> a bad idea.  even if it works, and even if other people do it.
> 
> others might have other thoughts.
> 
> - erik

I thank you for your feedback and help I did the build despite your warnings, 
and the result can be found either at:

http://code.google.com/p/ports2plan9/downloads/list

or:

/n/sources/contrib/staal1978/pkg

Tests and pre-compiled test binaries can also be found at:

/n/sources/contrib/staal1978/pkg/pth_test

There are some scary stuff in there, like the test_sig result, but others seem 
to work...



      reply	other threads:[~2013-01-07 16:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-07  5:45 Jens Staal
2013-01-07 10:31 ` erik quanstrom
2013-01-07 11:05   ` Jens Staal
2013-01-07 11:15     ` erik quanstrom
2013-01-07 16:43       ` Jens Staal [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2866092.UbjgmXZDK6@krypton \
    --to=staal1978@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).