/* Save relevant info on a linked list of SAVE structures.  */
int ecPushRtfState(RTF_Context *ctx)
/* Save relevant info on a linked list of SAVE structures.  */
int ecPushRtfState(RTF_Context *ctx)
{
    SAVE *psaveNew = malloc(sizeof(SAVE));
    if (!psaveNew)
        return ecStackOverflow;
    psaveNew->pNext = ctx->psave;
    psaveNew->chp = ctx->chp;
    psaveNew->pap = ctx->pap;
    psaveNew->sep = ctx->sep;
    psaveNew->dop = ctx->dop;
    psaveNew->rds = ctx->rds;
    psaveNew->ris = ctx->ris;
    ctx->ris = risNorm;
    ctx->psave = psaveNew;
    ctx->cGroup++;
    return ecOK;
}