librfn/protothreads: Automatically store the protothread pointer.
authorDaniel Thompson <daniel@redfelineninja.org.uk>
Sat, 12 Jan 2013 16:07:01 +0000 (16:07 +0000)
committerDaniel Thompson <daniel@redfelineninja.org.uk>
Sat, 12 Jan 2013 16:07:01 +0000 (16:07 +0000)
commit365d814aba36ff7cbc981916f0e07a8e55e65331
tree8e195d2e1829d7f6a50397753d76711e7cff19b5
parentce65e4761fd0a196695664fd9c6ced9aadcb1bde
librfn/protothreads: Automatically store the protothread pointer.

This simplifies the improves error reporting (thanks to the
symbol name used) and simplies the API.

Signed-off-by: Daniel Thompson <daniel@redfelineninja.org.uk>
src/librfn/include/librfn/protothreads.h
src/librfn/tests/protothreadstest.c