diff options
| author | Kenichi Handa | 1999-02-17 08:12:31 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1999-02-17 08:12:31 +0000 |
| commit | c22554ac395d5ec99b44575d8e3f3a109df6f921 (patch) | |
| tree | e38b5a1a175ebe7bfe0a883ff62be95983079c4a /src | |
| parent | 02882bbce618f0f33689f57cb3eb33902d5d03ae (diff) | |
| download | emacs-c22554ac395d5ec99b44575d8e3f3a109df6f921.tar.gz emacs-c22554ac395d5ec99b44575d8e3f3a109df6f921.zip | |
(Fbase64_encode_string): New optional argument `NO_LINE_BREAK'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 10 |
1 files changed, 6 insertions, 4 deletions
| @@ -2897,9 +2897,11 @@ into shorter lines.") | |||
| 2897 | } | 2897 | } |
| 2898 | 2898 | ||
| 2899 | DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string, | 2899 | DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string, |
| 2900 | 1, 1, 0, | 2900 | 1, 2, 0, |
| 2901 | "Base64-encode STRING and return the result.") | 2901 | "Base64-encode STRING and return the result.\n\ |
| 2902 | (string) | 2902 | Optional second argument NO-LINE-BREAK means do not break long lines\n\ |
| 2903 | into shorter lines.") | ||
| 2904 | (string, no_line_break) | ||
| 2903 | Lisp_Object string; | 2905 | Lisp_Object string; |
| 2904 | { | 2906 | { |
| 2905 | int allength, length, encoded_length; | 2907 | int allength, length, encoded_length; |
| @@ -2918,7 +2920,7 @@ DEFUN ("base64-encode-string", Fbase64_encode_string, Sbase64_encode_string, | |||
| 2918 | encoded = (char *) xmalloc (allength); | 2920 | encoded = (char *) xmalloc (allength); |
| 2919 | 2921 | ||
| 2920 | encoded_length = base64_encode_1 (XSTRING (string)->data, | 2922 | encoded_length = base64_encode_1 (XSTRING (string)->data, |
| 2921 | encoded, length, 0); | 2923 | encoded, length, NILP (no_line_break)); |
| 2922 | if (encoded_length > allength) | 2924 | if (encoded_length > allength) |
| 2923 | abort (); | 2925 | abort (); |
| 2924 | 2926 | ||