aboutsummaryrefslogtreecommitdiffstats
path: root/src/character.c
diff options
context:
space:
mode:
authorStefan Monnier2011-03-31 00:24:03 -0400
committerStefan Monnier2011-03-31 00:24:03 -0400
commit40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch)
treeb56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/character.c
parentf488fb6528738131ef41859e1f04125f2e50efce (diff)
parent44f230aa043ebb222aa0876b44d70484d5dd38db (diff)
downloademacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz
emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip
Merge from trunk
Diffstat (limited to 'src/character.c')
-rw-r--r--src/character.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/character.c b/src/character.c
index fdaf22f04f8..bac9f6af81e 100644
--- a/src/character.c
+++ b/src/character.c
@@ -232,13 +232,10 @@ translate_char (Lisp_Object table, int c)
232} 232}
233 233
234/* Convert ASCII or 8-bit character C to unibyte. If C is none of 234/* Convert ASCII or 8-bit character C to unibyte. If C is none of
235 them, return (C & 0xFF). 235 them, return (C & 0xFF). */
236
237 The argument REV_TBL is now ignored. It will be removed in the
238 future. */
239 236
240int 237int
241multibyte_char_to_unibyte (int c, Lisp_Object rev_tbl) 238multibyte_char_to_unibyte (int c)
242{ 239{
243 if (c < 0x80) 240 if (c < 0x80)
244 return c; 241 return c;
@@ -893,9 +890,10 @@ DEFUN ("string", Fstring, Sstring, 0, MANY, 0,
893 doc: /* 890 doc: /*
894Concatenate all the argument characters and make the result a string. 891Concatenate all the argument characters and make the result a string.
895usage: (string &rest CHARACTERS) */) 892usage: (string &rest CHARACTERS) */)
896 (int n, Lisp_Object *args) 893 (size_t n, Lisp_Object *args)
897{ 894{
898 int i, c; 895 size_t i;
896 int c;
899 unsigned char *buf, *p; 897 unsigned char *buf, *p;
900 Lisp_Object str; 898 Lisp_Object str;
901 USE_SAFE_ALLOCA; 899 USE_SAFE_ALLOCA;
@@ -918,9 +916,10 @@ usage: (string &rest CHARACTERS) */)
918DEFUN ("unibyte-string", Funibyte_string, Sunibyte_string, 0, MANY, 0, 916DEFUN ("unibyte-string", Funibyte_string, Sunibyte_string, 0, MANY, 0,
919 doc: /* Concatenate all the argument bytes and make the result a unibyte string. 917 doc: /* Concatenate all the argument bytes and make the result a unibyte string.
920usage: (unibyte-string &rest BYTES) */) 918usage: (unibyte-string &rest BYTES) */)
921 (int n, Lisp_Object *args) 919 (size_t n, Lisp_Object *args)
922{ 920{
923 int i, c; 921 size_t i;
922 int c;
924 unsigned char *buf, *p; 923 unsigned char *buf, *p;
925 Lisp_Object str; 924 Lisp_Object str;
926 USE_SAFE_ALLOCA; 925 USE_SAFE_ALLOCA;