Short:    Link library to debug memory problems
Author:   Doug Walker <walker@southpeak.com>
Uploader: Haidinger Walter <e9225662@stud1.tuwien.ac.at>
Type:     dev/debug
Replaces: dev/debug/MemLib.lha
Requires: SAS/C v6.0+

This is a bug-fix release of Doug Walker's MemWatch Library.
He also granted permission for an Aminet upload. Thanks!
A short description taken from memlib.doc:

The MemWatch library adds lots of memory debugging features that you link
into your program.  The library does what it can to validate your memory
allocations and frees and to encourage any misuse of memory to result in
a reproducable crash rather than an erratic bug.

The MemWatch library compiles under SAS/C 6.0 and above.  If the memory
features are turned off, no additional code will be added to your
program.  If they are enabled, your code will call routines in the
MemWatch library automatically instead of malloc, calloc, realloc, free,
AllocMem, FreeMem, AllocVec, and FreeVec.  The MemWatch library also
replaces the standard C library versions of getcwd(), getenv(), and
strdup() since these functions call malloc().

The program-level memory debug routines are controlled by a
preprocessor symbol, MWDEBUG, and are #defined to nothing if the
symbol is not defined.

To link the program-level routines into your code, do the following:
[partially cutted, read memlib.doc for more info  --Walter]
1. Include the file "memwatch.h" into each file
2. #define the symbol MWDEBUG to 1 at some point before memwatch.h
   is included.
3. Recompile all files in your program and link with "memwatch.lib".


============================= Archive contents =============================

Original  Packed Ratio    Date     Time    Name
-------- ------- ----- --------- --------  -------------
     841     500 40.5% 03-May-96 13:54:10  Build.info
    2632    1712 34.9% 03-May-96 13:54:10  Debug
     459     303 33.9% 03-May-96 13:54:12  Debug.info
     838     540 35.5% 03-May-96 13:54:12  Edit.info
   42084   14143 66.3% 24-Aug-97 12:07:50  example
    1303     615 52.8% 21-Dec-96 10:22:08  example.c
     835     396 52.5% 12-Dec-96 00:12:56  example.info
   10994   10994  0.0% 12-Dec-96 10:11:06  Icons.lha
   14073    4949 64.8% 16-May-96 12:13:58  memlib.doc
     838     317 62.1% 03-May-96 13:54:16  memlib.doc.info
    1598     838 47.5% 29-Aug-97 22:30:20  memlib.readme
    5706    1837 67.8% 21-Dec-96 10:22:08  mempriv.h
     844     369 56.2% 12-Dec-96 11:03:00  memwatch.gst.info
    4203    1382 67.1% 20-Jan-97 19:58:00  memwatch.h
   29768   10022 66.3% 24-Aug-97 12:07:40  memwatch.lib
   11300    3579 68.3% 03-Jan-97 20:39:24  mwcontrol.c
   11313    3579 68.3% 12-Dec-96 13:10:08  mwcontrol.c.orig
      77      77  0.0% 21-Dec-96 10:22:08  mwflags.c
     272     179 34.1% 21-Dec-96 10:22:08  mwgetcwd.c
     249     157 36.9% 21-Dec-96 10:22:08  mwgetenv.c
      77      77  0.0% 24-Aug-97 12:07:06  mwlogname.c
    1690     626 62.9% 21-Dec-96 10:22:08  mwreport.c
    1124     462 58.8% 21-Dec-96 10:22:08  mwstrdup.c
     245      93 62.0% 21-Dec-96 10:22:08  precomp.c
     579     318 45.0% 16-May-96 12:13:50  READ.ME
     493     321 34.8% 24-Aug-97 23:25:04  READ.ME.Changes
     838     314 62.5% 03-May-96 13:54:12  READ.ME.Changes.info
     838     314 62.5% 03-May-96 13:54:12  READ.ME.info
     325     220 32.3% 21-Dec-96 10:09:08  scoptions
     470     273 41.9% 03-May-96 13:54:12  SCoptions.info
    1002     409 59.1% 24-Aug-97 12:05:58  smakefile
     838     203 75.7% 03-May-96 13:54:26  smakefile.info
-------- ------- ----- --------- --------
  148746   60118 59.5% 04-Sep-97 21:15:54   32 files
