changeset 46459:0a9cbcbdbe45

(xstrdup, make_string, make_unibyte_string) (make_multibyte_string, build_string): String pointer args now point to const.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 19:47:52 +0000
parents 7e33dc6a6f56
children 876356a4a4ca
files src/alloc.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Tue Jul 16 18:01:19 2002 +0000
+++ b/src/alloc.c	Tue Jul 16 19:47:52 2002 +0000
@@ -575,7 +575,7 @@
 
 char *
 xstrdup (s)
-     char *s;
+     const char *s;
 {
   size_t len = strlen (s) + 1;
   char *p = (char *) xmalloc (len);
@@ -1757,7 +1757,7 @@
 
 Lisp_Object
 make_string (contents, nbytes)
-     char *contents;
+     const char *contents;
      int nbytes;
 {
   register Lisp_Object val;
@@ -1778,7 +1778,7 @@
 
 Lisp_Object
 make_unibyte_string (contents, length)
-     char *contents;
+     const char *contents;
      int length;
 {
   register Lisp_Object val;
@@ -1794,7 +1794,7 @@
 
 Lisp_Object
 make_multibyte_string (contents, nchars, nbytes)
-     char *contents;
+     const char *contents;
      int nchars, nbytes;
 {
   register Lisp_Object val;
@@ -1845,7 +1845,7 @@
 
 Lisp_Object
 build_string (str)
-     char *str;
+     const char *str;
 {
   return make_string (str, strlen (str));
 }