Home | History | Annotate | Download | only in ksh

Lines Matching refs:macro

188     unsigned char	*buf;	/* pointer to macro(s) being expanded */
191 static struct macro_state macro;
207 if (macro.p) {
208 c = *macro.p++;
209 /* end of current macro? */
212 if (*macro.p++)
719 /* Don't save state in middle of macro.. */
720 if (is_undoable(*cmd) && !macro.p) {
748 if ((p = (char *) macro.p))
752 /* insert alias into macro buffer */
754 olen = !macro.p ? 2
755 : macro.len - (macro.p - macro.buf);
759 if (macro.p) {
760 memcpy(nbuf + nlen, macro.p, olen);
761 afree(macro.buf, APERM);
767 macro.p = macro.buf = (unsigned char *) nbuf;
768 macro.len = nlen;
2176 if (macro.p) {
2177 afree(macro.buf, APERM);
2178 memset((char *) &macro, 0, sizeof(macro));