diff options
author | Ludovic Courtès <ludo@gnu.org> | 2010-07-04 18:38:53 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2010-07-04 18:38:53 +0200 |
commit | 100e20c7fa1a3ae268152842a0781d9f867eda96 (patch) | |
tree | 74da66ac662c3fde2034758de14f458ce12f8715 /libguile/strings.h | |
parent | 6069e9733163cf802e806bfa55cb4fcc54fc6ac7 (diff) | |
download | guile-100e20c7fa1a3ae268152842a0781d9f867eda96.tar.gz |
Add `scm_i_string_data'.
* libguile/strings.c (STRINGBUF_CONTENTS): New macro.
(STRINGBUF_CHARS, STRINGBUF_WIDE_CHARS): Use it.
(scm_i_string_data): New function.
* libguile/strings.h (scm_i_string_data): New declaration.
Diffstat (limited to 'libguile/strings.h')
-rw-r--r-- | libguile/strings.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libguile/strings.h b/libguile/strings.h index 6eafafa5d..ad9518c16 100644 --- a/libguile/strings.h +++ b/libguile/strings.h @@ -3,7 +3,7 @@ #ifndef SCM_STRINGS_H #define SCM_STRINGS_H -/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2004, 2005, 2006, 2008, 2009 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,2000,2001, 2004, 2005, 2006, 2008, 2009, 2010 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License @@ -172,6 +172,8 @@ SCM_INTERNAL size_t scm_i_string_length (SCM str); SCM_API /* FIXME: not internal */ const char *scm_i_string_chars (SCM str); SCM_API /* FIXME: not internal */ char *scm_i_string_writable_chars (SCM str); SCM_INTERNAL const scm_t_wchar *scm_i_string_wide_chars (SCM str); +SCM_INTERNAL const void *scm_i_string_data (SCM str); + SCM_INTERNAL SCM scm_i_string_start_writing (SCM str); SCM_INTERNAL void scm_i_string_stop_writing (void); SCM_INTERNAL int scm_i_is_narrow_string (SCM str); |