changeset 34:e4a6c3f3d0f2 2.0.0

misc: minor typos and changes
author David Demelier <markand@malikania.fr>
date Mon, 07 Jun 2021 21:14:55 +0200
parents 01c29bee0c54
children 6750b0276186
files INSTALL.md README.md base64.h libbase64.3 test/base64.c
diffstat 5 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/INSTALL.md	Wed Jun 02 16:37:59 2021 +0200
+++ b/INSTALL.md	Mon Jun 07 21:14:55 2021 +0200
@@ -4,7 +4,7 @@
 Requirements
 ------------
 
-- C99.
+- C89.
 
 Installation
 ------------
--- a/README.md	Wed Jun 02 16:37:59 2021 +0200
+++ b/README.md	Mon Jun 07 21:14:55 2021 +0200
@@ -4,7 +4,7 @@
 Introduction
 ------------
 
-Base64 encoding and decoding easily in C.
+Base64 encoding and decoding easily in pure C89.
 
 Features
 --------
--- a/base64.h	Wed Jun 02 16:37:59 2021 +0200
+++ b/base64.h	Mon Jun 07 21:14:55 2021 +0200
@@ -29,22 +29,22 @@
 #define B64_DECODE_LENGTH(x) (3 * ((x) / 4))
 
 int
-b64_isbase64(unsigned char ch);
+b64_isbase64(unsigned char);
 
 int
-b64_isvalid(unsigned char ch);
+b64_isvalid(unsigned char);
 
 unsigned char
-b64_lookup(unsigned char value);
+b64_lookup(unsigned char);
 
 unsigned char
-b64_rlookup(unsigned char ch);
+b64_rlookup(unsigned char);
 
 size_t
-b64_encode(const char *src, size_t srcsz, char *dst, size_t dstsz);
+b64_encode(const char *, size_t, char *, size_t);
 
 size_t
-b64_decode(const char *src, size_t srcsz, char *dst, size_t dstsz);
+b64_decode(const char *, size_t, char *, size_t);
 
 #if defined(__cplusplus)
 }
--- a/libbase64.3	Wed Jun 02 16:37:59 2021 +0200
+++ b/libbase64.3	Mon Jun 07 21:14:55 2021 +0200
@@ -64,8 +64,9 @@
 functions read the base64 encoded (or base64url encoded) input string
 .Fa src
 up to
-.Fa srcsz (which can be -1 to read until NUL character) and stores the decoded
-result into argument
+.Fa srcsz
+(which can be -1 to read until NUL character) and stores the decoded result
+into argument
 .Fa dst .
 Ths function writes up to
 .Fa dstsz
--- a/test/base64.c	Wed Jun 02 16:37:59 2021 +0200
+++ b/test/base64.c	Mon Jun 07 21:14:55 2021 +0200
@@ -1,5 +1,5 @@
 /*
- * base64.c -- main test file for base64 (C version)
+ * base64.c -- main test file for base64
  *
  * Copyright (c) 2013-2021 David Demelier <markand@malikania.fr>
  *