chiark / gitweb /
Add 'base91-c/' from commit '664054e8f603f09badb98ef09ee1bd1e58d93659'
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:51:36 +0000 (21:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Feb 2020 21:51:58 +0000 (21:51 +0000)
I imported a tarball download from
    http://downloads.sourceforge.net/base91/base91-0.6.0.tar.gz
and then made few commits of my own; you can find my base91-c at
    https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/githttp/base91.git

git-subtree-dir: base91-c
git-subtree-mainline: ed50eaeb8f01deade6e230811de72ba19da7e32f
git-subtree-split: 664054e8f603f09badb98ef09ee1bd1e58d93659

24 files changed:
1  2 
base91-c/.gitignore
base91-c/AWK/README
base91-c/AWK/b91dec.awk
base91-c/DOS-asm/b91enc.asm
base91-c/DOS-asm/readme.txt
base91-c/Java/b91cli.java
base91-c/Java/basE91.java
base91-c/Java/build_jar.sh
base91-c/Java/license.txt
base91-c/Java/manifest.mf
base91-c/Java/readme.txt
base91-c/LICENSE
base91-c/Makefile
base91-c/NEWS
base91-c/PHP4/README
base91-c/PHP4/base91.php
base91-c/README
base91-c/base91.1
base91-c/base91.c
base91-c/base91.h
base91-c/cli.c
base91-c/lentest.c
base91-c/test/Makefile
base91-c/test/test.sh

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4863b4ec75979a5324dcd5b6735e1f7bcaa39953
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,8 @@@
++/base91
++/lentest
++*.o
++/test/b91dec
++/test/b91enc
++/test/lentest
++/test/*.dat
++/test/*.b91
index 0000000000000000000000000000000000000000,ff1a8346b173bb8bf93f7382c04bd41eedd82809..ff1a8346b173bb8bf93f7382c04bd41eedd82809
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,8a15fc3ea9af96565da18fd7be70add0be658895..8a15fc3ea9af96565da18fd7be70add0be658895
mode 000000,100755..100755
--- /dev/null
index 0000000000000000000000000000000000000000,c4d00e9a6f57742f97e89733f5c07b605ab4aed6..c4d00e9a6f57742f97e89733f5c07b605ab4aed6
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,a3c0f4716037668c050d420c611c83b855e6c870..a3c0f4716037668c050d420c611c83b855e6c870
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,7d39990bf88788c5b767da3a01b274445b240d86..7d39990bf88788c5b767da3a01b274445b240d86
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,56d7fda95357e1db833769c8096470edb9c6513e..56d7fda95357e1db833769c8096470edb9c6513e
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,bd54b3ebcfd60fc6f23bc7af287110a4ce722e66..bd54b3ebcfd60fc6f23bc7af287110a4ce722e66
mode 000000,100755..100755
--- /dev/null
index 0000000000000000000000000000000000000000,8b952bd3958fe59d53f6197318a3fb67e6e94d15..8b952bd3958fe59d53f6197318a3fb67e6e94d15
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,b06ff67a817ca05c662af50d30a71c43e3ece948..b06ff67a817ca05c662af50d30a71c43e3ece948
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,bc5a3acfaf2f946d475cf24755a6d1e17db16730..bc5a3acfaf2f946d475cf24755a6d1e17db16730
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,e4a656c3d492a79494cfe554b1ae7562d3a7b6de..e4a656c3d492a79494cfe554b1ae7562d3a7b6de
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,feb0e45c10eaffffa92726b8c49c730fa5860d5d..feb0e45c10eaffffa92726b8c49c730fa5860d5d
mode 000000,100644..100644
--- /dev/null
diff --cc base91-c/NEWS
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..98dbf2289e8e76a5dcfeedd58b30faa13b2465bb
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,64 @@@
++[0.6.0] 2006-11-01
++* basE91 encoding/decoding routines restructured to be thread-safe
++* lots of type fixes
++* new core utility is `base91', with a behaviour similar to GNU base64
++* introduce `-w' switch for wrapping encoded output lines after given length
++* long option handling
++* use standard I/O functions for better portability
++* MinGW compatibility code added
++* minor extensions to `make check'
++* Java-tool wraps output lines by default; can be avoided with the `-u' switch
++* license changed to BSD
++
++[0.5.2] 2006-08-25
++* code cleanup
++* encoder for DOS rewritten to be faster and compatible down to Intel 8086
++
++[0.5.1] 2005-10-05
++* Java-b91enc now handles file extensions case insensitively
++* native DOS version of basE91 encoder added
++
++[0.5.0] 2005-06-24
++* ATTENTION: this version breaks backward compatibility because the basE91
++  alphabet was changed to reduce the occurrence of double quotes - sorry, I
++  should have done this long before
++* b91dec is installed as a link to b91enc
++* `-e' option added (complement to `-d')
++* build system should be more portable now
++
++[0.4.2] 2005-05-16
++* AWK basE91 decoder no longer depends on GNU extensions
++* Java byte code removed (distributed separately in a jar file)
++
++[0.4.1] 2005-05-07
++* some code cleanup
++* Java-b91enc can break encoded output to lines of 76 characters (`-b' switch)
++
++[0.4.0] 2005-04-26
++* improved encoder behaviour on stream ends (can save one byte sometimes)
++* allocate buffer memory dynamically; use overlapping buffers
++* new `-m' switch can be used for testing
++* verbose mode extended: `-vv' shows memory statistics
++* `make check' implemented - runs some basic tests
++
++[0.3.1] 2005-04-19
++* b91enc has a verbose mode now (`-v' switch)
++* Java-b91enc accepts command line syntax with only one FILE argument again
++
++[0.3.0] 2005-04-17
++* the code was restructured to allow a more universal use of the basE91 backend
++* version switch changed to `-V' which is more common - sorry for that
++* `make install' is possible now
++* changed Java-b91enc to be a bit more similar to the C version
++* implementation in PHP added
++
++[0.2.3] 2005-04-11
++* man page included (thanks to Kei!)
++* version (-v) switch added
++
++[0.2.2] 2005-04-10
++* fixed a bug in decoder that could result in corrupt output on 64-bit systems
++* Java class files included
++
++[0.2.1] 2005-04-09
++* first public release
index 0000000000000000000000000000000000000000,b357bad30e47393bbf9007db3149a95861551414..b357bad30e47393bbf9007db3149a95861551414
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,ea34f03429c356086eb08ea97d5f79920b1ce5da..ea34f03429c356086eb08ea97d5f79920b1ce5da
mode 000000,100644..100644
--- /dev/null
diff --cc base91-c/README
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..731eaaa632258499ac854de62db7313b733c0b91
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,75 @@@
++basE91 - converting binary data to ASCII text
++~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
++
++Copyright (c) 2000-2006 Joachim Henke
++
++
++basE91 is an advanced method for encoding binary data as ASCII characters. It
++is similar to UUencode or base64, but is more efficient. The overhead produced
++by basE91 depends on the input data. It amounts at most to 23% (versus 33% for
++base64) and can range down to 14%, which typically occurs on 0-byte blocks.
++This makes basE91 very useful for transferring larger files over binary
++insecure connections like e-mail or terminal lines.
++
++The current algorithm has been written with portability and simplicity in mind
++an is therefore not necessarily optimised for speed.
++
++
++* Alphabet
++
++As the name suggests, basE91 needs 91 characters to represent the encoded
++binary data in ASCII. From the 94 printable ASCII characters (0x21-0x7E), the
++following three ones have been omitted to build the basE91 alphabet:
++
++- (dash, 0x2D)
++' (apostrophe, 0x27)
++\ (backslash, 0x5C)
++
++The translation table is composed of the remaining characters as shown below.
++
++ 0 A  13 N    26 a    39 n    52 0    65 %    78 >
++ 1 B  14 O    27 b    40 o    53 1    66 &    79 ?
++ 2 C  15 P    28 c    41 p    54 2    67 (    80 @
++ 3 D  16 Q    29 d    42 q    55 3    68 )    81 [
++ 4 E  17 R    30 e    43 r    56 4    69 *    82 ]
++ 5 F  18 S    31 f    44 s    57 5    70 +    83 ^
++ 6 G  19 T    32 g    45 t    58 6    71 ,    84 _
++ 7 H  20 U    33 h    46 u    59 7    72 .    85 `
++ 8 I  21 V    34 i    47 v    60 8    73 /    86 {
++ 9 J  22 W    35 j    48 w    61 9    74 :    87 |
++10 K  23 X    36 k    49 x    62 !    75 ;    88 }
++11 L  24 Y    37 l    50 y    63 #    76 <    89 ~
++12 M  25 Z    38 m    51 z    64 $    77 =    90 "
++
++
++* Building
++
++1. `cd' to the directory containing the package's source code and type `make'
++   to compile the package
++
++2. optionally, type `make check' to run any self-tests that come with the
++   package
++
++3. type `make install' to install the program and documentation in `/usr/local'
++   (to specify another installation prefix than `/usr/local', type
++   `make prefix=PATH install' instead)
++
++4. you can remove the program binaries and object files from the source code
++   directory by typing `make clean'
++
++
++* Developer
++
++Joachim Henke <j-o@users.sourceforge.net>
++
++
++* Copying
++
++All source code in this package is released under the terms of the BSD license.
++See the file LICENSE for copying permission.
++
++
++* See also
++
++Please visit the basE91 home page [http://base91.sourceforge.net/] for the
++latest version and pre-compiled binaries.
index 0000000000000000000000000000000000000000,3f31deddd8fbfa84c85be87341b71d21c7a557ed..3f31deddd8fbfa84c85be87341b71d21c7a557ed
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,d1877e997554ff8e78efac278794a70489dcbdc4..d1877e997554ff8e78efac278794a70489dcbdc4
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,b298017784578004f62e5702fe7a6b3e8050d4f4..b298017784578004f62e5702fe7a6b3e8050d4f4
mode 000000,100644..100644
--- /dev/null
diff --cc base91-c/cli.c
index 0000000000000000000000000000000000000000,7ca7f33ccb1bfd1fa0569017c159d11a5ea4aabd..7ca7f33ccb1bfd1fa0569017c159d11a5ea4aabd
mode 000000,100644..100644
--- /dev/null
--- 2/cli.c
index 0000000000000000000000000000000000000000,3e43d70cb5787d7234402fdf3dab12cd025f7859..3e43d70cb5787d7234402fdf3dab12cd025f7859
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,2ce31df661519ddb582d9440ef2d65c0c29ba95a..2ce31df661519ddb582d9440ef2d65c0c29ba95a
mode 000000,100644..100644
--- /dev/null
index 0000000000000000000000000000000000000000,09548f9a1f4be327d8b359b17b101af044d8e895..09548f9a1f4be327d8b359b17b101af044d8e895
mode 000000,100644..100644
--- /dev/null