]> Savannah Git Hosting - gnulib.git/commit
base64: new function isubase64; also, tune.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 Oct 2023 21:00:40 +0000 (14:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 25 Oct 2023 21:17:56 +0000 (14:17 -0700)
commit48d0d5e95f0ae115f8b7097efbeda73e453091fc
tree6f245dd0eb3d08633e3d82d2495c25a8ea83cbd2
parent6a6d70a3515559e332a39c65e69d5cb848aa5097
base64: new function isubase64; also, tune.

* lib/base64.c (BASE64_INLINE): Define.
(base64_to_int): Rename from b64 and make it extern.  All uses changed.
(uchar_in_range): Remove.  All uses removed.
(isbase64, base64_decode_ctx_init):
Move to lib/base64.h and make inline.
* lib/base64.h: Ignore -Wtype-limits, so that we needn’t
worry about uchar_in_range.
(BASE64_INLINE): Define, and use _GL_INLINE_HEADER_BEGIN.
(isubase64): New function, useful as it as a different signature.
(isbase64): Define in terms of isubase64.
* modules/base64 (Depends-on): Add extern-inline.
ChangeLog
lib/base64.c
lib/base64.h
modules/base64