AminetAminet
Search:
84783 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/c/mkid.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:V1.7, a program identifier database package
Author:Greg McGary, Randell Jesup, Olaf Barthel
Uploader:
Type:dev/c
Architecture:m68k-amigaos
Date:1996-08-26
Download:dev/c/mkid.lha - View contents
Readme:dev/c/mkid.readme
Downloads:647

	I got this back in 1987, and have been using it since then.  It
is freely redistributable (see the original writer's copyright message).
My modifications and the 2 routines I added are public domain.  It also
uses Chuck McManis's cooked IO routines.

	To compile under amigados, you must use -Dfseek=unixfseek.  This
is because the program assumes fseek will extend the file, which is not
normally true under amigados.

	It needs an amigados makefile (badly).  Don't forget to include
amiga.c, amiga_getenv.c, and raw.o.

	It could use some of the 2.0 routines (like the pattern-matching
in place of unix RE's, and GetVar() in amiga_getenv.c).  Under 2.0 you
can use one executable and hardlink the others (it keys off the name it
was run under).

	It's pretty stable.  Unix-pathing has been replaced with amiga-
pathing (., .., etc).  The amiga-specific changes to the main code are
ifdef AMIGA.

	Randell Jesup



	Just about four years later I found this tool on the
Frozen Fish CD-ROM. Neat! But some feature were missing, such as the
regexp support in the lookup utilities and wildcard file name expansion
in mkid. I also found one or the other bug that needed fixing. For
example, if a lookup tool didn't find the ID database in its current
drawer or some parent drawer, it would cause Enforcer hits and change
the calling Shell's current directory without ever restoring it.
Rebuilding the tools using SAS/C was a good idea, the tools are all
pure now and can be made resident. I also threw in some 2.0 additions,
notably the editor launch procedure and the wildcard expansion stuff.
The scanner now handles .i and .asm files and the lookup tools will
output proper AmigaDOS wildcard patterns rather than plain regexp
patterns.
	The distribution preserves Fred's original drawer
structure and adds an SAS/C SMakefile. I removed some of the original
source files which were now obsolete. The binaries in the "bin"
drawer were built for an Amiga running Kickstart 2.04 or higher,
using the ieee math libraries. I haven't tested if they still work on
Kickstart 1.3 and friends, they probably won't.

	Olaf Barthel <olsen@sourcery.han.de>, 29 June 1995


	More, small additions: the C scanner now handles C++ style
comments ("//") and recognizes files with .cpp/.cxx/.c++/.hpp/.hxx/.h++
extensions. There is no specific C++ support in the scanner, but it never
checked for C specific data structures anyway ;) The assembly language
scanner now handles comment lines introduced by "*" or ";". Some file
name and name suffix comparisons were case sensitive, which does not
make that much sense on the Amiga; the comparisons now ignore the file
name case. Speaking of case, the lookup tools sport an "-i" option to
enable case-insensitive pattern comparisons. I changed the makefile
slightly to take advantage of the fact that all tools share the same
basic set of support files which are now bound together in a linker
library. This reduced the tool size once again. The tools now use
utility.library for inline math routines. This means that they will
definitely no longer run under Kickstart 1.3 and below. For the record,
all changes I made and routines I added are public domain.

	Olaf Barthel <olsen@sourcery.han.de>, 23 July 1995


	In an attempt to make the raw/cooked I/O routines more
robust I rewrote raw.c. mkid now uses ffp math routines as it
was using floating point arithmetics only to calculate the final
stats it displays after building the database. This made the program
a little smaller without loss of robustness.

	Olaf Barthel <olsen@sourcery.han.de>, 17 September 1995


	The RCS support was disabled, there probably was no working
Amiga port of it available when Randell killed the code. I rewrote
the relevant routines which appear to be working fine now. The scanners
did not always like end of file conditions, some loops could run
forever. I inserted code to check for EOF where it was obviously missing.
The command line file name expansion code lacked a MatchEnd() in the
right place.

	Olaf Barthel <olsen@sourcery.han.de>, 1 February 1996


	I polished the RCS support a bit and switched all references
to Execute() over to SystemTagList(). After converting the program
to ANSI `C' syntax I found out about some dead code and unused variables
which were easily removed. The programs now compile without warnings. None
of the code that allocated memory ever checked for allocation failures, so
I wrote replacement memory allocation routines that would exit() rather
than cause the programs to die screaming. The `C' language scanner now
knows about all 13 preprocessor directives.

	Olaf Barthel <olsen@sourcery.han.de>, 24 August 1996


Contents of dev/c/mkid.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 2213    4589  48.2% -lh5- 330a Aug 24  1996 amiga_readme
[generic]                16053   25708  62.4% -lh5- b758 Aug 24  1996 bin/aid
[generic]                16053   25708  62.4% -lh5- b758 Aug 24  1996 bin/eid
[generic]                11928   18964  62.9% -lh5- b85f Aug 24  1996 bin/fid
[generic]                16053   25708  62.4% -lh5- b758 Aug 24  1996 bin/gid
[generic]                16053   25708  62.4% -lh5- b758 Aug 24  1996 bin/lid
[generic]                19341   33940  57.0% -lh5- 5892 Aug 24  1996 bin/mkid
[generic]                  392     651  60.2% -lh5- 8b8b Feb  1  1991 doc/cookedio.txt
[generic]                 1763    4020  43.9% -lh5- 737f Feb  1  1991 doc/lid.1
[generic]                 1899    5319  35.7% -lh5- 7daf Jun 29  1995 doc/lid.man
[generic]                 1977    4644  42.6% -lh5- 1358 Feb  1  1991 doc/mkid.1
[generic]                 2183    6384  34.2% -lh5- ebda Jun 29  1995 doc/mkid.man
[generic]                  233     383  60.8% -lh5- 2573 Feb  1  1991 README.fnf
[generic]                  741    1563  47.4% -lh5- e584 Aug  6  1996 src/amiga.c
[generic]                  315     676  46.6% -lh5- bbdc Aug  6  1996 src/basename.c
[generic]                  338     595  56.8% -lh5- 18a5 Aug  6  1996 src/bitcount.c
[generic]                  240     804  29.9% -lh5- 4d00 Aug  6  1996 src/bitops.c
[generic]                  214     537  39.9% -lh5- aa7b Feb  1  1991 src/bitops.h
[generic]                  557    1648  33.8% -lh5- 228b Aug  7  1996 src/bitsvec.c
[generic]                  160     251  63.7% -lh5- c5f4 Aug  6  1996 src/bool.h
[generic]                  157     183  85.8% -lh5- ee6d Aug  6  1996 src/document.c
[generic]                 1324    3535  37.5% -lh5- 6dd8 Aug  6  1996 src/expand_args.c
[generic]                  941    3472  27.1% -lh5- ee24 Aug  6  1996 src/extern.h
[generic]                 1119    2477  45.2% -lh5- 9737 Aug  6  1996 src/fid.c
[generic]                  353     533  66.2% -lh5- 5b28 Aug  6  1996 src/gets0.c
[generic]                 1908    6420  29.7% -lh5- 9364 Aug  6  1996 src/getscan.c
[generic]                  225     361  62.3% -lh5- 3204 Aug  6  1996 src/getsFF.c
[generic]                  964    2334  41.3% -lh5- c643 Aug  6  1996 src/hash.c
[generic]                  797    1717  46.4% -lh5- 8a8b Aug  6  1996 src/id.h
[generic]                  611    1253  48.8% -lh5- 89fb Aug  6  1996 src/init.c
[generic]                 5890   19670  29.9% -lh5- 71b0 Aug  6  1996 src/lid.c
[generic]                  200     363  55.1% -lh5- f1da Aug  6  1996 src/memory.c
[generic]                 6101   18820  32.4% -lh5- 8d83 Aug  6  1996 src/mkid.c
[generic]                 2050    6272  32.7% -lh5- d940 Aug  6  1996 src/opensrc.c
[generic]                   21      21 100.0% -lh0- a5c8 Feb  1  1991 src/patchlevel.h
[generic]                 1931    5860  33.0% -lh5- b1cf Aug  6  1996 src/paths.c
[generic]                  138     225  61.3% -lh5- 5365 Feb  1  1991 src/radix.h
[generic]                  889    1600  55.6% -lh5- 059e Aug  6  1996 src/raw.c
[generic]                 2158    7463  28.9% -lh5- 5d86 Aug  6  1996 src/scan-asm.c
[generic]                 2319    8453  27.4% -lh5- 4a97 Aug  6  1996 src/scan-c.c
[generic]                  560    1148  48.8% -lh5- 1d19 Aug 24  1996 src/SMakefile
[generic]                  676    1894  35.7% -lh5- 88cd Aug  6  1996 src/stoi.c
[generic]                  319     651  49.0% -lh5- f06a Aug  6  1996 src/string.h
[generic]                  170     311  54.7% -lh5- df84 Aug  6  1996 src/strsav.c
[generic]                  660    1955  33.8% -lh5- fce9 Aug  6  1996 src/tty.c
[generic]                  340     578  58.8% -lh5- e577 Aug  6  1996 src/uerror.c
[generic]                  466     794  58.7% -lh5- 0c0c Aug  6  1996 src/wmatch.c
[generic]                  335     546  61.4% -lh5- 7437 Feb  1  1991 todo
[generic]                 6304   16034  39.3% -lh5- 29e3 Aug  6  1996 tutorial
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        49 files  148632  302743  49.1%            Aug 25  1996
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>