unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Joshua Datko <jbdatko@gmail.com>
To: guile-user@gnu.org
Subject: Creating a new port in C for use in guile
Date: Tue, 02 Sep 2014 16:28:44 -0600	[thread overview]
Message-ID: <m01trtveqr.fsf@deepthought.datko.lan> (raw)

I want to make a new Port. I would like to write the port implementation
in C and use that port in scheme.

I'm a bit confused on how to proceed though. From reading the docs, it
seems I have to create a C function, in the form of an extension, that
calls scm_make_port_type.

However, the manual states [1] that the return value from
scm_make_port_type is a scm_ptob_descriptor. I'm confused on how I
instantiate this new port type to get a scm_port.

What am I missing?

Thanks,

Josh

[1] https://www.gnu.org/software/guile/manual/guile.html#Port-Implementation




             reply	other threads:[~2014-09-02 22:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-02 22:28 Joshua Datko [this message]
2014-09-04 11:00 ` Creating a new port in C for use in guile Ludovic Courtès

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

  List information: https://www.gnu.org/software/guile/

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

  git send-email \
    --in-reply-to=m01trtveqr.fsf@deepthought.datko.lan \
    --to=jbdatko@gmail.com \
    --cc=guile-user@gnu.org \
    /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 read-only IMAP folder(s) and NNTP newsgroup(s).