diff options
| author | Richard M. Stallman | 1994-09-21 06:54:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-21 06:54:51 +0000 |
| commit | d4af3687405fc0326418d1c257226e1383247e1c (patch) | |
| tree | 351454ee6da83311c25d5f9ae56a48336f4489a5 /src | |
| parent | 82277c2ff70710598b15419e354031a3374e9c6a (diff) | |
| download | emacs-d4af3687405fc0326418d1c257226e1383247e1c.tar.gz emacs-d4af3687405fc0326418d1c257226e1383247e1c.zip | |
(concat3): New function.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 16 |
1 files changed, 16 insertions, 0 deletions
| @@ -196,6 +196,22 @@ concat2 (s1, s2) | |||
| 196 | #endif /* NO_ARG_ARRAY */ | 196 | #endif /* NO_ARG_ARRAY */ |
| 197 | } | 197 | } |
| 198 | 198 | ||
| 199 | /* ARGSUSED */ | ||
| 200 | Lisp_Object | ||
| 201 | concat3 (s1, s2, s3) | ||
| 202 | Lisp_Object s1, s2, s3; | ||
| 203 | { | ||
| 204 | #ifdef NO_ARG_ARRAY | ||
| 205 | Lisp_Object args[3]; | ||
| 206 | args[0] = s1; | ||
| 207 | args[1] = s2; | ||
| 208 | args[2] = s3; | ||
| 209 | return concat (3, args, Lisp_String, 0); | ||
| 210 | #else | ||
| 211 | return concat (3, &s1, Lisp_String, 0); | ||
| 212 | #endif /* NO_ARG_ARRAY */ | ||
| 213 | } | ||
| 214 | |||
| 199 | DEFUN ("append", Fappend, Sappend, 0, MANY, 0, | 215 | DEFUN ("append", Fappend, Sappend, 0, MANY, 0, |
| 200 | "Concatenate all the arguments and make the result a list.\n\ | 216 | "Concatenate all the arguments and make the result a list.\n\ |
| 201 | The result is a list whose elements are the elements of all the arguments.\n\ | 217 | The result is a list whose elements are the elements of all the arguments.\n\ |