aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorKen Raeburn2002-07-16 19:47:52 +0000
committerKen Raeburn2002-07-16 19:47:52 +0000
commit943b873ebafce226551dc5c28956a6dbaaceca27 (patch)
tree5d0c96c3462036eaa5990563024ce4a714ac9279 /src/alloc.c
parent576c4a0fd471588dda6a1b2c4231866340c45b09 (diff)
downloademacs-943b873ebafce226551dc5c28956a6dbaaceca27.tar.gz
emacs-943b873ebafce226551dc5c28956a6dbaaceca27.zip
(xstrdup, make_string, make_unibyte_string)
(make_multibyte_string, build_string): String pointer args now point to const.
Diffstat (limited to 'src/alloc.c')
-rw-r--r--src/alloc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 470cb9277bb..b8d54ee3ba9 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -575,7 +575,7 @@ xfree (block)
575 575
576char * 576char *
577xstrdup (s) 577xstrdup (s)
578 char *s; 578 const char *s;
579{ 579{
580 size_t len = strlen (s) + 1; 580 size_t len = strlen (s) + 1;
581 char *p = (char *) xmalloc (len); 581 char *p = (char *) xmalloc (len);
@@ -1757,7 +1757,7 @@ LENGTH must be a number. INIT matters only in whether it is t or nil. */)
1757 1757
1758Lisp_Object 1758Lisp_Object
1759make_string (contents, nbytes) 1759make_string (contents, nbytes)
1760 char *contents; 1760 const char *contents;
1761 int nbytes; 1761 int nbytes;
1762{ 1762{
1763 register Lisp_Object val; 1763 register Lisp_Object val;
@@ -1778,7 +1778,7 @@ make_string (contents, nbytes)
1778 1778
1779Lisp_Object 1779Lisp_Object
1780make_unibyte_string (contents, length) 1780make_unibyte_string (contents, length)
1781 char *contents; 1781 const char *contents;
1782 int length; 1782 int length;
1783{ 1783{
1784 register Lisp_Object val; 1784 register Lisp_Object val;
@@ -1794,7 +1794,7 @@ make_unibyte_string (contents, length)
1794 1794
1795Lisp_Object 1795Lisp_Object
1796make_multibyte_string (contents, nchars, nbytes) 1796make_multibyte_string (contents, nchars, nbytes)
1797 char *contents; 1797 const char *contents;
1798 int nchars, nbytes; 1798 int nchars, nbytes;
1799{ 1799{
1800 register Lisp_Object val; 1800 register Lisp_Object val;
@@ -1845,7 +1845,7 @@ make_specified_string (contents, nchars, nbytes, multibyte)
1845 1845
1846Lisp_Object 1846Lisp_Object
1847build_string (str) 1847build_string (str)
1848 char *str; 1848 const char *str;
1849{ 1849{
1850 return make_string (str, strlen (str)); 1850 return make_string (str, strlen (str));
1851} 1851}