Mercurial > hg > Members > kono > nitros9-code
view 3rdparty/packages/ed/optpat.c @ 2494:98e7cb7b3dda
Prevents RS-232 bit at $FF20 from being toggled. RG
author | robertgault |
---|---|
date | Sun, 04 Apr 2010 02:17:24 +0000 |
parents | bef1844de0dc |
children |
line wrap: on
line source
/* optpat.c */ #include <stdio.h> #include "tools.h" #include "ed.h" TOKEN *oldpat; TOKEN * optpat() { char delim, str[MAXPAT], *cp; delim = *inptr++; cp = str; while (*inptr != delim && *inptr != NL) { if (*inptr == ESCAPE && inptr[1] != NL) *cp++ = *inptr++; *cp++ = *inptr++; } *cp = EOS; if (*str == EOS) return(oldpat); if (oldpat) unmakepat(oldpat); oldpat = getpat(str); return(oldpat); }