Reorg of compat code.
authorMarko Kreen <markokr@gmail.com>
Wed, 2 Sep 2009 12:19:05 +0000 (15:19 +0300)
committerMarko Kreen <markokr@gmail.com>
Wed, 2 Sep 2009 16:16:17 +0000 (19:16 +0300)
commit8981a061c24348f648fc15e0f996ea35bf1a795b
tree10662378c918649395cb665a2615bb5420af97ad
parent3ea59dd220d879ef227f1d30fd35bda330bd364c
Reorg of compat code.

Instead if usual/compat.[ch] and usual/win32.h, the compat code is
now merged with 'theme' modules:

  <usual/base.h>
  <usual/fileutil.h>
  <usual/signal.h>
  <usual/socket.h>
  <usual/string.h>
  <usual/time.h>

New 'theme include' concept mean those include bunch of related
system includes, provide compat funtions for missing system
functionality in addition to providing new APIs.

End result should be that user code does not need have several
'#ifdef HAVE..H' around system includes, instead it can just
include theme include to get all related functionality.
27 files changed:
m4/usual.m4
test/compile.c
usual/alloc.h [deleted file]
usual/base.h
usual/base_win32.h [new file with mode: 0644]
usual/cbtree.c
usual/compat.c [deleted file]
usual/compat.h [deleted file]
usual/daemon.c
usual/fileutil.c
usual/fileutil.h
usual/logging.c
usual/logging.h
usual/mbuf.h
usual/md5.c
usual/safeio.c
usual/safeio.h
usual/signal.c [new file with mode: 0644]
usual/signal.h [new file with mode: 0644]
usual/slab.c
usual/socket.c
usual/socket.h
usual/socket_win32.h [moved from usual/win32.h with 53% similarity]
usual/string.c
usual/string.h
usual/time.c
usual/time.h