Retrieve and unpack wfdb-10.2.4.tar.gz in order to get a full set of 10.2.4
files.  WARNING: If you patch your 10.2.3 tree using this file, you will not
get a complete 10.2.4 tree!

The full patch file for 10.2.2 -> 10.2.4 is over 4 Mb, much longer than the
original files, so it is not provided here.  The patches are so large because
the files in the 'doc' directory have been moved into subdirectories in 10.2.4.

This patch file includes only the changes outside of the doc tree, so that you
can easily see what else has been changed.


diff -Naur -x doc wfdb-10.2.3/MANIFEST wfdb-10.2.4/MANIFEST
--- wfdb-10.2.3/MANIFEST	Fri Dec 14 14:14:14 2001
+++ wfdb-10.2.4/MANIFEST	Mon Dec 17 22:57:16 2001
@@ -498,7 +498,7 @@
 wave/xview-patches
 wave/xvwave.c
 wave/xvwave.h
-wfdb-10.2.3-1.spec
+wfdb-10.2.4-1.spec
 wview/
 wview/clean
 wview/ecg.ico
diff -Naur -x doc wfdb-10.2.3/Makefile wfdb-10.2.4/Makefile
--- wfdb-10.2.3/Makefile	Fri Dec 14 14:38:11 2001
+++ wfdb-10.2.4/Makefile	Thu Dec 20 18:33:15 2001
@@ -44,7 +44,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -52,9 +52,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -114,9 +114,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
@@ -170,7 +175,7 @@
 	echo "Nothing to be done for lib-post-uninstall"
 # _____________________________________________________________________________
 # file: Makefile.tpl		G. Moody	  24 May 2000
-#				Last revised:	15 October 2001
+#				Last revised:  18 December 2001
 # This section of the Makefile should not need to be changed.
 
 # ARCH specifies the type of CPU and the operating system (e.g., 'i686-Linux').
@@ -198,7 +203,7 @@
 	cd psd;      $(MAKE) install
 	cd convert;  $(MAKE) install
 	cd data;     $(MAKE) install
-	cd doc;      $(MAKE) install
+	test -d doc && ( cd doc; $(MAKE) install )
 
 uninstall:	config.cache
 	cd lib;	     $(MAKE) uninstall
@@ -208,7 +213,7 @@
 	cd psd;      $(MAKE) uninstall
 	cd convert;  $(MAKE) uninstall
 	cd data;     $(MAKE) uninstall
-	cd doc;      $(MAKE) uninstall
+	test -d doc && ( cd doc; $(MAKE) uninstall )
 	./uninstall.sh $(WFDBROOT)
 
 # 'make clean': remove binaries, other cruft from source directories
@@ -217,7 +222,6 @@
 	cd checkpkg; $(MAKE) clean
 	cd convert;  $(MAKE) clean
 	cd data;     $(MAKE) clean
-	cd doc;      $(MAKE) clean
 	cd examples; $(MAKE) clean
 	cd fortran;  $(MAKE) clean
 	cd lib;      $(MAKE) clean
@@ -225,6 +229,7 @@
 	cd wave;     $(MAKE) clean
 	cd waverc;   $(MAKE) clean
 	cd wview;    $(MAKE) -f clean
+	test -d doc && ( cd doc; $(MAKE) clean )
 	rm -f *~ conf/*~ conf/prompt config.cache */*.exe
 
 # 'make config.cache': check configuration
@@ -233,6 +238,12 @@
 	@echo "(Ignore any error that may appear on the next line.)"
 	@false	# force an immediate exit from `make'
 
+conf/prompt:
+	echo -n >echo.out
+	-test -s echo.out && ln -sf prompt-c conf/prompt
+	-test -s echo.out || ln -sf prompt-n conf/prompt
+	rm echo.out
+
 # 'make test' or 'make test-all': compile the WFDB applications without
 # installing them (installs the dynamically-linked WFDB library and includes
 # into subdirectories of $(HOME)/wfdb-test)
@@ -245,7 +256,7 @@
 	$(MAKE) WFDBROOT=$(HOME)/wfdb-test install
 
 # 'make check': test currently installed version of the WFDB software package
-check:		config.cache
+check:		config.cache conf/prompt
 	cd checkpkg; $(MAKE) all
 
 # Create directories for test installation if necessary.
diff -Naur -x doc wfdb-10.2.3/Makefile.tpl wfdb-10.2.4/Makefile.tpl
--- wfdb-10.2.3/Makefile.tpl	Fri Dec 14 14:33:11 2001
+++ wfdb-10.2.4/Makefile.tpl	Tue Dec 18 10:18:23 2001
@@ -1,5 +1,5 @@
 # file: Makefile.tpl		G. Moody	  24 May 2000
-#				Last revised:	15 October 2001
+#				Last revised:  18 December 2001
 # This section of the Makefile should not need to be changed.
 
 # ARCH specifies the type of CPU and the operating system (e.g., 'i686-Linux').
@@ -27,7 +27,7 @@
 	cd psd;      $(MAKE) install
 	cd convert;  $(MAKE) install
 	cd data;     $(MAKE) install
-	cd doc;      $(MAKE) install
+	test -d doc && ( cd doc; $(MAKE) install )
 
 uninstall:	config.cache
 	cd lib;	     $(MAKE) uninstall
@@ -37,7 +37,7 @@
 	cd psd;      $(MAKE) uninstall
 	cd convert;  $(MAKE) uninstall
 	cd data;     $(MAKE) uninstall
-	cd doc;      $(MAKE) uninstall
+	test -d doc && ( cd doc; $(MAKE) uninstall )
 	./uninstall.sh $(WFDBROOT)
 
 # 'make clean': remove binaries, other cruft from source directories
@@ -46,7 +46,6 @@
 	cd checkpkg; $(MAKE) clean
 	cd convert;  $(MAKE) clean
 	cd data;     $(MAKE) clean
-	cd doc;      $(MAKE) clean
 	cd examples; $(MAKE) clean
 	cd fortran;  $(MAKE) clean
 	cd lib;      $(MAKE) clean
@@ -54,6 +53,7 @@
 	cd wave;     $(MAKE) clean
 	cd waverc;   $(MAKE) clean
 	cd wview;    $(MAKE) -f clean
+	test -d doc && ( cd doc; $(MAKE) clean )
 	rm -f *~ conf/*~ conf/prompt config.cache */*.exe
 
 # 'make config.cache': check configuration
@@ -62,6 +62,12 @@
 	@echo "(Ignore any error that may appear on the next line.)"
 	@false	# force an immediate exit from `make'
 
+conf/prompt:
+	echo -n >echo.out
+	-test -s echo.out && ln -sf prompt-c conf/prompt
+	-test -s echo.out || ln -sf prompt-n conf/prompt
+	rm echo.out
+
 # 'make test' or 'make test-all': compile the WFDB applications without
 # installing them (installs the dynamically-linked WFDB library and includes
 # into subdirectories of $(HOME)/wfdb-test)
@@ -74,7 +80,7 @@
 	$(MAKE) WFDBROOT=$(HOME)/wfdb-test install
 
 # 'make check': test currently installed version of the WFDB software package
-check:		config.cache
+check:		config.cache conf/prompt
 	cd checkpkg; $(MAKE) all
 
 # Create directories for test installation if necessary.
diff -Naur -x doc wfdb-10.2.3/NEWS wfdb-10.2.4/NEWS
--- wfdb-10.2.3/NEWS	Fri Dec 14 14:30:29 2001
+++ wfdb-10.2.4/NEWS	Mon Dec 17 12:06:55 2001
@@ -1,3 +1,7 @@
+10.2.4:
+	Bug fixes in 'pschart' and 'psfd' (vbuf was not properly initialized
+	before its first use).
+
 10.2.3:
 	Portability fixes in 'configure', 'install.sh', 'wave/Makefile.tpl',
 	'psd/hr*', 'doc/*.sh', 'lib/wfdblib.h', and 'checkpkg/*check'.
diff -Naur -x doc wfdb-10.2.3/app/Makefile wfdb-10.2.4/app/Makefile
--- wfdb-10.2.3/app/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/app/Makefile	Thu Dec 20 18:33:15 2001
@@ -38,7 +38,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -46,9 +46,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -108,9 +108,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/app/ecgeval.c wfdb-10.2.4/app/ecgeval.c
--- wfdb-10.2.3/app/ecgeval.c	Wed Feb  9 22:14:10 2000
+++ wfdb-10.2.4/app/ecgeval.c	Mon Dec 17 21:47:33 2001
@@ -1,9 +1,9 @@
 /* file: ecgeval.c	G. Moody	22 March 1992
-			Last revised:  9 February 2000
+			Last revised: 17 December 2001
 
 -------------------------------------------------------------------------------
 ecgeval: Generate and run a script of commands to compare sets of annotations
-Copyright (C) 2000 George B. Moody
+Copyright (C) 2001 George B. Moody
 
 This program is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free Software
@@ -141,11 +141,7 @@
 		mxmfile[40] = "hr%d.out", epicaffile[40] = "af.out",
 		epicvffile[40] = "vf.out", epicstfile1[40] = "st.out",
 		epicstfile2[40] = "stm.out", plotstmfile[40] = "stm.ps";
-#ifdef MSDOS
     static char *rname = "atr";
-#else
-    static char *rname = "atruth";
-#endif
 
 #ifdef __STDC__
     time_t t, time();
diff -Naur -x doc wfdb-10.2.3/app/nst.c wfdb-10.2.4/app/nst.c
--- wfdb-10.2.3/app/nst.c	Wed Oct 10 12:18:37 2001
+++ wfdb-10.2.4/app/nst.c	Mon Dec 17 21:50:37 2001
@@ -1,5 +1,5 @@
 /* file: nst.c		G. Moody	8 December 1983
-			Last revised:	10 October 2001
+			Last revised:  17 December 2001
 
 -------------------------------------------------------------------------------
 nst: Noise stress test
@@ -180,7 +180,7 @@
 
     /* Set the reference annotator name if it was not specified with -a. */
     if (refaname[0] == '\0')
-	(void)strcpy(refaname, "atruth");
+	(void)strcpy(refaname, "atr");
 
     /* Get input record names if they were not specified with -i. */
     if (irec[0] == '\0' || nrec[0] == '\0') {
@@ -576,7 +576,7 @@
  "usage: %s [OPTIONS ...]\n",
  "where OPTIONS may include any of:",
  " -a ANNOTATOR  copy annotations for the specified ANNOTATOR from SREC to",
- "                OREC (default: atruth);  unless -p is used, normal QRS",
+ "                OREC (default: atr);  unless -p is used, normal QRS",
  "                annotations from this annotator are used in determining",
  "                signal amplitudes (hence noise scale factors)",
  " -F N          write output signals in format N (default: 16)",
diff -Naur -x doc wfdb-10.2.3/app/pschart.c wfdb-10.2.4/app/pschart.c
--- wfdb-10.2.3/app/pschart.c	Thu Nov 29 18:57:12 2001
+++ wfdb-10.2.4/app/pschart.c	Mon Dec 17 21:50:53 2001
@@ -1,5 +1,5 @@
 /* file: pschart.c	G. Moody	 15 March 1988
-			Last revised:  29 November 2001
+			Last revised:  17 December 2001
 
 -------------------------------------------------------------------------------
 pschart: Produce annotated `chart recordings' on a PostScript device
@@ -138,7 +138,7 @@
 FILE *infofile;			/* file to print instead of title */
 
 /* User-settable parameters */
-char aname[41] = "atruth";	/* annotator name */
+char aname[41] = "atr";		/* annotator name */
 char aname2[41] = "";		/* second annotator name */
 int aux_shorten = 0;		/* if non-zero, print first char of aux only */
 double boff = 0.;		/* binding offset (mm) */
@@ -662,8 +662,10 @@
 	    }
 	    if (isigopen(record, s, nisig) != nisig)
 		continue;
-	    for (i = 0; i < nisig; i++)
+	    for (i = 0; i < nisig; i++) {
+		vbuf[i] = NULL;
 		uncal[i] = 0;
+	    }
 	    (void)setpagetitle(0L);
 	    if (!sflag) {
 		for (i = 0; i < nisig; i++)
@@ -1755,7 +1757,7 @@
 static char *help_strings[] = {
  "usage: %s [ OPTIONS ] SCRIPT-FILE\n",
  "Options are:",
- " -a ANN    specify first annotator (default: atruth)",
+ " -a ANN    specify first annotator (default: atr)",
  " -A ANN    specify second annotator (default: none)",
  " -b N      set binding offset in mm (default: 0)",
  " -c STR    set copyright notice",
diff -Naur -x doc wfdb-10.2.3/app/psfd.c wfdb-10.2.4/app/psfd.c
--- wfdb-10.2.3/app/psfd.c	Thu Nov 29 18:56:56 2001
+++ wfdb-10.2.4/app/psfd.c	Mon Dec 17 21:51:11 2001
@@ -1,5 +1,5 @@
 /* file: psfd.c		G. Moody         9 August 1988
-			Last revised:  29 November 2001
+			Last revised:  17 December 2001
 
 -------------------------------------------------------------------------------
 psfd: Produces annotated full-disclosure ECG plots on a PostScript device
@@ -139,7 +139,7 @@
 double omargin;			/* outside margin (mm) */
 
 /* User-settable parameters */
-char aname[41] = "atruth";	/* annotator name */
+char aname[41] = "atr";		/* annotator name */
 char aname2[41] = "";		/* second annotator name */
 int aux_shorten = 0;		/* if non-zero, print first char of aux only */
 double boff = 0.;		/* binding offset (mm) */
@@ -589,8 +589,10 @@
 	    }
 	    if (isigopen(record, s, nisig) != nisig)
 		continue;
-	    for (i = 0; i < nisig; i++)
+	    for (i = 0; i < nisig; i++) {
+		vbuf[i] = NULL;
 		uncal[i] = 0;
+	    }
 	    (void)setpagetitle(0L);
 	    if (!sflag) {
 		for (i = 0; i < nisig; i++)
@@ -1573,7 +1575,7 @@
 static char *help_strings[] = {
  "usage: %s [ OPTIONS ] SCRIPT-FILE\n",
  "Options are:",
- " -a ANN    specify first annotator (default: atruth)",
+ " -a ANN    specify first annotator (default: atr)",
  " -A ANN    specify second annotator (default: none)",
  " -b N      set binding offset in mm (default: 0)",
  " -c STR    set copyright notice",
diff -Naur -x doc wfdb-10.2.3/app/sqrs.c wfdb-10.2.4/app/sqrs.c
--- wfdb-10.2.3/app/sqrs.c	Mon Oct  8 21:35:31 2001
+++ wfdb-10.2.4/app/sqrs.c	Mon Dec 17 21:52:00 2001
@@ -1,5 +1,5 @@
 /* file: sqrs.c		G. Moody	27 October 1990
-			Last revised:    8 October 2001
+			Last revised:  17 December 2001
 
 -------------------------------------------------------------------------------
 sqrs: Single-channel QRS detector
@@ -67,7 +67,7 @@
 To evaluate the performance of this program, run it on the entire record, by:
     sqrs -r 100
 and then compare its output with the reference annotations by:
-    bxb -r 100 -a atruth qrs
+    bxb -r 100 -a atr qrs
 */
 
 #include <stdio.h>
diff -Naur -x doc wfdb-10.2.3/app/sqrs125.c wfdb-10.2.4/app/sqrs125.c
--- wfdb-10.2.3/app/sqrs125.c	Mon Oct  8 21:51:19 2001
+++ wfdb-10.2.4/app/sqrs125.c	Mon Dec 17 21:51:41 2001
@@ -1,5 +1,5 @@
 /* file: sqrs125.c	G. Moody	27 October 1990
-			Last revised:	 8 October 2001
+			Last revised:  17 December 2001
 
 -------------------------------------------------------------------------------
 sqrs125: Single-channel QRS detector for data sampled at 100 - 150 Hz
@@ -74,7 +74,7 @@
 To evaluate the performance of this program, run it on the entire record, by:
     sqrs -r 100
 and then compare its output with the reference annotations by:
-    bxb -r 100 -a atruth qrs
+    bxb -r 100 -a atr qrs
 */
 
 #include <stdio.h>
diff -Naur -x doc wfdb-10.2.3/checkpkg/Makefile wfdb-10.2.4/checkpkg/Makefile
--- wfdb-10.2.3/checkpkg/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/checkpkg/Makefile	Thu Dec 20 18:33:15 2001
@@ -36,7 +36,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -44,9 +44,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -106,9 +106,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/checkpkg/appcheck wfdb-10.2.4/checkpkg/appcheck
--- wfdb-10.2.3/checkpkg/appcheck	Tue Dec 11 12:52:46 2001
+++ wfdb-10.2.4/checkpkg/appcheck	Tue Dec 18 10:20:31 2001
@@ -1,6 +1,6 @@
 #!/bin/sh
 # file: appcheck		G. Moody	7 September 2001
-#                               Last revised:   11 December 2001
+#                               Last revised:   18 December 2001
 #
 # This script checks the functionality of the WFDB applications in the 'app'
 # directory.
@@ -145,6 +145,7 @@
 
 echo Testing ecgeval ...
 F=ecgeval.out
+rm -f eval-qrs-mit qrs-mit-evaluation
 ecgeval <input/ecgeval >$F 2>&1
 grep -v file: eval-qrs-mit >>$F
 grep -v file: qrs-mit-evaluation >>$F
diff -Naur -x doc wfdb-10.2.3/checkpkg/expected/ecgeval.out wfdb-10.2.4/checkpkg/expected/ecgeval.out
--- wfdb-10.2.3/checkpkg/expected/ecgeval.out	Mon Sep 10 14:08:59 2001
+++ wfdb-10.2.4/checkpkg/expected/ecgeval.out	Mon Dec 17 22:12:41 2001
@@ -74,292 +74,292 @@
 : unless you know what you are doing!
 
 : Record 100
-bxb -r 100 -a atruth qrs -L bxb.out sd.out
-rxr -r 100 -a atruth qrs -L vruns.out sruns.out
+bxb -r 100 -a atr qrs -L bxb.out sd.out
+rxr -r 100 -a atr qrs -L vruns.out sruns.out
 mxm -r 100 -a thr qrs -L hr0.out -m 0
-epic -r 100 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 100 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 101
-bxb -r 101 -a atruth qrs -L bxb.out sd.out
-rxr -r 101 -a atruth qrs -L vruns.out sruns.out
+bxb -r 101 -a atr qrs -L bxb.out sd.out
+rxr -r 101 -a atr qrs -L vruns.out sruns.out
 mxm -r 101 -a thr qrs -L hr0.out -m 0
-epic -r 101 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 101 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 102
-bxb -r 102 -a atruth qrs -L bxb.out sd.out
-rxr -r 102 -a atruth qrs -L vruns.out sruns.out
+bxb -r 102 -a atr qrs -L bxb.out sd.out
+rxr -r 102 -a atr qrs -L vruns.out sruns.out
 mxm -r 102 -a thr qrs -L hr0.out -m 0
-epic -r 102 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 102 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 103
-bxb -r 103 -a atruth qrs -L bxb.out sd.out
-rxr -r 103 -a atruth qrs -L vruns.out sruns.out
+bxb -r 103 -a atr qrs -L bxb.out sd.out
+rxr -r 103 -a atr qrs -L vruns.out sruns.out
 mxm -r 103 -a thr qrs -L hr0.out -m 0
-epic -r 103 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 103 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 104
-bxb -r 104 -a atruth qrs -L bxb.out sd.out
-rxr -r 104 -a atruth qrs -L vruns.out sruns.out
+bxb -r 104 -a atr qrs -L bxb.out sd.out
+rxr -r 104 -a atr qrs -L vruns.out sruns.out
 mxm -r 104 -a thr qrs -L hr0.out -m 0
-epic -r 104 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 104 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 105
-bxb -r 105 -a atruth qrs -L bxb.out sd.out
-rxr -r 105 -a atruth qrs -L vruns.out sruns.out
+bxb -r 105 -a atr qrs -L bxb.out sd.out
+rxr -r 105 -a atr qrs -L vruns.out sruns.out
 mxm -r 105 -a thr qrs -L hr0.out -m 0
-epic -r 105 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 105 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 106
-bxb -r 106 -a atruth qrs -L bxb.out sd.out
-rxr -r 106 -a atruth qrs -L vruns.out sruns.out
+bxb -r 106 -a atr qrs -L bxb.out sd.out
+rxr -r 106 -a atr qrs -L vruns.out sruns.out
 mxm -r 106 -a thr qrs -L hr0.out -m 0
-epic -r 106 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 106 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 107
-bxb -r 107 -a atruth qrs -L bxb.out sd.out
-rxr -r 107 -a atruth qrs -L vruns.out sruns.out
+bxb -r 107 -a atr qrs -L bxb.out sd.out
+rxr -r 107 -a atr qrs -L vruns.out sruns.out
 mxm -r 107 -a thr qrs -L hr0.out -m 0
-epic -r 107 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 107 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 108
-bxb -r 108 -a atruth qrs -L bxb.out sd.out
-rxr -r 108 -a atruth qrs -L vruns.out sruns.out
+bxb -r 108 -a atr qrs -L bxb.out sd.out
+rxr -r 108 -a atr qrs -L vruns.out sruns.out
 mxm -r 108 -a thr qrs -L hr0.out -m 0
-epic -r 108 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 108 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 109
-bxb -r 109 -a atruth qrs -L bxb.out sd.out
-rxr -r 109 -a atruth qrs -L vruns.out sruns.out
+bxb -r 109 -a atr qrs -L bxb.out sd.out
+rxr -r 109 -a atr qrs -L vruns.out sruns.out
 mxm -r 109 -a thr qrs -L hr0.out -m 0
-epic -r 109 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 109 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 111
-bxb -r 111 -a atruth qrs -L bxb.out sd.out
-rxr -r 111 -a atruth qrs -L vruns.out sruns.out
+bxb -r 111 -a atr qrs -L bxb.out sd.out
+rxr -r 111 -a atr qrs -L vruns.out sruns.out
 mxm -r 111 -a thr qrs -L hr0.out -m 0
-epic -r 111 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 111 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 112
-bxb -r 112 -a atruth qrs -L bxb.out sd.out
-rxr -r 112 -a atruth qrs -L vruns.out sruns.out
+bxb -r 112 -a atr qrs -L bxb.out sd.out
+rxr -r 112 -a atr qrs -L vruns.out sruns.out
 mxm -r 112 -a thr qrs -L hr0.out -m 0
-epic -r 112 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 112 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 113
-bxb -r 113 -a atruth qrs -L bxb.out sd.out
-rxr -r 113 -a atruth qrs -L vruns.out sruns.out
+bxb -r 113 -a atr qrs -L bxb.out sd.out
+rxr -r 113 -a atr qrs -L vruns.out sruns.out
 mxm -r 113 -a thr qrs -L hr0.out -m 0
-epic -r 113 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 113 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 114
-bxb -r 114 -a atruth qrs -L bxb.out sd.out
-rxr -r 114 -a atruth qrs -L vruns.out sruns.out
+bxb -r 114 -a atr qrs -L bxb.out sd.out
+rxr -r 114 -a atr qrs -L vruns.out sruns.out
 mxm -r 114 -a thr qrs -L hr0.out -m 0
-epic -r 114 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 114 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 115
-bxb -r 115 -a atruth qrs -L bxb.out sd.out
-rxr -r 115 -a atruth qrs -L vruns.out sruns.out
+bxb -r 115 -a atr qrs -L bxb.out sd.out
+rxr -r 115 -a atr qrs -L vruns.out sruns.out
 mxm -r 115 -a thr qrs -L hr0.out -m 0
-epic -r 115 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 115 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 116
-bxb -r 116 -a atruth qrs -L bxb.out sd.out
-rxr -r 116 -a atruth qrs -L vruns.out sruns.out
+bxb -r 116 -a atr qrs -L bxb.out sd.out
+rxr -r 116 -a atr qrs -L vruns.out sruns.out
 mxm -r 116 -a thr qrs -L hr0.out -m 0
-epic -r 116 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 116 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 117
-bxb -r 117 -a atruth qrs -L bxb.out sd.out
-rxr -r 117 -a atruth qrs -L vruns.out sruns.out
+bxb -r 117 -a atr qrs -L bxb.out sd.out
+rxr -r 117 -a atr qrs -L vruns.out sruns.out
 mxm -r 117 -a thr qrs -L hr0.out -m 0
-epic -r 117 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 117 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 118
-bxb -r 118 -a atruth qrs -L bxb.out sd.out
-rxr -r 118 -a atruth qrs -L vruns.out sruns.out
+bxb -r 118 -a atr qrs -L bxb.out sd.out
+rxr -r 118 -a atr qrs -L vruns.out sruns.out
 mxm -r 118 -a thr qrs -L hr0.out -m 0
-epic -r 118 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 118 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 119
-bxb -r 119 -a atruth qrs -L bxb.out sd.out
-rxr -r 119 -a atruth qrs -L vruns.out sruns.out
+bxb -r 119 -a atr qrs -L bxb.out sd.out
+rxr -r 119 -a atr qrs -L vruns.out sruns.out
 mxm -r 119 -a thr qrs -L hr0.out -m 0
-epic -r 119 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 119 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 121
-bxb -r 121 -a atruth qrs -L bxb.out sd.out
-rxr -r 121 -a atruth qrs -L vruns.out sruns.out
+bxb -r 121 -a atr qrs -L bxb.out sd.out
+rxr -r 121 -a atr qrs -L vruns.out sruns.out
 mxm -r 121 -a thr qrs -L hr0.out -m 0
-epic -r 121 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 121 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 122
-bxb -r 122 -a atruth qrs -L bxb.out sd.out
-rxr -r 122 -a atruth qrs -L vruns.out sruns.out
+bxb -r 122 -a atr qrs -L bxb.out sd.out
+rxr -r 122 -a atr qrs -L vruns.out sruns.out
 mxm -r 122 -a thr qrs -L hr0.out -m 0
-epic -r 122 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 122 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 123
-bxb -r 123 -a atruth qrs -L bxb.out sd.out
-rxr -r 123 -a atruth qrs -L vruns.out sruns.out
+bxb -r 123 -a atr qrs -L bxb.out sd.out
+rxr -r 123 -a atr qrs -L vruns.out sruns.out
 mxm -r 123 -a thr qrs -L hr0.out -m 0
-epic -r 123 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 123 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 124
-bxb -r 124 -a atruth qrs -L bxb.out sd.out
-rxr -r 124 -a atruth qrs -L vruns.out sruns.out
+bxb -r 124 -a atr qrs -L bxb.out sd.out
+rxr -r 124 -a atr qrs -L vruns.out sruns.out
 mxm -r 124 -a thr qrs -L hr0.out -m 0
-epic -r 124 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 124 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 200
-bxb -r 200 -a atruth qrs -L bxb.out sd.out
-rxr -r 200 -a atruth qrs -L vruns.out sruns.out
+bxb -r 200 -a atr qrs -L bxb.out sd.out
+rxr -r 200 -a atr qrs -L vruns.out sruns.out
 mxm -r 200 -a thr qrs -L hr0.out -m 0
-epic -r 200 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 200 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 201
-bxb -r 201 -a atruth qrs -L bxb.out sd.out
-rxr -r 201 -a atruth qrs -L vruns.out sruns.out
+bxb -r 201 -a atr qrs -L bxb.out sd.out
+rxr -r 201 -a atr qrs -L vruns.out sruns.out
 mxm -r 201 -a thr qrs -L hr0.out -m 0
-epic -r 201 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 201 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 202
-bxb -r 202 -a atruth qrs -L bxb.out sd.out
-rxr -r 202 -a atruth qrs -L vruns.out sruns.out
+bxb -r 202 -a atr qrs -L bxb.out sd.out
+rxr -r 202 -a atr qrs -L vruns.out sruns.out
 mxm -r 202 -a thr qrs -L hr0.out -m 0
-epic -r 202 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 202 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 203
-bxb -r 203 -a atruth qrs -L bxb.out sd.out
-rxr -r 203 -a atruth qrs -L vruns.out sruns.out
+bxb -r 203 -a atr qrs -L bxb.out sd.out
+rxr -r 203 -a atr qrs -L vruns.out sruns.out
 mxm -r 203 -a thr qrs -L hr0.out -m 0
-epic -r 203 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 203 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 205
-bxb -r 205 -a atruth qrs -L bxb.out sd.out
-rxr -r 205 -a atruth qrs -L vruns.out sruns.out
+bxb -r 205 -a atr qrs -L bxb.out sd.out
+rxr -r 205 -a atr qrs -L vruns.out sruns.out
 mxm -r 205 -a thr qrs -L hr0.out -m 0
-epic -r 205 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 205 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 207
-bxb -r 207 -a atruth qrs -L bxb.out sd.out
-rxr -r 207 -a atruth qrs -L vruns.out sruns.out
+bxb -r 207 -a atr qrs -L bxb.out sd.out
+rxr -r 207 -a atr qrs -L vruns.out sruns.out
 mxm -r 207 -a thr qrs -L hr0.out -m 0
-epic -r 207 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 207 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 208
-bxb -r 208 -a atruth qrs -L bxb.out sd.out
-rxr -r 208 -a atruth qrs -L vruns.out sruns.out
+bxb -r 208 -a atr qrs -L bxb.out sd.out
+rxr -r 208 -a atr qrs -L vruns.out sruns.out
 mxm -r 208 -a thr qrs -L hr0.out -m 0
-epic -r 208 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 208 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 209
-bxb -r 209 -a atruth qrs -L bxb.out sd.out
-rxr -r 209 -a atruth qrs -L vruns.out sruns.out
+bxb -r 209 -a atr qrs -L bxb.out sd.out
+rxr -r 209 -a atr qrs -L vruns.out sruns.out
 mxm -r 209 -a thr qrs -L hr0.out -m 0
-epic -r 209 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 209 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 210
-bxb -r 210 -a atruth qrs -L bxb.out sd.out
-rxr -r 210 -a atruth qrs -L vruns.out sruns.out
+bxb -r 210 -a atr qrs -L bxb.out sd.out
+rxr -r 210 -a atr qrs -L vruns.out sruns.out
 mxm -r 210 -a thr qrs -L hr0.out -m 0
-epic -r 210 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 210 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 212
-bxb -r 212 -a atruth qrs -L bxb.out sd.out
-rxr -r 212 -a atruth qrs -L vruns.out sruns.out
+bxb -r 212 -a atr qrs -L bxb.out sd.out
+rxr -r 212 -a atr qrs -L vruns.out sruns.out
 mxm -r 212 -a thr qrs -L hr0.out -m 0
-epic -r 212 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 212 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 213
-bxb -r 213 -a atruth qrs -L bxb.out sd.out
-rxr -r 213 -a atruth qrs -L vruns.out sruns.out
+bxb -r 213 -a atr qrs -L bxb.out sd.out
+rxr -r 213 -a atr qrs -L vruns.out sruns.out
 mxm -r 213 -a thr qrs -L hr0.out -m 0
-epic -r 213 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 213 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 214
-bxb -r 214 -a atruth qrs -L bxb.out sd.out
-rxr -r 214 -a atruth qrs -L vruns.out sruns.out
+bxb -r 214 -a atr qrs -L bxb.out sd.out
+rxr -r 214 -a atr qrs -L vruns.out sruns.out
 mxm -r 214 -a thr qrs -L hr0.out -m 0
-epic -r 214 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 214 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 215
-bxb -r 215 -a atruth qrs -L bxb.out sd.out
-rxr -r 215 -a atruth qrs -L vruns.out sruns.out
+bxb -r 215 -a atr qrs -L bxb.out sd.out
+rxr -r 215 -a atr qrs -L vruns.out sruns.out
 mxm -r 215 -a thr qrs -L hr0.out -m 0
-epic -r 215 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 215 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 217
-bxb -r 217 -a atruth qrs -L bxb.out sd.out
-rxr -r 217 -a atruth qrs -L vruns.out sruns.out
+bxb -r 217 -a atr qrs -L bxb.out sd.out
+rxr -r 217 -a atr qrs -L vruns.out sruns.out
 mxm -r 217 -a thr qrs -L hr0.out -m 0
-epic -r 217 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 217 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 219
-bxb -r 219 -a atruth qrs -L bxb.out sd.out
-rxr -r 219 -a atruth qrs -L vruns.out sruns.out
+bxb -r 219 -a atr qrs -L bxb.out sd.out
+rxr -r 219 -a atr qrs -L vruns.out sruns.out
 mxm -r 219 -a thr qrs -L hr0.out -m 0
-epic -r 219 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 219 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 220
-bxb -r 220 -a atruth qrs -L bxb.out sd.out
-rxr -r 220 -a atruth qrs -L vruns.out sruns.out
+bxb -r 220 -a atr qrs -L bxb.out sd.out
+rxr -r 220 -a atr qrs -L vruns.out sruns.out
 mxm -r 220 -a thr qrs -L hr0.out -m 0
-epic -r 220 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 220 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 221
-bxb -r 221 -a atruth qrs -L bxb.out sd.out
-rxr -r 221 -a atruth qrs -L vruns.out sruns.out
+bxb -r 221 -a atr qrs -L bxb.out sd.out
+rxr -r 221 -a atr qrs -L vruns.out sruns.out
 mxm -r 221 -a thr qrs -L hr0.out -m 0
-epic -r 221 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 221 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 222
-bxb -r 222 -a atruth qrs -L bxb.out sd.out
-rxr -r 222 -a atruth qrs -L vruns.out sruns.out
+bxb -r 222 -a atr qrs -L bxb.out sd.out
+rxr -r 222 -a atr qrs -L vruns.out sruns.out
 mxm -r 222 -a thr qrs -L hr0.out -m 0
-epic -r 222 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 222 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 223
-bxb -r 223 -a atruth qrs -L bxb.out sd.out
-rxr -r 223 -a atruth qrs -L vruns.out sruns.out
+bxb -r 223 -a atr qrs -L bxb.out sd.out
+rxr -r 223 -a atr qrs -L vruns.out sruns.out
 mxm -r 223 -a thr qrs -L hr0.out -m 0
-epic -r 223 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 223 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 228
-bxb -r 228 -a atruth qrs -L bxb.out sd.out
-rxr -r 228 -a atruth qrs -L vruns.out sruns.out
+bxb -r 228 -a atr qrs -L bxb.out sd.out
+rxr -r 228 -a atr qrs -L vruns.out sruns.out
 mxm -r 228 -a thr qrs -L hr0.out -m 0
-epic -r 228 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 228 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 230
-bxb -r 230 -a atruth qrs -L bxb.out sd.out
-rxr -r 230 -a atruth qrs -L vruns.out sruns.out
+bxb -r 230 -a atr qrs -L bxb.out sd.out
+rxr -r 230 -a atr qrs -L vruns.out sruns.out
 mxm -r 230 -a thr qrs -L hr0.out -m 0
-epic -r 230 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 230 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 231
-bxb -r 231 -a atruth qrs -L bxb.out sd.out
-rxr -r 231 -a atruth qrs -L vruns.out sruns.out
+bxb -r 231 -a atr qrs -L bxb.out sd.out
+rxr -r 231 -a atr qrs -L vruns.out sruns.out
 mxm -r 231 -a thr qrs -L hr0.out -m 0
-epic -r 231 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 231 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 232
-bxb -r 232 -a atruth qrs -L bxb.out sd.out
-rxr -r 232 -a atruth qrs -L vruns.out sruns.out
+bxb -r 232 -a atr qrs -L bxb.out sd.out
+rxr -r 232 -a atr qrs -L vruns.out sruns.out
 mxm -r 232 -a thr qrs -L hr0.out -m 0
-epic -r 232 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 232 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 233
-bxb -r 233 -a atruth qrs -L bxb.out sd.out
-rxr -r 233 -a atruth qrs -L vruns.out sruns.out
+bxb -r 233 -a atr qrs -L bxb.out sd.out
+rxr -r 233 -a atr qrs -L vruns.out sruns.out
 mxm -r 233 -a thr qrs -L hr0.out -m 0
-epic -r 233 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 233 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Record 234
-bxb -r 234 -a atruth qrs -L bxb.out sd.out
-rxr -r 234 -a atruth qrs -L vruns.out sruns.out
+bxb -r 234 -a atr qrs -L bxb.out sd.out
+rxr -r 234 -a atr qrs -L vruns.out sruns.out
 mxm -r 234 -a thr qrs -L hr0.out -m 0
-epic -r 234 -a atruth qrs -L -A af.out -V vf.out -S st.out stm.out
+epic -r 234 -a atr qrs -L -A af.out -V vf.out -S st.out stm.out
 
 : Generate summary report
 echo Beat detection and classification performance >>qrs-mit-evaluation
diff -Naur -x doc wfdb-10.2.3/conf/generic-slib.def wfdb-10.2.4/conf/generic-slib.def
--- wfdb-10.2.3/conf/generic-slib.def	Wed Apr 18 10:12:52 2001
+++ wfdb-10.2.4/conf/generic-slib.def	Mon Dec 17 22:27:55 2001
@@ -1,5 +1,5 @@
 # file: generic-slib.def	G. Moody	31 May 2000
-#				Last revised:	5 June 2000
+#				Last revised: 17 December 2001
 # This section contains settings suitable for compiling a shared version of the
 # WFDB library under versions of UNIX that are not otherwise recognized by
 # 'configure'.  Not all versions of UNIX support shared libraries, so you may
@@ -44,9 +44,27 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.  Add the following options to CCDEFS as appropriate (separating them
+# by spaces if you use more than one):
+#   -DISPRINTF	  if you do not have `stdlib.h' and your `sprintf' returns an
+#		   int (see wfdblib.h)
+#   -DNETFILES	  if you have libwww and want to be able to access WFDB files
+#		   remotely via http or ftp (as well as local files)
+#   -DNOMALLOC_H  if you have neither `stdlib.h' nor `malloc.h' (see wfdblib.h)
+#   -DNOSTRTOK	  if your standard C library does not include function `strtok'
+#		   (see wfdbio.c)
+#   -DNOTIME	  if you do not have `time.h' (see signal.c)
+#   -DNOVALUES_H  if you do not have `values.h' (see psd/log10.c)
+#   -DOLDC	  if you have neither `stdarg.h' nor `varargs.h' (see wfdbio.c)
+# If your C compiler fails to compile `signal.c', add -DBROKEN_CC to CCDEFS
+# and try again (see signal.c).
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options used when compiling the shared
-# library.  CFLAGS should always include VDEFS.
-CFLAGS = -fpic -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# library.  CFLAGS should always include CCDEFS.
+CFLAGS = -fpic -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # WFDBLIB_BASENAME is the name, without version numbers, of the alternate
 # library.  WFDBLIB_SONAME is the shared object name ("soname") of the
diff -Naur -x doc wfdb-10.2.3/conf/hpux-slib.def wfdb-10.2.4/conf/hpux-slib.def
--- wfdb-10.2.3/conf/hpux-slib.def	Mon Jun  5 06:18:44 2000
+++ wfdb-10.2.4/conf/hpux-slib.def	Mon Dec 17 22:26:02 2001
@@ -1,5 +1,5 @@
 # file: hpux-slib.def	G. Moody	31 May 2000
-#			Last revised:	5 June 2000
+#			Last revised: 17 December 2001
 # This section contains settings suitable for generating a shared library under
 # HP-UX.
 
@@ -40,9 +40,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options used when compiling the shared
-# library.  CFLAGS should always include VDEFS.
-CFLAGS = -fpic -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# library.  CFLAGS should always include CCDEFS.
+CFLAGS = -fpic -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # WFDBLIB_BASENAME is the name, without version numbers, of the alternate
 # library.  WFDBLIB_SONAME is the shared object name ("soname") of the
diff -Naur -x doc wfdb-10.2.3/conf/hpux.def wfdb-10.2.4/conf/hpux.def
--- wfdb-10.2.3/conf/hpux.def	Thu Dec 13 23:01:21 2001
+++ wfdb-10.2.4/conf/hpux.def	Mon Dec 17 22:25:23 2001
@@ -1,5 +1,5 @@
 # file: hpux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB library under HP-UX
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -67,16 +67,21 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options.  CFLAGS should always include
-# VDEFS.  Add the following options to CFLAGS as appropriate (separating them
+# CCDEFS.  Add the following options to CFLAGS as appropriate (separating them
 # by spaces if you use more than one):
 #   -g		  to save symbols for debugging
 #   -O		  if you trust your C compiler's optimizer
 # With the exception of `gcc', most C compilers do not allow you to use -g and
 # -O simultaneously.
-CFLAGS = -g $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CFLAGS = -g $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 # `gcc' users may comment out the previous line, and uncomment the next one.
-# CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/conf/linux-slib.def wfdb-10.2.4/conf/linux-slib.def
--- wfdb-10.2.3/conf/linux-slib.def	Thu Dec 13 13:00:59 2001
+++ wfdb-10.2.4/conf/linux-slib.def	Mon Dec 17 22:22:14 2001
@@ -1,5 +1,5 @@
 # file: linux-slib.def		G. Moody	31 May 2000
-#                               Last revised: 13 December 2001
+#                               Last revised: 17 December 2001
 # This section contains settings suitable for generating an ELF-format shared
 # library under Linux.
 
@@ -36,9 +36,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options used when compiling the shared
-# library.  CFLAGS should always include VDEFS.
-CFLAGS = -fpic -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# library.  CFLAGS should always include CCDEFS.
+CFLAGS = -fpic -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # WFDBLIB_BASENAME is the name, without version numbers, of the alternate
 # library.  WFDBLIB_SONAME is the shared object name ("soname") of the
diff -Naur -x doc wfdb-10.2.3/conf/linux.def wfdb-10.2.4/conf/linux.def
--- wfdb-10.2.3/conf/linux.def	Thu Dec 13 22:58:40 2001
+++ wfdb-10.2.4/conf/linux.def	Mon Dec 17 22:21:49 2001
@@ -1,5 +1,5 @@
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -59,9 +59,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/conf/solaris-slib.def wfdb-10.2.4/conf/solaris-slib.def
--- wfdb-10.2.3/conf/solaris-slib.def	Mon Jun  5 06:17:22 2000
+++ wfdb-10.2.4/conf/solaris-slib.def	Mon Dec 17 22:24:15 2001
@@ -1,5 +1,5 @@
 # file: solaris-slib.def	G. Moody	31 May 2000
-#				Last revised:	5 June 2000
+#				Last revised: 17 December 2001
 # This section contains settings suitable for generating a shared library under
 # Solaris.
 
@@ -37,14 +37,19 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options used when compiling the shared
-# library.  CFLAGS should always include VDEFS.  These settings are for use
+# library.  CFLAGS should always include CCDEFS.  These settings are for use
 # with gcc:
-CFLAGS = -fpic -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CFLAGS = -fpic -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 # For SunOS `cc', uncomment the next line.
-# CFLAGS = -pic -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# CFLAGS = -pic -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 # For Solaris or SVR4 `cc', uncomment the next line.
-# CFLAGS = -K PIC -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# CFLAGS = -K PIC -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # WFDBLIB_BASENAME is the name, without version numbers, of the alternate
 # library.  WFDBLIB_SONAME is the shared object name ("soname") of the
diff -Naur -x doc wfdb-10.2.3/conf/solaris.def wfdb-10.2.4/conf/solaris.def
--- wfdb-10.2.3/conf/solaris.def	Thu Dec 13 23:05:10 2001
+++ wfdb-10.2.4/conf/solaris.def	Mon Dec 17 22:24:38 2001
@@ -1,5 +1,5 @@
 # file: solaris.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Solaris
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -64,12 +64,17 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options.  CFLAGS should always include
-# VDEFS.  With the exception of `gcc', most C compilers do not allow you to use
-# -g and -O simultaneously.
-CFLAGS = -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# CCDEFS.  With the exception of `gcc', most C compilers do not allow you to
+# use -g and -O simultaneously.
+CFLAGS = -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 # `gcc' users may comment out the previous line, and uncomment the next one.
-# CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/conf/version.def wfdb-10.2.4/conf/version.def
--- wfdb-10.2.3/conf/version.def	Fri Dec  7 22:42:14 2001
+++ wfdb-10.2.4/conf/version.def	Mon Dec 17 12:07:33 2001
@@ -4,7 +4,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
diff -Naur -x doc wfdb-10.2.3/configure wfdb-10.2.4/configure
--- wfdb-10.2.3/configure	Thu Dec 13 23:05:04 2001
+++ wfdb-10.2.4/configure	Tue Dec 18 16:37:04 2001
@@ -1,6 +1,6 @@
 #! /bin/sh
 # file: configure             G. Moody               24 May 2000
-#                             Last revised:        13 December 2001
+#                             Last revised:        18 December 2001
 # Configuration script for the WFDB Software Package
 
 # This script was not generated using 'autoconf'.  If you can implement
@@ -198,7 +198,8 @@
 else
     cat lib/Makefile.top conf/site.def lib/Makefile.tpl >lib/Makefile
 fi
-for D in app checkpkg convert data doc examples fortran psd wave waverc .
+for D in app checkpkg convert data doc doc/wag-src doc/wpg-src doc/wug-src \
+ examples fortran psd wave waverc .
 do
    if [ -s $D/Makefile.top ]
    then
diff -Naur -x doc wfdb-10.2.3/convert/Makefile wfdb-10.2.4/convert/Makefile
--- wfdb-10.2.3/convert/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/convert/Makefile	Thu Dec 20 18:33:15 2001
@@ -38,7 +38,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -46,9 +46,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -108,9 +108,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/data/Makefile wfdb-10.2.4/data/Makefile
--- wfdb-10.2.3/data/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/data/Makefile	Thu Dec 20 18:33:15 2001
@@ -38,7 +38,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -46,9 +46,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -108,9 +108,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/examples/Makefile wfdb-10.2.4/examples/Makefile
--- wfdb-10.2.3/examples/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/examples/Makefile	Thu Dec 20 18:33:15 2001
@@ -39,7 +39,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -47,9 +47,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -109,9 +109,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/examples/example2.c wfdb-10.2.4/examples/example2.c
--- wfdb-10.2.3/examples/example2.c	Thu Jun 24 11:38:29 1999
+++ wfdb-10.2.4/examples/example2.c	Mon Dec 17 22:05:28 2001
@@ -12,8 +12,8 @@
         fprintf(stderr, "usage: %s record\n", argv[0]);
         exit(1);
     }
-    an[0].name = "atruth"; an[0].stat = WFDB_READ;
-    an[1].name = "aha";    an[1].stat = WFDB_AHA_WRITE;
+    an[0].name = "atr"; an[0].stat = WFDB_READ;
+    an[1].name = "aha"; an[1].stat = WFDB_AHA_WRITE;
     if (annopen(argv[1], an, 2) < 0) exit(2);
     while (getann(0, &annot) == 0 && putann(0, &annot) == 0)
         ;
diff -Naur -x doc wfdb-10.2.3/lib/Makefile wfdb-10.2.4/lib/Makefile
--- wfdb-10.2.3/lib/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/lib/Makefile	Thu Dec 20 18:33:15 2001
@@ -38,7 +38,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -47,7 +47,7 @@
 # _____________________________________________________________________________
 
 # file: linux-slib.def		G. Moody	31 May 2000
-#                               Last revised: 13 December 2001
+#                               Last revised: 17 December 2001
 # This section contains settings suitable for generating an ELF-format shared
 # library under Linux.
 
@@ -84,9 +84,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
+# VDEFS.
+CCDEFS = $(VDEFS)
+
 # CFLAGS is the set of C compiler options used when compiling the shared
-# library.  CFLAGS should always include VDEFS.
-CFLAGS = -fpic -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+# library.  CFLAGS should always include CCDEFS.
+CFLAGS = -fpic -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # WFDBLIB_BASENAME is the name, without version numbers, of the alternate
 # library.  WFDBLIB_SONAME is the shared object name ("soname") of the
diff -Naur -x doc wfdb-10.2.3/lib/wfdb.h wfdb-10.2.4/lib/wfdb.h
--- wfdb-10.2.3/lib/wfdb.h	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/lib/wfdb.h	Thu Dec 20 18:33:15 2001
@@ -1,5 +1,5 @@
 /* file: wfdb.h		G. Moody	13 June 1983
-			Last revised:   7 December 2001		wfdblib 10.2.3
+			Last revised:   17 December 2001	wfdblib 10.2.4
 WFDB library type, constant, structure, and function interface definitions
 
 _______________________________________________________________________________
@@ -33,7 +33,7 @@
 /* WFDB library version. */
 #define WFDB_MAJOR   10
 #define WFDB_MINOR   2
-#define WFDB_RELEASE 3
+#define WFDB_RELEASE 4
 #define WFDB_NETFILES 1	/* if 1, library includes code for HTTP, FTP clients */
 
 /* Determine what type of compiler is being used. */
diff -Naur -x doc wfdb-10.2.3/lib/wfdbio.c wfdb-10.2.4/lib/wfdbio.c
--- wfdb-10.2.3/lib/wfdbio.c	Wed Nov  7 16:50:39 2001
+++ wfdb-10.2.4/lib/wfdbio.c	Mon Dec 17 22:07:40 2001
@@ -1,5 +1,5 @@
 /* file: wfdbio.c	G. Moody	18 November 1988
-			Last revised:	 7 November 2001	wfdblib 10.2.1
+			Last revised:	17 December 2001	wfdblib 10.2.4
 Low-level I/O functions for the WFDB library
 
 _______________________________________________________________________________
@@ -729,12 +729,12 @@
 
 /* wfdb_open is used by other WFDB library functions to open a database file
 for reading or writing.  wfdb_open accepts two string arguments and an integer
-argument.  The first string specifies the file type ("header", "atruth", etc.),
+argument.  The first string specifies the file type ("hea", "atr", etc.),
 and the second specifies the record name.  The integer argument (mode) is
 either WFDB_READ or WFDB_WRITE.  Note that a function which calls wfdb_open
 does not need to know the filename itself; thus all system-specific details of
 file naming conventions can be hidden in wfdb_open.  If the first argument is
-"-", or if the first argument is "header" and the second is "-", wfdb_open
+"-", or if the first argument is "hea" and the second is "-", wfdb_open
 returns a file pointer to the standard input or output as appropriate.  If
 either of the string arguments is null or empty, wfdb_open takes the other as
 the file name.  Otherwise, it constructs the file name by concatenating the
@@ -793,7 +793,7 @@
 
     /* Check to see if standard input or output is requested. */
     if (strcmp(s, "-") == 0 ||
-	(strcmp(s, "header") == 0 && strcmp(record, "-") == 0))
+	(strcmp(s, "hea") == 0 && strcmp(record, "-") == 0))
 	if (mode == WFDB_READ) {
 	    static WFDB_FILE wfdb_stdin;
 
diff -Naur -x doc wfdb-10.2.3/psd/Makefile wfdb-10.2.4/psd/Makefile
--- wfdb-10.2.3/psd/Makefile	Fri Dec 14 14:38:10 2001
+++ wfdb-10.2.4/psd/Makefile	Thu Dec 20 18:33:15 2001
@@ -37,7 +37,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -45,9 +45,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -107,9 +107,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
@@ -202,7 +207,7 @@
 	$(CC) -o fft -O fft.c -lm
 
 log10:		log10.c
-	$(CC) -o log10 -O log10.c -lm
+	$(CC) $(CCDEFS) -o log10 -O log10.c -lm
 
 lomb:		lomb.c
 	$(CC) -o lomb -O lomb.c -lm
diff -Naur -x doc wfdb-10.2.3/wave/Makefile wfdb-10.2.4/wave/Makefile
--- wfdb-10.2.3/wave/Makefile	Fri Dec 14 14:38:11 2001
+++ wfdb-10.2.4/wave/Makefile	Thu Dec 20 18:33:15 2001
@@ -50,7 +50,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -58,9 +58,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -120,9 +120,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/wave/wave.hl0 wfdb-10.2.4/wave/wave.hl0
--- wfdb-10.2.3/wave/wave.hl0	Fri Nov 16 15:59:10 2001
+++ wfdb-10.2.4/wave/wave.hl0	Mon Dec 17 22:08:50 2001
@@ -78,8 +78,8 @@
 			from the `View' panel (see `Resources' for details).
 Examples:
 ---------
- wave -r 200 -a atruth		Open record 200, and show annotations from
-				the reference annotation file (atruth.200)
+ wave -r 200 -a atr		Open record 200, and show annotations from
+				the reference annotation file (200.atr)
 
  wave -r 100 -g -dpi 65x70	Open record 100, and use shades of grey only
 				on a display that has a resolution of 65 dpi
diff -Naur -x doc wfdb-10.2.3/wave/wave.prf wfdb-10.2.4/wave/wave.prf
--- wfdb-10.2.3/wave/wave.prf	Mon Jun 19 15:08:54 2000
+++ wfdb-10.2.4/wave/wave.prf	Mon Dec 17 22:09:16 2001
@@ -215,7 +215,7 @@
 
 - You can now specify the starting time of the first screen shown by WAVE
   using the `-f' command-line option.  For example,
-	wave -r 100 -a atruth -f 25:14
+	wave -r 100 -a atr -f 25:14
   opens record 100 at 25 minutes and 14 seconds from the beginning of the
   record.  You may also set the initial value of the signal list (see below)
   using the `-s' option.  For example,
diff -Naur -x doc wfdb-10.2.3/waverc/Makefile wfdb-10.2.4/waverc/Makefile
--- wfdb-10.2.3/waverc/Makefile	Fri Dec 14 14:38:11 2001
+++ wfdb-10.2.4/waverc/Makefile	Thu Dec 20 18:33:15 2001
@@ -30,7 +30,7 @@
 # version number, defined here:
 MAJOR = 10
 MINOR = 2
-RELEASE = 3
+RELEASE = 4
 VERSION = $(MAJOR).$(MINOR).$(RELEASE)
 
 # VDEFS is the set of C compiler options needed to set version number variables
@@ -38,9 +38,9 @@
 VDEFS = -DWFDB_MAJOR=$(MAJOR) -DWFDB_MINOR=$(MINOR) -DWFDB_RELEASE=$(RELEASE)
 # _____________________________________________________________________________
 
-PACKAGE=wfdb-10.2.3
+PACKAGE=wfdb-10.2.4
 # file: linux.def		G. Moody	31 May 2000
-#				Last revised: 13 December 2001
+#				Last revised: 17 December 2001
 # 'make' definitions for compiling the WFDB Software Package under Linux
 
 # Choose a value for WFDBROOT to determine where the WFDB Software Package will
@@ -100,9 +100,14 @@
 # CC is the name of your C compiler.
 CC = gcc
 
-# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS is the set of C compiler options needed to set preprocessor variables
+# while compiling the WFDB Software Package.  CCDEFS should always include
 # VDEFS.
-CFLAGS = -g -O $(VDEFS) `$(LWC) --cflags` -I$(INCDIR)
+CCDEFS = $(VDEFS)
+
+# CFLAGS is the set of C compiler options.  CFLAGS should always include
+# CCDEFS.
+CFLAGS = -g -O $(CCDEFS) `$(LWC) --cflags` -I$(INCDIR)
 
 # LDFLAGS is appended to the C compiler command line to specify loading the
 # WFDB library.
diff -Naur -x doc wfdb-10.2.3/wfdb-10.2.3-1.spec wfdb-10.2.4/wfdb-10.2.3-1.spec
--- wfdb-10.2.3/wfdb-10.2.3-1.spec	Thu Dec 13 13:44:06 2001
+++ wfdb-10.2.4/wfdb-10.2.3-1.spec	Wed Dec 31 19:00:00 1969
@@ -1,181 +0,0 @@
-Summary: Waveform Database library and applications
-Name: wfdb
-Version: 10.2.3
-Release: 1
-Copyright: GPL
-Group: Applications/Engineering
-Source: http://www.physionet.org/physiotools/archives/wfdb-10.2.3.tar.gz
-URL: http://www.physionet.org/physiotools/wfdb.shtml
-Packager: George Moody <george@mit.edu>
-Requires: w3c-libwww >= 5.2
-Requires: w3c-libwww-devel >= 5.2
-Requires: xview >= 3.2
-Requires: xview-devel >= 3.2
-
-%description
-Applications for creating, reading, analyzing, and viewing digitized signals in
-a wide variety of formats, with optional annotations.  The WFDB library,
-included here, works together with the W3C's libwww to provide HTTP and FTP
-client support to applications that use it, such as those in this package.
-Although created for use with physiologic signals such as those available from
-PhysioBank (http://www.physionet.org/physiobank/), many of the programs in this
-package are general-purpose signal processing applications.
-
-%prep
-%setup
-PATH=$PATH:/usr/openwin/bin ./configure
-
-%build
-make
-
-%install
-make install
-
-%clean
-make clean
-
-%files
-%defattr(-,root,root)
-%doc checkpkg doc examples fortran lib/COPYING.LIB wave/anntab wave/wavemenu.def COPYING INSTALL MANIFEST NEWS README README.NETFILES
-
-/usr/bin/a2m
-/usr/bin/bxb
-/usr/bin/fft
-/usr/bin/fir
-/usr/bin/m2a
-/usr/bin/ihr
-/usr/bin/mxm
-/usr/bin/nst
-/usr/bin/rxr
-/usr/bin/ad2m
-/usr/bin/sumstats
-/usr/bin/epic
-/usr/bin/md2a
-/usr/bin/lomb
-/usr/bin/psfd
-/usr/bin/tach
-/usr/bin/snip
-/usr/bin/sqrs
-/usr/bin/wave
-/usr/bin/cshsetwfdb
-/usr/bin/wfdbdesc
-/usr/bin/sampfreq
-/usr/bin/hrfft
-/usr/bin/hrmem
-/usr/bin/log10
-/usr/bin/memse
-/usr/bin/mfilt
-/usr/bin/rdann
-/usr/bin/wrann
-/usr/bin/xform
-/usr/bin/ecgeval
-/usr/bin/edf2mit
-/usr/bin/wfdbcollate
-/usr/bin/wave-remote
-/usr/bin/setwfdb
-/usr/bin/coherence
-/usr/bin/sortann
-/usr/bin/wavescript
-/usr/bin/sqrs125
-/usr/bin/ann2rr
-/usr/bin/calsig
-/usr/bin/skewedit
-/usr/bin/hrlomb
-/usr/bin/hrplot
-/usr/bin/makeid
-/usr/bin/mrgann
-/usr/bin/plot2d
-/usr/bin/plot3d
-/usr/bin/pscgen
-/usr/bin/readid
-/usr/bin/rdsamp
-/usr/bin/revise
-/usr/bin/rr2ann
-/usr/bin/sigamp
-/usr/bin/sumann
-/usr/bin/wrsamp
-/usr/bin/url_view
-/usr/bin/wfdbwhich
-/usr/bin/wfdbcat
-/usr/bin/plotstm
-/usr/bin/pschart
-/usr/lib/ps/pschart.pro
-/usr/lib/ps/12lead.pro
-/usr/lib/ps/psfd.pro
-/usr/lib/X11/app-defaults/Wave
-/usr/lib/wavemenu.def
-/usr/lib/libwfdb.so.10.2
-/usr/help/wave/intro.hlp
-/usr/help/wave/editing.hlp
-/usr/help/wave/resource.hlp
-/usr/help/wave/faq.hlp
-/usr/help/wave/log.hlp
-/usr/help/wave/wave.info
-/usr/help/wave/buttons.hlp
-/usr/help/wave/printing.hlp
-/usr/help/wave/wave.hlp
-/usr/help/wave/wave.pro
-/usr/help/wave/demo.txt
-/usr/help/wave/news.hlp
-/usr/help/wave/analysis.hlp
-/usr/database/8.hea
-/usr/database/ahaxlist
-/usr/database/dbcal
-/usr/database/100s.atr
-/usr/database/100s.dat
-/usr/database/100s.hea
-/usr/database/esclist
-/usr/database/mitlist
-/usr/database/dblist
-/usr/database/culist
-/usr/database/multi.hea
-/usr/database/ahalist
-/usr/database/mitxlist
-/usr/database/nstlist
-/usr/database/16.hea
-/usr/database/wfdbcal
-/usr/database/8l.hea
-/usr/database/null.hea
-/usr/database/16l.hea
-/usr/database/pipe/16x1.hea
-/usr/database/pipe/16x2.hea
-/usr/database/pipe/16x3.hea
-/usr/database/pipe/16x4.hea
-/usr/database/pipe/16x5.hea
-/usr/database/pipe/16x6.hea
-/usr/database/pipe/16x7.hea
-/usr/database/pipe/16x8.hea
-/usr/database/pipe/16x9.hea
-/usr/database/pipe/16x10.hea
-/usr/database/pipe/16x11.hea
-/usr/database/pipe/16x12.hea
-/usr/database/pipe/16x13.hea
-/usr/database/pipe/16x14.hea
-/usr/database/pipe/16x15.hea
-/usr/database/pipe/16x16.hea
-/usr/database/pipe/8x1.hea
-/usr/database/pipe/8x2.hea
-/usr/database/pipe/8x3.hea
-/usr/database/pipe/8x4.hea
-/usr/database/pipe/8x5.hea
-/usr/database/pipe/8x6.hea
-/usr/database/pipe/8x7.hea
-/usr/database/pipe/8x8.hea
-/usr/database/pipe/8x9.hea
-/usr/database/pipe/8x10.hea
-/usr/database/pipe/8x11.hea
-/usr/database/pipe/8x12.hea
-/usr/database/pipe/8x13.hea
-/usr/database/pipe/8x14.hea
-/usr/database/pipe/8x15.hea
-/usr/database/pipe/8x16.hea
-/usr/database/tape/512.hea
-/usr/database/tape/1024.hea
-/usr/database/tape/4096.hea
-/usr/database/tape/6144d.hea
-/usr/database/tape/10240.hea
-/usr/database/tape/ahatape.hea
-/usr/database/tape/mittape.hea
-/usr/include/wfdb/ecgcodes.h
-/usr/include/wfdb/wfdb.h
-/usr/include/wfdb/ecgmap.h
diff -Naur -x doc wfdb-10.2.3/wfdb-10.2.4-1.spec wfdb-10.2.4/wfdb-10.2.4-1.spec
--- wfdb-10.2.3/wfdb-10.2.4-1.spec	Wed Dec 31 19:00:00 1969
+++ wfdb-10.2.4/wfdb-10.2.4-1.spec	Mon Dec 17 22:56:27 2001
@@ -0,0 +1,181 @@
+Summary: Waveform Database library and applications
+Name: wfdb
+Version: 10.2.4
+Release: 1
+Copyright: GPL
+Group: Applications/Engineering
+Source: http://www.physionet.org/physiotools/archives/wfdb-10.2.4.tar.gz
+URL: http://www.physionet.org/physiotools/wfdb.shtml
+Packager: George Moody <george@mit.edu>
+Requires: w3c-libwww >= 5.2
+Requires: w3c-libwww-devel >= 5.2
+Requires: xview >= 3.2
+Requires: xview-devel >= 3.2
+
+%description
+Applications for creating, reading, analyzing, and viewing digitized signals in
+a wide variety of formats, with optional annotations.  The WFDB library,
+included here, works together with the W3C's libwww to provide HTTP and FTP
+client support to applications that use it, such as those in this package.
+Although created for use with physiologic signals such as those available from
+PhysioBank (http://www.physionet.org/physiobank/), many of the programs in this
+package are general-purpose signal processing applications.
+
+%prep
+%setup
+PATH=$PATH:/usr/openwin/bin ./configure
+
+%build
+make
+
+%install
+make install
+
+%clean
+make clean
+
+%files
+%defattr(-,root,root)
+%doc checkpkg doc examples fortran lib/COPYING.LIB wave/anntab wave/wavemenu.def COPYING INSTALL MANIFEST NEWS README README.NETFILES
+
+/usr/bin/a2m
+/usr/bin/bxb
+/usr/bin/fft
+/usr/bin/fir
+/usr/bin/m2a
+/usr/bin/ihr
+/usr/bin/mxm
+/usr/bin/nst
+/usr/bin/rxr
+/usr/bin/ad2m
+/usr/bin/sumstats
+/usr/bin/epic
+/usr/bin/md2a
+/usr/bin/lomb
+/usr/bin/psfd
+/usr/bin/tach
+/usr/bin/snip
+/usr/bin/sqrs
+/usr/bin/wave
+/usr/bin/cshsetwfdb
+/usr/bin/wfdbdesc
+/usr/bin/sampfreq
+/usr/bin/hrfft
+/usr/bin/hrmem
+/usr/bin/log10
+/usr/bin/memse
+/usr/bin/mfilt
+/usr/bin/rdann
+/usr/bin/wrann
+/usr/bin/xform
+/usr/bin/ecgeval
+/usr/bin/edf2mit
+/usr/bin/wfdbcollate
+/usr/bin/wave-remote
+/usr/bin/setwfdb
+/usr/bin/coherence
+/usr/bin/sortann
+/usr/bin/wavescript
+/usr/bin/sqrs125
+/usr/bin/ann2rr
+/usr/bin/calsig
+/usr/bin/skewedit
+/usr/bin/hrlomb
+/usr/bin/hrplot
+/usr/bin/makeid
+/usr/bin/mrgann
+/usr/bin/plot2d
+/usr/bin/plot3d
+/usr/bin/pscgen
+/usr/bin/readid
+/usr/bin/rdsamp
+/usr/bin/revise
+/usr/bin/rr2ann
+/usr/bin/sigamp
+/usr/bin/sumann
+/usr/bin/wrsamp
+/usr/bin/url_view
+/usr/bin/wfdbwhich
+/usr/bin/wfdbcat
+/usr/bin/plotstm
+/usr/bin/pschart
+/usr/lib/ps/pschart.pro
+/usr/lib/ps/12lead.pro
+/usr/lib/ps/psfd.pro
+/usr/lib/X11/app-defaults/Wave
+/usr/lib/wavemenu.def
+/usr/lib/libwfdb.so.10.2
+/usr/help/wave/intro.hlp
+/usr/help/wave/editing.hlp
+/usr/help/wave/resource.hlp
+/usr/help/wave/faq.hlp
+/usr/help/wave/log.hlp
+/usr/help/wave/wave.info
+/usr/help/wave/buttons.hlp
+/usr/help/wave/printing.hlp
+/usr/help/wave/wave.hlp
+/usr/help/wave/wave.pro
+/usr/help/wave/demo.txt
+/usr/help/wave/news.hlp
+/usr/help/wave/analysis.hlp
+/usr/database/8.hea
+/usr/database/ahaxlist
+/usr/database/dbcal
+/usr/database/100s.atr
+/usr/database/100s.dat
+/usr/database/100s.hea
+/usr/database/esclist
+/usr/database/mitlist
+/usr/database/dblist
+/usr/database/culist
+/usr/database/multi.hea
+/usr/database/ahalist
+/usr/database/mitxlist
+/usr/database/nstlist
+/usr/database/16.hea
+/usr/database/wfdbcal
+/usr/database/8l.hea
+/usr/database/null.hea
+/usr/database/16l.hea
+/usr/database/pipe/16x1.hea
+/usr/database/pipe/16x2.hea
+/usr/database/pipe/16x3.hea
+/usr/database/pipe/16x4.hea
+/usr/database/pipe/16x5.hea
+/usr/database/pipe/16x6.hea
+/usr/database/pipe/16x7.hea
+/usr/database/pipe/16x8.hea
+/usr/database/pipe/16x9.hea
+/usr/database/pipe/16x10.hea
+/usr/database/pipe/16x11.hea
+/usr/database/pipe/16x12.hea
+/usr/database/pipe/16x13.hea
+/usr/database/pipe/16x14.hea
+/usr/database/pipe/16x15.hea
+/usr/database/pipe/16x16.hea
+/usr/database/pipe/8x1.hea
+/usr/database/pipe/8x2.hea
+/usr/database/pipe/8x3.hea
+/usr/database/pipe/8x4.hea
+/usr/database/pipe/8x5.hea
+/usr/database/pipe/8x6.hea
+/usr/database/pipe/8x7.hea
+/usr/database/pipe/8x8.hea
+/usr/database/pipe/8x9.hea
+/usr/database/pipe/8x10.hea
+/usr/database/pipe/8x11.hea
+/usr/database/pipe/8x12.hea
+/usr/database/pipe/8x13.hea
+/usr/database/pipe/8x14.hea
+/usr/database/pipe/8x15.hea
+/usr/database/pipe/8x16.hea
+/usr/database/tape/512.hea
+/usr/database/tape/1024.hea
+/usr/database/tape/4096.hea
+/usr/database/tape/6144d.hea
+/usr/database/tape/10240.hea
+/usr/database/tape/ahatape.hea
+/usr/database/tape/mittape.hea
+/usr/include/wfdb/ecgcodes.h
+/usr/include/wfdb/wfdb.h
+/usr/include/wfdb/ecgmap.h
