version 1.12, 2007/03/29 17:37:15 |
version 1.13, 2008/06/10 02:39:22 |
|
|
#include "key.h" |
#include "key.h" |
#include "macro.h" |
#include "macro.h" |
|
|
int inmacro = FALSE; |
int inmacro = FALSE; /* Macro playback in progess */ |
int macrodef = FALSE; |
int macrodef = FALSE; /* Macro recording in progress */ |
int macrocount = 0; |
int macrocount = 0; |
|
|
struct line *maclhead = NULL; |
struct line *maclhead = NULL; |
|
|
PF funct; |
PF funct; |
|
|
if (macrodef || |
if (macrodef || |
(macrocount >= MAXMACRO && macro[MAXMACRO].m_funct != finishmacro)) |
(macrocount >= MAXMACRO && macro[MAXMACRO - 1].m_funct |
|
!= finishmacro)) { |
|
ewprintf("Macro too long. Aborting."); |
return (FALSE); |
return (FALSE); |
|
} |
|
|
if (macrocount == 0) |
if (macrocount == 0) |
return (TRUE); |
return (TRUE); |