* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
-#include "lib/unicode.h"
-#include "lib/unaligned.h"
+#include "ucw/lib.h"
+#include "ucw/unicode.h"
+#include "ucw/unaligned.h"
#include "charset/charconv.h"
#include "charset/chartable.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/fastbuf.h"
#include "charset/charconv.h"
#include "charset/fb-charconv.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/mp-charconv.h"
#include <string.h>
#include <alloca.h>
#ifndef _CHARSET_MP_CHARCONV_H
#define _CHARSET_MP_CHARCONV_H
-#include "lib/mempool.h"
+#include "ucw/mempool.h"
#include "charset/charconv.h"
byte *mp_strconv(struct mempool *mp, const byte *s, uns cs_in, uns cs_out);
* of the GNU General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/charconv.h"
#include <string.h>
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/stk-charconv.h"
#include <string.h>
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/unicat.h"
#include "charset/U-cat.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/unicat.h"
#include "charset/U-ligatures.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/unicat.h"
#include "charset/U-lower.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/unicat.h"
#include "charset/U-upper.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "charset/unicat.h"
#include "charset/U-unacc.h"
* (c) 2007 Martin Mares <mj@ucw.cz>
*/
-#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/lfs.h"
-#include "lib/asio.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
+#include "ucw/lfs.h"
+#include "ucw/asio.h"
#include <stdio.h>
#include <stdlib.h>
* (c) 2007 Martin Mares <mj@ucw.cz>
*/
-#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/lfs.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
+#include "ucw/lfs.h"
#include <stdio.h>
#include <stdlib.h>
# Path to Sherlock build directory
[ -n "$BUILD" ] || BUILD=..
-[ -f "$BUILD/lib/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory"
+[ -f "$BUILD/ucw/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory"
# Find out sort buffer size
parse-config 'Sorter{##SortBuffer}'
# Check various bit widths of the radix sorter
rm -f tmp/radix-*
for W in $WIDTHS ; do
- rm -f $BUILD/obj/lib/sorter/sort-test{,.o}
+ rm -f $BUILD/obj/ucw/sorter/sort-test{,.o}
if [ $W = 0 ] ; then
log "Compiling with no radix splits"
- ( cd $BUILD && make obj/lib/sorter/sort-test )
+ ( cd $BUILD && make obj/ucw/sorter/sort-test )
OPT="-d32"
else
log "Compiling with $W-bit radix splits"
- ( cd $BUILD && make CEXTRA="-DFORCE_RADIX_BITS=$W" obj/lib/sorter/sort-test )
+ ( cd $BUILD && make CEXTRA="-DFORCE_RADIX_BITS=$W" obj/ucw/sorter/sort-test )
OPT=
fi
for THR in $THRS ; do
log "Testing with RadixThreshold=$THR"
- $BUILD/obj/lib/sorter/sort-test -SThreads.DefaultStackSize=2M -SSorter.RadixThreshold=$THR -s$SIZE -t$TESTS $OPT -v 2>&1 | tee -a tmp/radix-$W
+ $BUILD/obj/ucw/sorter/sort-test -SThreads.DefaultStackSize=2M -SSorter.RadixThreshold=$THR -s$SIZE -t$TESTS $OPT -v 2>&1 | tee -a tmp/radix-$W
done
done
# Path to Sherlock build directory
[ -n "$BUILD" ] || BUILD=..
-[ -f "$BUILD/lib/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory"
+[ -f "$BUILD/ucw/sorter/sorter.h" ] || die "BUILD does not point to Sherlock build directory"
# Find out sort buffer size
parse-config 'Sorter{##SortBuffer}'
echo $SIZE >>tmp/radix-sizes
for T in $THRS ; do
log "Trying size $SIZE with threshold $T"
- $BUILD/obj/lib/sorter/sort-test -SSorter.RadixThreshold=$T -s$SIZE -t$TEST -v 2>&1 | tee -a tmp/radix-$T
+ $BUILD/obj/ucw/sorter/sort-test -SSorter.RadixThreshold=$T -s$SIZE -t$TEST -v 2>&1 | tee -a tmp/radix-$T
done
SIZE=$(($SIZE/2))
done
*/
#include "sherlock/sherlock.h"
-#include "lib/getopt.h"
-#include "lib/md5.h"
+#include "ucw/getopt.h"
+#include "ucw/md5.h"
#include <stdio.h>
#include <stdlib.h>
#define ASORT_ELT(i) a[i].key
#define ASORT_SWAP(i,j) do { struct elt t=a[i]; a[i]=a[j]; a[j]=t; } while (0)
#define ASORT_EXTRA_ARGS , struct elt *a
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
#define ASORT_PREFIX(x) asi_##x
#define ASORT_KEY_TYPE u32
#define ASORT_ELT(i) ind[i]->key
#define ASORT_SWAP(i,j) do { struct elt *t=ind[i]; ind[i]=ind[j]; ind[j]=t; } while (0)
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
static void r1_sort(void)
{
LIBSH=$(o)/sherlock/libsh.pc
# Include makefiles of libraries we wish to use
-include $(s)/lib/Makefile
+include $(s)/ucw/Makefile
include $(s)/charset/Makefile
include $(s)/sherlock/Makefile
our $srcdir;
BEGIN {
- my $pkgfile = "lib/wildmatch.c";
+ my $pkgfile = "ucw/wildmatch.c";
if (!defined ($srcdir = $ENV{"SRCDIR"})) {
if (-f $pkgfile) {
$srcdir=".";
die "Don't know how to find myself. Please set SRCDIR manually.";
}
}
- require "$srcdir/lib/perl/Configure.pm";
+ require "$srcdir/ucw/perl/Configure.pm";
UCW::Configure::import UCW::Configure;
}
Init($srcdir, "default.cfg");
-Include "lib/default.cfg";
+Include "ucw/default.cfg";
Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n";
Include Get("CONFIG");
-Include "lib/autoconf.cfg";
+Include "ucw/autoconf.cfg";
Finish();
Log "\nConfigured, run `make' to build everything.\n";
-#include "lib/lib.h"
+#include "ucw/lib.h"
int main(void)
{
LIBIMAGES=$(o)/images/libimages.pc
# Include makefiles of libraries we wish to use
-include $(s)/lib/Makefile
+include $(s)/ucw/Makefile
include $(s)/charset/Makefile
include $(s)/lang/Makefile
include $(s)/images/Makefile
our $srcdir;
BEGIN {
- my $pkgfile = "lib/wildmatch.c";
+ my $pkgfile = "ucw/wildmatch.c";
if (!defined ($srcdir = $ENV{"SRCDIR"})) {
if (-f $pkgfile) {
$srcdir=".";
die "Don't know how to find myself. Please set SRCDIR manually.";
}
}
- require "$srcdir/lib/perl/Configure.pm";
+ require "$srcdir/ucw/perl/Configure.pm";
UCW::Configure::import UCW::Configure;
}
Init($srcdir, "default.cfg");
-Include "lib/default.cfg";
+Include "ucw/default.cfg";
Log "### Configuring TestApp ###\n\n";
Include Get("CONFIG");
-Include "lib/autoconf.cfg";
+Include "ucw/autoconf.cfg";
Finish();
Log "\nConfigured, run `make' to build everything.\n";
-#include "lib/lib.h"
+#include "ucw/lib.h"
int main(void)
{
* of the GNU General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/color.h"
#include "images/error.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/conf.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
#include "images/images.h"
#if defined(CONFIG_IMAGES_SIM) || defined(CONFIG_IMAGES_DUP)
#include "images/signature.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/bbuf.h"
+#include "ucw/lib.h"
+#include "ucw/bbuf.h"
#include "images/images.h"
#include "images/error.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/duplicates.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/color.h"
#include "images/duplicates.h"
* of the GNU General Public License.
*/
-#include "lib/lib.h"
-#include "lib/getopt.h"
-#include "lib/fastbuf.h"
-#include "lib/mempool.h"
+#include "ucw/lib.h"
+#include "ucw/getopt.h"
+#include "ucw/fastbuf.h"
+#include "ucw/mempool.h"
#include "images/images.h"
#include "images/color.h"
#include "images/duplicates.h"
* of the GNU General Public License.
*/
-#include "lib/lib.h"
-#include "lib/getopt.h"
-#include "lib/fastbuf.h"
-#include "lib/base64.h"
-#include "lib/base224.h"
+#include "ucw/lib.h"
+#include "ucw/getopt.h"
+#include "ucw/fastbuf.h"
+#include "ucw/base64.h"
+#include "ucw/base224.h"
#include "images/images.h"
#include "images/color.h"
#include "images/signature.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
-#include "lib/threads.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
+#include "ucw/threads.h"
#include "images/images.h"
#include "images/color.h"
* of the GNU General Public License.
*/
-#include "lib/lib.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
#ifndef _IMAGES_IMAGES_H
#define _IMAGES_IMAGES_H
-#include "lib/bbuf.h"
+#include "ucw/bbuf.h"
struct mempool;
struct fastbuf;
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "images/images.h"
#include "images/error.h"
#include "images/color.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/mempool.h"
+#include "ucw/lib.h"
+#include "ucw/mempool.h"
#include "images/images.h"
#include "images/error.h"
#include "images/io-main.h"
* of the GNU General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/math.h"
const u32 fast_div_tab[] = {
#undef LOCAL_DEBUG
#include "sherlock/sherlock.h"
-#include "lib/base224.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/base224.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
#include "sherlock/object.h"
#include "images/images.h"
#include "images/object.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/error.h"
#include "images/math.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/math.h"
#include "images/images.h"
#include "images/signature.h"
#define ASORT_KEY_TYPE uns
#define ASORT_ELT(i) items[i]
#define ASORT_EXTRA_ARGS , uns *items
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
#define EXPLAIN
#include "images/sig-cmp-gen.h"
* of the GNU Lesser General Public License.
*/
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/signature.h"
#include <stdio.h>
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/fastbuf.h"
-#include "lib/conf.h"
+#include "ucw/lib.h"
+#include "ucw/fastbuf.h"
+#include "ucw/conf.h"
#include "images/images.h"
#include "images/math.h"
#include "images/error.h"
#undef LOCAL_DEBUG
-#include "lib/lib.h"
-#include "lib/conf.h"
-#include "lib/heap.h"
+#include "ucw/lib.h"
+#include "ucw/conf.h"
+#include "ucw/heap.h"
#include "images/images.h"
#include "images/signature.h"
#include "images/math.h"
#define ASORT_KEY_TYPE uns
#define ASORT_ELT(i) val[i]
#define ASORT_EXTRA_ARGS , uns *val
-#include "lib/arraysort.h"
+#include "ucw/arraysort.h"
static uns
prequant(struct image_sig_block *blocks, uns blocks_count, struct image_sig_region *regions)
#undef LOCAL_DEBUG
-#include "lib/lib.h"
+#include "ucw/lib.h"
#include "images/images.h"
#include "images/signature.h"
#include "images/math.h"
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
#include "sherlock/xml/internals.h"
-#include "lib/stkstring.h"
-#include "lib/ff-unicode.h"
+#include "ucw/stkstring.h"
+#include "ucw/ff-unicode.h"
#include <setjmp.h>
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
#include "sherlock/xml/internals.h"
-#include "lib/fastbuf.h"
-#include "lib/ff-unicode.h"
-#include "lib/unicode.h"
+#include "ucw/fastbuf.h"
+#include "ucw/ff-unicode.h"
+#include "ucw/unicode.h"
/* Notations */
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
struct xml_dtd_notn *
xml_dtd_find_notn(struct xml_context *ctx, char *name)
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
static struct xml_dtd_entity *
xml_dtd_declare_trivial_entity(struct xml_context *ctx, char *name, char *text)
#define HASH_GIVE_INIT_DATA
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
struct xml_dtd_elem *
xml_dtd_find_elem(struct xml_context *ctx, char *name)
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
/* Element attributes */
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
struct xml_dtd_attr *
xml_dtd_find_attr(struct xml_context *ctx, struct xml_dtd_elem *elem, char *name)
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
/* Enumerated attribute notations */
#define HASH_GIVE_ALLOC
#define HASH_TABLE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
/* DTD initialization/cleanup */
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
#include "sherlock/xml/internals.h"
-#include "lib/fastbuf.h"
-#include "lib/ff-unicode.h"
-#include "lib/unicode.h"
-#include "lib/chartype.h"
-#include "lib/hashfunc.h"
+#include "ucw/fastbuf.h"
+#include "ucw/ff-unicode.h"
+#include "ucw/unicode.h"
+#include "ucw/chartype.h"
+#include "ucw/hashfunc.h"
#include <setjmp.h>
#define HASH_WANT_FIND
#define HASH_GIVE_ALLOC
XML_HASH_GIVE_ALLOC
-#include "lib/hashtable.h"
+#include "ucw/hashtable.h"
static void
xml_parse_attr(struct xml_context *ctx)
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
#include "sherlock/xml/internals.h"
-#include "lib/unicode.h"
-#include "lib/ff-unicode.h"
+#include "ucw/unicode.h"
+#include "ucw/ff-unicode.h"
#include "charset/charconv.h"
#include "charset/fb-charconv.h"
#include "sherlock/sherlock.h"
#include "sherlock/xml/xml.h"
#include "sherlock/xml/dtd.h"
-#include "lib/getopt.h"
-#include "lib/fastbuf.h"
+#include "ucw/getopt.h"
+#include "ucw/fastbuf.h"
#include <stdio.h>
#include <stdlib.h>
#ifndef _SHERLOCK_XML_XML_H
#define _SHERLOCK_XML_XML_H
-#include "lib/clists.h"
-#include "lib/slists.h"
-#include "lib/mempool.h"
-#include "lib/fastbuf.h"
+#include "ucw/clists.h"
+#include "ucw/slists.h"
+#include "ucw/mempool.h"
+#include "ucw/fastbuf.h"
struct xml_context;
struct xml_dtd_entity;