Signed-off-by: Neil Brown <neilb@suse.de>
* many fewer symbols.
*/
-#include <malloc.h>
#include <ctype.h>
#include <stdlib.h>
#include "wiggle.h"
while (pb > 0 && is_skipped(b2.list[pb-1]))
pb--;
+ if (pa <= 0)
+ pa = 1;
+ if (pb <= 0)
+ pb = 1;
+
best[b].xlo = pa;
best[b].ylo = pb;
*
*/
-#include <malloc.h>
#include "wiggle.h"
#include <stdlib.h>
#!/bin/bash
+# Redirect for non-GNU time systems
+if [ "xxTIME_CMD" = "xx" ]
+then
+ time_cmd=/usr/bin/time
+else
+ time_cmd=$TIME_CMD
+fi
+
dir=$PWD
while [ ! -f $dir/wiggle ]
then cd tests
fi
-TIME="/usr/bin/time -o .time -f %U"
+TIME="$time_cmd -o .time -f %U"
if $TIME true > /dev/null 2>&1
then :
else TIME=
*/
#include "wiggle.h"
-#include <malloc.h>
#include <stdlib.h>
static void skip_eol(char **cp, char *end)
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-#include <malloc.h>
+#include <stdlib.h>
static void join_streams(struct stream list[], int cnt)
{
#include "wiggle.h"
#include <stdlib.h>
-#include <malloc.h>
/*
* Second attempt at merging....
#include "wiggle.h"
#include <stdlib.h>
#include <ctype.h>
-#include <malloc.h>
+#include <stdlib.h>
#define BITS_PER_LONG 32
#include "hash.h"
*/
#include "wiggle.h"
-#include <malloc.h>
#include <curses.h>
#include <unistd.h>
#include <stdlib.h>