Lines Matching refs:macro
893 #define AEDIT &aedit /* area for kill ring and macro defns */
961 static char *(*x_atab)[X_TABSZ]; /* macro definitions */
969 static char *macroptr; /* bind key macro active? */
1314 /* avoid bind key macro recursion */
2568 x_bind(const char *s SMALLP(bool macro))
2615 if (macro) {
3598 unsigned char *buf; /* pointer to macro(s) being expanded */
3601 static struct macro_state macro;
3653 if (macro.p) {
3654 c = (unsigned char)*macro.p++;
3655 /* end of current macro? */
3658 if (*macro.p++)
4188 /* Don't save state in middle of macro.. */
4189 if (is_undoable(*cmd) && !macro.p) {
4217 if ((p = (char *)macro.p))
4221 /* insert alias into macro buffer */
4223 olen = !macro.p ? 2 :
4224 macro.len - (macro.p - macro.buf);
4232 if (macro.p) {
4233 memcpy(nbuf + nlen, macro.p, olen);
4234 afree(macro.buf, AEDIT);
4240 macro.p = macro.buf = (unsigned char *)nbuf;
4241 macro.len = nlen;
5570 if (macro.p) {
5571 afree(macro.buf, AEDIT);
5572 memset((char *)¯o, 0, sizeof(macro));