From: 5c667a3 via General Guile related discussions <guile-user@gnu.org>
To: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Creating a Vtable in C
Date: Sat, 19 Nov 2022 21:16:04 +0000 [thread overview]
Message-ID: <fuFCL0BYG-eAWWID_8kNkj_Y-FrMcI97DVtRpwni4hw9MEpa8_6ZUZmWK-_JtLzLilmCB6u0TG2KGEkVVZfVAFbUUFCIvGTJczstDSy24EQ=@pm.me> (raw)
Hello all,
I'm currently looking for a way to create a vtable in C,
to pass it then to the existing guile-function below to create a struct value in C:
(which I then want to pass to guile)
scm_make_struct(SCM vtable, SCM tail_size, SCM init_list) or
the alternatives.
I think older guile versions there was scm_make_vtable_vtable.
Also I tried the C-function scm_struct_vtable from the current version.
Currently I have in C a struct type event and a vector of events.
I aim for having some function get_next_event in C and a Scheme wrapper
function for it.
Thank you for any help and suggestions.
Regards,Rael
reply other threads:[~2022-11-19 21:16 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='fuFCL0BYG-eAWWID_8kNkj_Y-FrMcI97DVtRpwni4hw9MEpa8_6ZUZmWK-_JtLzLilmCB6u0TG2KGEkVVZfVAFbUUFCIvGTJczstDSy24EQ=@pm.me' \
--to=guile-user@gnu.org \
--cc=5c667a3+guile@pm.me \
/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).