summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-09-12 19:53:57 +0000
committerDirk Herrmann <dirk@dirk-herrmanns-seiten.de>2001-09-12 19:53:57 +0000
commitb00418df099b1c8d59a36834809d54902aa56d5d (patch)
tree1ccd6397ba4cdda4c6e60e92ed71b6db989270ff
parent6ddd941279dd6255ce5790b1b30247953092b06b (diff)
downloadguile-b00418df099b1c8d59a36834809d54902aa56d5d.tar.gz
* Added function scm_str2string. Thanks to Martin Baulig.
-rw-r--r--NEWS7
-rw-r--r--THANKS51
-rw-r--r--TODO2
-rw-r--r--libguile/ChangeLog4
-rw-r--r--libguile/strings.c8
-rw-r--r--libguile/strings.h1
6 files changed, 20 insertions, 53 deletions
diff --git a/NEWS b/NEWS
index 8fc593a06..d740f0ac3 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,13 @@ Previously, comparing two variables with `equal?' would recursivly
compare their values. This is no longer done. Variables are now only
`equal?' if they are `eq?'.
+* Changes to the C interface
+
+** New function: scm_str2string
+
+This function creates a scheme string from a 0-terminated C string. The input
+string is copied.
+
Changes since Guile 1.4:
* Changes to the distribution
diff --git a/THANKS b/THANKS
index 872e63b53..337bd168d 100644
--- a/THANKS
+++ b/THANKS
@@ -7,58 +7,7 @@ The Guile maintainer committee consists of
Contributors since the last release:
- Jost Boekemeier
- Rob Browning
- Will Fitzgerald
- Martin Grabmueller
- Dirk Herrmann
- Gary Houston
- Neil Jerram
- Matthias Koeppe
- Michael Livshin
- Thien-Thi Nguyen
- Keisuke Nishida
- Niibe Yutaka
For fixes or providing information which led to a fix:
- Lars J. Aas
Martin Baulig
- Ian Bicking
- Quetzalcoatl Bradley
- George Caswell
- Albert Chin
- Chris Cramer
- I. N. Golubev
- Eric Hanchrow
- Utz-Uwe Haus
- Karl M. Hegbloom
- Anders Holst
- Stefan Jahn
- Steven G. Johnson
- Richard Kim
- Alexander Klimov
- Brad Knotwell
- Bruce Korb
- Matthias Köppe
- Ralf Mattes
- Shuji Narazaki
- Han-Wen Nienhuys
- Bertrand Petit
- David Pirotte
- Sergey Poznyakoff
- Ariel Rios
- Julian Satchell
- Bill Schottstaedt
- Alex Shinn
- Miroslav Silovic
- Daniel Skarda
- Dale P. Smith
- Masao Uebayashi
- Bernard Urban
- Jacques A. Vidrine.
- Brett Viren
- Thomas Wawrzinek
- Florian Weimer
- Keith Wright
-
diff --git a/TODO b/TODO
index 6890d3d17..00a58ce32 100644
--- a/TODO
+++ b/TODO
@@ -76,8 +76,6 @@ that user-visible changes are reflected in NEWS.
- Start a new section of the NEWS file.
-- Start a new THANKS file.
-
* Before releasing 1.10.0:
diff --git a/libguile/ChangeLog b/libguile/ChangeLog
index 9578ccc34..e591bc7be 100644
--- a/libguile/ChangeLog
+++ b/libguile/ChangeLog
@@ -1,3 +1,7 @@
+2001-09-12 Martin Baulig <martin@home-of-linux.org>
+
+ * strings.[ch] (scm_str2string): New function.
+
2001-09-06 Marius Vollmer <mvo@zagadka.ping.de>
* gc.c (scm_done_free): Always subtract size from scm_mallocated
diff --git a/libguile/strings.c b/libguile/strings.c
index 4d6201d5b..41cb50005 100644
--- a/libguile/strings.c
+++ b/libguile/strings.c
@@ -162,6 +162,14 @@ scm_mem2string (const char *src, size_t len)
return s;
}
+
+SCM
+scm_str2string (const char *src)
+{
+ return scm_mem2string (src, strlen (src));
+}
+
+
SCM
scm_makfrom0str (const char *src)
{
diff --git a/libguile/strings.h b/libguile/strings.h
index dc96ef201..319568ab8 100644
--- a/libguile/strings.h
+++ b/libguile/strings.h
@@ -66,6 +66,7 @@ extern SCM scm_makfromstrs (int argc, char **argv);
extern SCM scm_take_str (char *s, size_t len);
extern SCM scm_take0str (char *s);
extern SCM scm_mem2string (const char *src, size_t len);
+extern SCM scm_str2string (const char *src);
extern SCM scm_makfrom0str (const char *src);
extern SCM scm_makfrom0str_opt (const char *src);
extern SCM scm_allocate_string (size_t len);