]> git.ipfire.org Git - thirdparty/coreutils.git/commit
base64 module: adjust API so it's compatible with gnulib's
authorBo Borgerson <gigabo@gmail.com>
Wed, 30 Apr 2008 21:40:38 +0000 (17:40 -0400)
committerJim Meyering <meyering@redhat.com>
Mon, 5 May 2008 15:57:41 +0000 (17:57 +0200)
commitc64411a38a25e696edb33e49f8917012d0cd4cba
treeba9d728482ddbc89202fbc551f0ee6f044418b9b
parentfcd450ecb9121c3e2f9c11a5c0ed037b347730fa
base64 module: adjust API so it's compatible with gnulib's

* gl/lib/base64.c (base64_decode_ctx): If no context structure was passed in,
treat newlines as garbage (this is the historical behavior).  Formerly
base64_decode.
(base64_decode_alloc_ctx): Formerly base64_decode_alloc.
* gl/lib/base64.h (base64_decode): Macro for four-argument calls.
(base64_decode_alloc): Likewise.
* src/base64.c (do_decode): Call base64_decode_ctx instead of base64_decode.

Signed-off-by: Bo Borgerson <gigabo@gmail.com>
gl/lib/base64.c
gl/lib/base64.h
src/base64.c