irctk

libircclient binding for scripts
git clone https://a3nm.net/git/irctk/
Log | Files | Refs | README

commit d912eeee3c04b80bf71670de1043d1515a9e2943
parent bbdc66ab6cd19db978cd349076f829b0e69a64fd
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Fri, 27 Jul 2012 22:27:18 +0200

improve debug

Diffstat:
irctk.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/irctk.c b/irctk.c @@ -736,6 +736,7 @@ void push_one(fifo_set *s, char *fl, char *dest, char *l, f->queue[f->tl].is_sendable = 0; *fifoidx = c; *lineidx = f->tl; + debug("pushed one, returning next dep %d %d", *fifoidx, *lineidx); f->tl++; f->tl %= LINE_BUFFER; } @@ -743,7 +744,7 @@ void push_one(fifo_set *s, char *fl, char *dest, char *l, void set_last_idxes(fifo_set *s, char *chan, int fifoidx, int lineidx) { int c = index_of_chan(s, chan); fifo *f = &(s->fifos[c]); - debug("set_last_ptr %d %d for \"%s\" ioc %d position %d", fifoidx, lineidx, + debug("set_last_idxes %d %d for \"%s\" ioc %d position %d", fifoidx, lineidx, f->queue[(f->tl - 1 + LINE_BUFFER) % LINE_BUFFER].line, c, (f->tl - 1 + LINE_BUFFER) % LINE_BUFFER); f->queue[(f->tl - 1 + LINE_BUFFER) % LINE_BUFFER].next_dep_fifoidx = fifoidx; f->queue[(f->tl - 1 + LINE_BUFFER) % LINE_BUFFER].next_dep_lineidx = lineidx;