Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/usr.bin/spell



Module Name:    src
Committed By:   perry
Date:           Wed Jun 29 21:06:12 UTC 2005

Added Files:
        src/usr.bin/spell: Makefile Makefile.inc TODO
        src/usr.bin/spell/spell: Makefile american british special.math
            special.netbsd spell.1 spell.sh stop
        src/usr.bin/spell/spellprog: Makefile look.c spellprog.c

Log Message:
spell(1), from OpenBSD.

This code came originally from v7/32v and thence from 4.4BSD. It was
freed by Caldera. Todd Miller cleaned up and ANSIfied the code, and
then changed it to use the mmap/binary search algorithm for looking up
words in the dictionary that look(1) uses, replacing the hash based
lookups which were faster but broken by the size of the current
dictionary.

I've done a teeny bit of additional cleanup and replaced Todd's ksh
spell(1) script with a /bin/sh script, and re-structured the code to
follow the bsd makefile way, with one executable per directory.

I also added a TODO list recommending a bunch of kinds of cleanup.

The code is, frankly, awful. It was fine in the 1970s, a time of much
more limited resources and tastes, but the world has moved on a bunch
since then. The reason for pulling this in at all is that it will make
it much easier to check in-tree documentation for spelling errors
automatically.


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/usr.bin/spell/Makefile src/usr.bin/spell/Makefile.inc \
    src/usr.bin/spell/TODO
cvs rdiff -r0 -r1.1 src/usr.bin/spell/spell/Makefile \
    src/usr.bin/spell/spell/american src/usr.bin/spell/spell/british \
    src/usr.bin/spell/spell/special.math \
    src/usr.bin/spell/spell/special.netbsd src/usr.bin/spell/spell/spell.1 \
    src/usr.bin/spell/spell/spell.sh src/usr.bin/spell/spell/stop
cvs rdiff -r0 -r1.1 src/usr.bin/spell/spellprog/Makefile \
    src/usr.bin/spell/spellprog/look.c \
    src/usr.bin/spell/spellprog/spellprog.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index