patches for gnucap

Dan McMahill <[email protected]> Mon, 22 Mar 2004 06:16:15 -0500
Newsgroups gmane.comp.gnu.gnucap.bugs
Message-ID <[email protected]>
Hi Al,

Hope this is the right place to send this.  I recently had
a problem where I needed to include math.h in one of the gnucap
source files to build gnucap.  Also, I found a bug in one of the
scripts.

patches are attached.

-Dan

-- 

--- test/test.orig	Sun Feb  1 22:49:09 2004
+++ test/test
@@ -1,5 +1,5 @@
 #!/bin/sh
-if [ $# == 0 ] ; then
+if [ $# -eq 0 ] ; then
     echo "usage: ./test gnucap \"testcases\" targetdir refdir"
     echo "usual testcases is \"\", usual refdir is =="
     echo "example: ./test gnucap \"\" myversion =="
--- src/l_ftos.cc.orig	Sun Feb  1 21:13:19 2004
+++ src/l_ftos.cc
@@ -36,6 +36,8 @@
  * there is a finite pool, so repeated calls work, to a point.
  * after that, the space is overwritten, every POOLSIZE calls
  */
+
+#include <math.h>
 #include "l_lib.h"
 #include "constant.h"
 /*--------------------------------------------------------------------------*/