|
|
@@ -28,16 +28,7 @@
|
|
|
|
|
|
static void report_error (PRStreamSource *s, int error)
|
|
|
{
|
|
|
- #ifndef NDEBUG
|
|
|
- DEAD_ENTER(s->d_dead)
|
|
|
- #endif
|
|
|
-
|
|
|
- FlowErrorReporter_ReportError(&s->rep, &error);
|
|
|
-
|
|
|
- #ifndef NDEBUG
|
|
|
- ASSERT(DEAD_KILLED)
|
|
|
- DEAD_LEAVE(s->d_dead);
|
|
|
- #endif
|
|
|
+ DEBUGERROR(&s->d_err, FlowErrorReporter_ReportError(&s->rep, &error))
|
|
|
}
|
|
|
|
|
|
static void try_recv (PRStreamSource *s)
|
|
|
@@ -109,16 +100,12 @@ void PRStreamSource_Init (PRStreamSource *s, FlowErrorReporter rep, BPRFileDesc
|
|
|
s->out_avail = -1;
|
|
|
|
|
|
DebugObject_Init(&s->d_obj);
|
|
|
- #ifndef NDEBUG
|
|
|
- DEAD_INIT(s->d_dead);
|
|
|
- #endif
|
|
|
+ DebugError_Init(&s->d_err);
|
|
|
}
|
|
|
|
|
|
void PRStreamSource_Free (PRStreamSource *s)
|
|
|
{
|
|
|
- #ifndef NDEBUG
|
|
|
- DEAD_KILL(s->d_dead);
|
|
|
- #endif
|
|
|
+ DebugError_Free(&s->d_err);
|
|
|
DebugObject_Free(&s->d_obj);
|
|
|
|
|
|
// free output
|