$(BIN)/wiggle : $(BOBJ) $(O)/libwiggle.a
- $(QUIET_LINK)$(CC) $^ $(LDLIBS) -o $@
+ $(QUIET_LINK)$(CC) $(CFLAGS) $^ $(LDLIBS) -o $@
$(O)/libwiggle.a : $(BLIBOBJ)
$(QUIET_AR)ar cr $@ $^
else $VG $WIGGLE -B orig
fi
if grep 'ERROR SUMMARY: [1-9]' $vallog > /dev/null 2>&1
- then msg="VALGRIND ERRORS"; xit=1
+ then msg="VALGRIND ERRORS"; xit=1 ; mv $vallog $vallog-${dir////-}
else msg="SUCCESS"; xit=0
fi
echo $path $msg
while (spos.p.m >= 0 && spos.state != 0)
prev_mline(&spos, fm, fb, fa, ci.merger, smode);
while (!same_mpos(spos, tpos) &&
+ spos.p.m >= 0 &&
ci.merger[spos.p.m].type != End)
next_mline(&spos, fm, fb, fa, ci.merger, smode);
blank(i--, 0, cols, a_void);
tpos = spos;
for (i = srow;
- i < rows && ci.merger[tpos.p.m].type != End;
+ i < rows && tpos.p.m >= 0 &&
+ ci.merger[tpos.p.m].type != End;
i++) {
draw_mline(smode, i, start, cols, fm, fb, fa, ci.merger,
tpos,
* elmnt at the start of each hunk which starts with '\0' and
* records the line offsets of the hunk. These are 20+ bytes long.
* "\0\d{5} \d{5} \d{5}{SP funcname}?\n\0"
- * The 3 numbers are: chunk number, starting line, number if lines.
+ * The 3 numbers are: chunk number, starting line, number of lines.
* An element with len==0 marks EOF.
*/
struct elmnt {