aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorPaul Eggert2011-03-26 19:12:36 -0700
committerPaul Eggert2011-03-26 19:12:36 -0700
commitc5101a77a4066d979698d356c3a9c7f387007359 (patch)
tree0d18e8940a4fac6092a98a07bcc625bd29e67179 /src/coding.c
parentdd3f25f792d724f59fac3e2d4faa21b311f21137 (diff)
downloademacs-c5101a77a4066d979698d356c3a9c7f387007359.tar.gz
emacs-c5101a77a4066d979698d356c3a9c7f387007359.zip
Variadic C functions now count arguments with size_t, not int.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/coding.c b/src/coding.c
index 0596d16bf46..a93a9a4d0e4 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -9300,7 +9300,7 @@ function to call for FILENAME, that function should examine the
9300contents of BUFFER instead of reading the file. 9300contents of BUFFER instead of reading the file.
9301 9301
9302usage: (find-operation-coding-system OPERATION ARGUMENTS...) */) 9302usage: (find-operation-coding-system OPERATION ARGUMENTS...) */)
9303 (int nargs, Lisp_Object *args) 9303 (size_t nargs, Lisp_Object *args)
9304{ 9304{
9305 Lisp_Object operation, target_idx, target, val; 9305 Lisp_Object operation, target_idx, target, val;
9306 register Lisp_Object chain; 9306 register Lisp_Object chain;
@@ -9309,17 +9309,17 @@ usage: (find-operation-coding-system OPERATION ARGUMENTS...) */)
9309 error ("Too few arguments"); 9309 error ("Too few arguments");
9310 operation = args[0]; 9310 operation = args[0];
9311 if (!SYMBOLP (operation) 9311 if (!SYMBOLP (operation)
9312 || !INTEGERP (target_idx = Fget (operation, Qtarget_idx))) 9312 || !NATNUMP (target_idx = Fget (operation, Qtarget_idx)))
9313 error ("Invalid first argument"); 9313 error ("Invalid first argument");
9314 if (nargs < 1 + XINT (target_idx)) 9314 if (nargs < 1 + XFASTINT (target_idx))
9315 error ("Too few arguments for operation: %s", 9315 error ("Too few arguments for operation: %s",
9316 SDATA (SYMBOL_NAME (operation))); 9316 SDATA (SYMBOL_NAME (operation)));
9317 target = args[XINT (target_idx) + 1]; 9317 target = args[XFASTINT (target_idx) + 1];
9318 if (!(STRINGP (target) 9318 if (!(STRINGP (target)
9319 || (EQ (operation, Qinsert_file_contents) && CONSP (target) 9319 || (EQ (operation, Qinsert_file_contents) && CONSP (target)
9320 && STRINGP (XCAR (target)) && BUFFERP (XCDR (target))) 9320 && STRINGP (XCAR (target)) && BUFFERP (XCDR (target)))
9321 || (EQ (operation, Qopen_network_stream) && INTEGERP (target)))) 9321 || (EQ (operation, Qopen_network_stream) && INTEGERP (target))))
9322 error ("Invalid %dth argument", XINT (target_idx) + 1); 9322 error ("Invalid %dth argument", XFASTINT (target_idx) + 1);
9323 if (CONSP (target)) 9323 if (CONSP (target))
9324 target = XCAR (target); 9324 target = XCAR (target);
9325 9325
@@ -9376,9 +9376,9 @@ If multiple coding systems belong to the same category,
9376all but the first one are ignored. 9376all but the first one are ignored.
9377 9377
9378usage: (set-coding-system-priority &rest coding-systems) */) 9378usage: (set-coding-system-priority &rest coding-systems) */)
9379 (int nargs, Lisp_Object *args) 9379 (size_t nargs, Lisp_Object *args)
9380{ 9380{
9381 int i, j; 9381 size_t i, j;
9382 int changed[coding_category_max]; 9382 int changed[coding_category_max];
9383 enum coding_category priorities[coding_category_max]; 9383 enum coding_category priorities[coding_category_max];
9384 9384
@@ -9421,7 +9421,7 @@ usage: (set-coding-system-priority &rest coding-systems) */)
9421 9421
9422 /* Update `coding-category-list'. */ 9422 /* Update `coding-category-list'. */
9423 Vcoding_category_list = Qnil; 9423 Vcoding_category_list = Qnil;
9424 for (i = coding_category_max - 1; i >= 0; i--) 9424 for (i = coding_category_max; i-- > 0; )
9425 Vcoding_category_list 9425 Vcoding_category_list
9426 = Fcons (AREF (Vcoding_category_table, priorities[i]), 9426 = Fcons (AREF (Vcoding_category_table, priorities[i]),
9427 Vcoding_category_list); 9427 Vcoding_category_list);
@@ -9482,7 +9482,7 @@ DEFUN ("define-coding-system-internal", Fdefine_coding_system_internal,
9482 Sdefine_coding_system_internal, coding_arg_max, MANY, 0, 9482 Sdefine_coding_system_internal, coding_arg_max, MANY, 0,
9483 doc: /* For internal use only. 9483 doc: /* For internal use only.
9484usage: (define-coding-system-internal ...) */) 9484usage: (define-coding-system-internal ...) */)
9485 (int nargs, Lisp_Object *args) 9485 (size_t nargs, Lisp_Object *args)
9486{ 9486{
9487 Lisp_Object name; 9487 Lisp_Object name;
9488 Lisp_Object spec_vec; /* [ ATTRS ALIASE EOL_TYPE ] */ 9488 Lisp_Object spec_vec; /* [ ATTRS ALIASE EOL_TYPE ] */