unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Michael Gran" <spk121@yahoo.com>
Cc: guile-devel@gnu.org
Subject: scm_t_string_failed_conversion_handler
Date: Wed, 12 Aug 2009 19:33:23 +0200	[thread overview]
Message-ID: <87bpml3pjw.fsf@gnu.org> (raw)
In-Reply-To: <E1MbFHF-0005GD-6G@cvs.savannah.gnu.org> (Michael Gran's message of "Wed, 12 Aug 2009 14:58:09 +0000")

Hi Mike!

"Michael Gran" <spk121@yahoo.com> writes:

> commit ca2858c6ba827675af1e348b740b868abc1fdc8d
> Author: Michael Gran <spk121@yahoo.com>
> Date:   Wed Aug 12 07:49:16 2009 -0700
>
>     Don't include libunistring headers in Guile public headers
>     
>     This requres the creation of a new type
>     scm_t_string_failed_conversion_handler to replace libunistring's
>     enum iconveh_ilseq_handler.

Thanks for doing this!  (And the other fixes, too.)

> +  pf ("/* Constants from uniconv.h.  */\n");
> +  pf ("#define SCM_ICONVEH_ERROR %d\n", (int) iconveh_error);
> +  pf ("#define SCM_ICONVEH_QUESTION_MARK %d\n", 
> +      (int) iconveh_question_mark);
> +  pf ("#define SCM_ICONVEH_ESCAPE_SEQUENCE %d\n",
> +      (int) iconveh_escape_sequence);

[...]

> +typedef enum
> +{
> +  SCM_FAILED_CONVERSION_ERROR = SCM_ICONVEH_ERROR,
> +  SCM_FAILED_CONVERSION_QUESTION_MARK = SCM_ICONVEH_QUESTION_MARK,
> +  SCM_FAILED_CONVERSION_ESCAPE_SEQUENCE = SCM_ICONVEH_ESCAPE_SEQUENCE
> +} scm_t_string_failed_conversion_handler;
> +

Nice trick!

Thanks,
Ludo'.




           reply	other threads:[~2009-08-12 17:33 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <E1MbFHF-0005GD-6G@cvs.savannah.gnu.org>]

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=87bpml3pjw.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=spk121@yahoo.com \
    /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).