unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Volker Grabsch <vog@notjusthosting.com>
To: Mike Gran <spk121@yahoo.com>
Cc: bug-guile@gnu.org, guile-devel@gnu.org
Subject: Re: Portability fixes for win32 cross compiling
Date: Thu, 15 Apr 2010 22:58:22 +0200	[thread overview]
Message-ID: <20100415205822.GA6186@flap> (raw)
In-Reply-To: <600433.60324.qm@web37903.mail.mud.yahoo.com>

Mike Gran <spk121@yahoo.com> schrieb:
> From: Volker Grabsch vog@notjusthosting.com
> > Is it really necessary to #include the 
> > "uniconv.h" from the cross system and to provide corresponding
> > SCM_ICONVEH_* constants?
> 
> Probably not.  I doubt that the libunistring constants are going
> to change upstream, so you could hack around it by hard-coding them.
> Simple, and possibly risky should libunistring decide to change them.

Since I'll probably support Guile in mingw-cross-env for a long
time, I'd like to find a solution that doesn't require such a
bad hack.

> Or, I suppose, we could write a function in strings.c to convert
> SCM_ICONVEH constants to libunistring constants.  That might be
> friendlier to your cross-build, but, that function would get called
> very often.  Might be a slight performance hit.

What about a read-only variable that is initialized on Guile
initialization or as an initialized constant?

Or, what about changing the generated code? Why does the generator
have to determine a number to be written into the generated code?
Instead, the generated "scmconfig.h" could contain code like this:

    #include <uniconv.h>

    ...

    #define SCM_ICONVEH_ERROR iconveh_error


Greets,

    Volker

-- 
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR




  reply	other threads:[~2010-04-15 20:58 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-15  0:51 Portability fixes for win32 cross compiling Volker Grabsch
2010-04-15 14:12 ` Mike Gran
2010-04-15 20:58   ` Volker Grabsch [this message]
2010-04-21 20:22     ` Volker Grabsch
2010-05-03  9:17       ` Volker Grabsch
2010-05-03 12:31         ` Greg Troxel
2010-05-21 10:09       ` Andy Wingo
2010-05-22 13:44         ` Ludovic Courtès
2010-05-24 20:30         ` Volker Grabsch
2010-05-28 13:10       ` Ludovic Courtès
2010-05-28 14:56         ` Volker Grabsch
2010-06-08 22:01           ` Ludovic Courtès
2010-06-08 22:12           ` No Itisnt
2010-06-09  6:42             ` Andy Wingo
2010-07-28 12:40             ` Volker Grabsch
2010-05-28 13:15 ` Ludovic Courtès
2010-05-28 14:44   ` Volker Grabsch

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=20100415205822.GA6186@flap \
    --to=vog@notjusthosting.com \
    --cc=bug-guile@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).