PROMPT_DESCRIPTOR
p->desc.type = PROMPT_DESCRIPTOR;
((d)->type == PROMPT_DESCRIPTOR ? (struct prompt *)(d) : NULL)