/* base64 interface for XEmacs.
- Copyright (C) 1998 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999 Free Software Foundation, Inc.
This file is part of XEmacs.
/* Author: William Perry <wmperry@aventail.com> */
-#include <config.h>
-
-#include "lisp.h"
-#include "buffer.h"
-#include "insdel.h"
-#include "lstream.h"
-#ifdef FILE_CODING
-#include "file-coding.h"
-#endif
+#include <emodules.h>
unsigned char alphabet[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/* set up the in stream */
if (BUFFERP (object))
{
- struct buffer *b = decode_buffer (object, 1);
+ struct buffer *b = XBUFFER (object);
Bufpos begv, endv;
/* Figure out where we need to get info from */
get_buffer_range_char (b, start, end, &begv, &endv, GB_ALLOW_NIL);
/* set up the in stream */
if (BUFFERP (object))
{
- struct buffer *b = decode_buffer (object, 1);
+ struct buffer *b = XBUFFER (object);
Bufpos begv, endv;
/* Figure out where we need to get info from */
get_buffer_range_char (b, start, end, &begv, &endv, GB_ALLOW_NIL);
}
void
-syms_of (void)
+syms_of_base64 (void)
{
DEFSUBR(Fbase64_encode);
DEFSUBR(Fbase64_decode);
}
void
-vars_of (void)
+vars_of_base64 (void)
{
Fprovide (intern ("base64"));
}