irctk

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

commit 414f9b84fc6d2db87be9de7546da38a18ebdd8f7
parent 2e14b29b63e05f1d449e3af951765ca50497e950
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed, 11 Jul 2012 22:21:03 +0200

remove old code

Diffstat:
irctk.c | 54------------------------------------------------------
1 file changed, 0 insertions(+), 54 deletions(-)

diff --git a/irctk.c b/irctk.c @@ -587,60 +587,6 @@ int empty_fifo_set(fifo_set *s) { return 1; } -// line pop(fifo *f, fifo_ctrl *c) { -// line result; -// int was_full; -// pthread_mutex_lock(&c->mutex); -// debug("am popping, hd %d tl %d size %d", f->hd, f->tl, size(f)); -// while (empty(f)) { -// debug("wait nonempty"); -// pthread_cond_wait(&c->empty, &c->mutex); -// } -// debug("nonempty"); -// // now fifo isn't empty -// was_full = full(f); -// result = f->queue[f->hd]; -// debug("state POP 0:%s 1:%s 2:%s 3:%s 4:%s\n", -// f->queue[0].line, -// f->queue[1].line, -// f->queue[2].line, -// f->queue[3].line, -// f->queue[4].line -// ); -// debug("popped %s at %d", result.line, f->hd); -// f->hd++; -// f->hd %= LINE_BUFFER; -// if (was_full) -// pthread_cond_signal(&c->full); -// pthread_mutex_unlock(&c->mutex); -// return result; -// } -// -// void push(fifo *f, fifo_ctrl *c, char *fl, char *dest, char *l) { -// int was_empty; -// pthread_mutex_lock(&c->mutex); -// debug("am pushing, hd %d tl %d size %d", f->hd, f->tl, size(f)); -// while (full(f)) -// pthread_cond_wait(&c->full, &c->mutex); -// // now fifo isn't full -// was_empty = empty(f); -// f->queue[f->tl].line = l; -// f->queue[f->tl].full_line = fl; -// debug("pushed %s at %d\n", l, f->tl); -// debug("state PUSH 0:%s 1:%s 2:%s 3:%s 4:%s\n", -// f->queue[0].line, -// f->queue[1].line, -// f->queue[2].line, -// f->queue[3].line, -// f->queue[4].line -// ); -// f->tl++; -// f->tl %= LINE_BUFFER; -// if (was_empty) -// pthread_cond_signal(&c->empty); -// pthread_mutex_unlock(&c->mutex); -// } - void realloc_chans(fifo_set *s) { debug("realloc chans"); s->allocated *= 2;