Mercurial > emacs
comparison src/alloc.c @ 1500:6489d5182a64
* alloc.c (Frope_elt): Declare arguments to be Lisp_Objects.
| author | Jim Blandy <jimb@redhat.com> |
|---|---|
| date | Sat, 31 Oct 1992 04:50:13 +0000 |
| parents | 0b98dbec0738 |
| children | 00ba13693a97 |
comparison
equal
deleted
inserted
replaced
| 1499:94aa6a66e921 | 1500:6489d5182a64 |
|---|---|
| 923 DEFUN ("rope-elt", Frope_elt, Srope_elt, 2, 2, 0, | 923 DEFUN ("rope-elt", Frope_elt, Srope_elt, 2, 2, 0, |
| 924 "Return an element of rope R at index N.\n\ | 924 "Return an element of rope R at index N.\n\ |
| 925 A rope is a string in which each pair of bytes is considered an element.\n\ | 925 A rope is a string in which each pair of bytes is considered an element.\n\ |
| 926 See variable `buffer-display-table' for the uses of ropes.") | 926 See variable `buffer-display-table' for the uses of ropes.") |
| 927 (r, n) | 927 (r, n) |
| 928 Lisp_Object r, n; | |
| 928 { | 929 { |
| 929 CHECK_STRING (r, 0); | 930 CHECK_STRING (r, 0); |
| 930 CHECK_NUMBER (n, 1); | 931 CHECK_NUMBER (n, 1); |
| 931 if ((XSTRING (r)->size / sizeof (GLYPH)) <= XINT (n) || XINT (n) < 0) | 932 if ((XSTRING (r)->size / sizeof (GLYPH)) <= XINT (n) || XINT (n) < 0) |
| 932 args_out_of_range (r, n); | 933 args_out_of_range (r, n); |
