[plt-scheme] Moving mzscheme extension to 299.XX

From: Daniel Pinto de Mello e Silva (daniel.silva at gmail.com)
Date: Thu Feb 17 19:48:25 EST 2005

To make Scheme strings from unix utf8, I like to use:

#define scheme_make_string scheme_make_utf8_string
#define scheme_make_sized_string(s, l, x) scheme_make_sized_utf8_string(s, l)

Daniel

On Thu, 17 Feb 2005 17:50:39 -0500, David J. Neu <djneu at att.net> wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> Eli, Ron,
> 
> Many, many thanks for the help!
> 
> Ron's approach seems to work just fine.
> 
> > Still trying to grok it.
> However, since Ron waivered a bit, can someone confirm that he (and
> now I) are doing the "right" thing?
> 
> Many thanks!
> 
> Cheers,
> David
> 
> On Thu, Feb 17, 2005 at 11:48:47AM -0800, Ron Stanonik wrote:
> > On Thu, 17 Feb 2005, David J. Neu wrote:
> > > I'm trying to move a mzscheme extension from 208 to 299.XX.
> > >
> > > I changed all occurrences of:
> > >
> > >    SCHEME_STRINGP => SCHEME_CHAR_STRINGP
> > >
> > > and
> > >
> > >    SCHEME_STR_VAL => SCHEME_CHAR_STR_VAL
> >
> > I'm using
> >
> >   #define SCH_UNIXSTR(arg) \
> >     SCHEME_BYTE_STR_VAL(scheme_char_string_to_byte_string(arg))
> >
> >   #define UNIX_SCHSTR(arg) \
> >     scheme_byte_string_to_char_string(scheme_make_byte_string(arg))
> >
> > which I (mis)think converts from scheme wide to unix utf-8 and back.
> >
> > Still trying to grok it.
> >
> > Ron
> > stanonik at cogsci.ucsd.edu
> 
>



Posted on the users mailing list.