output: generic string table implementation
commitbf0bcef3d4975ab964d573fecbe2a8b2960b8120
authorH. Peter Anvin <hpa@zytor.com>
Mon, 24 Apr 2017 07:23:03 +0000 (24 00:23 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 24 Apr 2017 07:23:03 +0000 (24 00:23 -0700)
treea35d875ff8708a3c52f7e70fe55956603b2c3257
parente0172d58706ccbe740bd153c38da42d18f306ade
output: generic string table implementation

Several output formats use "string tables", which is a collection of
null-terminated (C) strings which are referenced by a byte offset into
the string table.  A single string can be referenced an arbitrary
number of times.

As this is quite simple to implement with a hash table, we do exactly
that.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Makefile.in
Mkfiles/msvc.mak
Mkfiles/openwcom.mak
output/strtbl.c [new file with mode: 0644]
output/strtbl.h [new file with mode: 0644]