Clarify VFP_NULL semantics

parent 5e34d67f
...@@ -201,6 +201,7 @@ VFP_Suck(struct vfp_ctx *vc, void *p, ssize_t *lp) ...@@ -201,6 +201,7 @@ VFP_Suck(struct vfp_ctx *vc, void *p, ssize_t *lp)
vp = vfe->closed; vp = vfe->closed;
} }
vc->vfp_nxt = vfe; vc->vfp_nxt = vfe;
assert(vp != VFP_NULL);
return (vp); return (vp);
} }
......
...@@ -40,7 +40,7 @@ enum vfp_status { ...@@ -40,7 +40,7 @@ enum vfp_status {
VFP_ERROR = -1, VFP_ERROR = -1,
VFP_OK = 0, VFP_OK = 0,
VFP_END = 1, VFP_END = 1,
VFP_NULL = 2, VFP_NULL = 2, // signal bypass, never returned by VFP_Suck()
}; };
typedef enum vfp_status vfp_init_f(VRT_CTX, struct vfp_ctx *, typedef enum vfp_status vfp_init_f(VRT_CTX, struct vfp_ctx *,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment