From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: doco keyword primitives Date: Thu, 28 Aug 2003 11:59:54 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87u182k0dh.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1062037396 7582 80.91.224.253 (28 Aug 2003 02:23:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2003 02:23:16 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Aug 28 04:23:14 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19sCRO-0000gQ-00 for ; Thu, 28 Aug 2003 04:23:14 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sCQo-0004e1-Hz for guile-devel@m.gmane.org; Wed, 27 Aug 2003 22:22:38 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 19sC7n-0006xH-Ep for guile-devel@gnu.org; Wed, 27 Aug 2003 22:02:59 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 19sC7N-0006eI-2B for guile-devel@gnu.org; Wed, 27 Aug 2003 22:02:33 -0400 Original-Received: from [61.8.0.36] (helo=snoopy.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.22) id 19sC55-0005a0-L3 for guile-devel@gnu.org; Wed, 27 Aug 2003 22:00:11 -0400 Original-Received: from sunny.pacific.net.au (sunny.pacific.net.au [203.2.228.40]) by snoopy.pacific.net.au (8.12.3/8.12.3/Debian-6.4) with ESMTP id h7S2090J011573 for ; Thu, 28 Aug 2003 12:00:09 +1000 Original-Received: from wisma.pacific.net.au (wisma.pacific.net.au [210.23.129.72]) by sunny.pacific.net.au with ESMTP id h7S209kv027993 for ; Thu, 28 Aug 2003 12:00:09 +1000 (EST) Original-Received: from localhost (ppp99.dyn228.pacific.net.au [203.143.228.99]) by wisma.pacific.net.au (8.12.9/8.12.9) with ESMTP id h7S207vj026260 for ; Thu, 28 Aug 2003 12:00:07 +1000 (EST) Original-Received: from gg by localhost with local (Exim 3.35 #1 (Debian)) id 19sC4q-0004OF-00; Thu, 28 Aug 2003 11:59:56 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2727 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2727 * scheme-data.texi (Keyword Primitives): Add examples to make-keyword-from-dash-symbol and keyword-dash-symbol. Add scm_c_make_keyword. Should it be documented that scm_c_make_keyword doesn't use the given string once it returns? I think that's how it works now, don't know if this might want to change in the future so it could use a literal string in rodata directly, or whatever. - Scheme Procedure: make-keyword-from-dash-symbol symbol - C Function: scm_make_keyword_from_dash_symbol (symbol) Make a keyword object from a SYMBOL that starts with a dash. For example, (make-keyword-from-dash-symbol '-foo) => #:foo - Scheme Procedure: keyword-dash-symbol keyword - C Function: scm_keyword_dash_symbol (keyword) Return the dash symbol for KEYWORD. This is the inverse of `make-keyword-from-dash-symbol'. For example, (keyword-dash-symbol #:foo) => -foo - C Function: SCM scm_c_make_keyword (char *STR) Make a keyword object from a string. For example, scm_c_make_keyword ("foo") => #:foo The new keyword doesn't use the given C string, so it can be freed or rewritten as desired. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel