From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Heikki Lindholm Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Add stack base support for Mac OS X Date: Tue, 26 Dec 2006 23:14:06 +0200 Message-ID: <4591909E.2040806@cs.helsinki.fi> References: <4590FC62.1010507@cs.helsinki.fi> <87y7ou786j.fsf@zip.com.au> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1167167674 19086 80.91.229.10 (26 Dec 2006 21:14:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 21:14:34 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Tue Dec 26 22:14:33 2006 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzJd2-0004Ne-DE for guile-devel@m.gmane.org; Tue, 26 Dec 2006 22:14:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzJd1-0007x9-P8 for guile-devel@m.gmane.org; Tue, 26 Dec 2006 16:14:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GzJcu-0007ut-Ge for guile-devel@gnu.org; Tue, 26 Dec 2006 16:14:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GzJcq-0007sY-JI for guile-devel@gnu.org; Tue, 26 Dec 2006 16:14:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzJcq-0007sE-Dp for guile-devel@gnu.org; Tue, 26 Dec 2006 16:14:20 -0500 Original-Received: from [193.229.0.46] (helo=mail.kolumbus.fi) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GzJcp-0000Qa-EU for guile-devel@gnu.org; Tue, 26 Dec 2006 16:14:19 -0500 Original-Received: from [10.0.0.4] (a88-112-236-112.elisa-laajakaista.fi [88.112.236.112]) by emh06.mail.saunalahti.fi (Postfix) with ESMTP id 89AAFE5299; Tue, 26 Dec 2006 23:14:11 +0200 (EET) User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: fi, en Original-To: Kevin Ryde In-Reply-To: <87y7ou786j.fsf@zip.com.au> X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:6371 Archived-At: Kevin Ryde kirjoitti: > Heikki Lindholm writes: > >>This patch adds support for getting the stack base (and hence also >>scm_init_guile()) on OS X. Tested only in one particular case I >>needed. > > > Beaut. > > >>-/* pthread_getattr_np not available on MacOS X and Solaris 10. */ >>-#if HAVE_PTHREAD_ATTR_GETSTACK && HAVE_PTHREAD_GETATTR_NP >>+/* pthread_getattr_np not available on Solaris 10. */ >>+#if (HAVE_PTHREAD_ATTR_GETSTACK && HAVE_PTHREAD_GETATTR_NP) || defined(__APPLE__) > > > But hard-coding system names is bad. Yes, but it would look worse had I tried to make it autoconf'ed with my limited experience. Maybe someone else can fill in that part. > >>+ return pthread_get_stackaddr_np (pthread_self ()); > > > Is this the operative feature, a pthread_get_stackaddr_np available? Uh, say what? -- Heikki Lindholm _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel