diff options
Diffstat (limited to 'trunk/source/macro.h')
-rw-r--r-- | trunk/source/macro.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/trunk/source/macro.h b/trunk/source/macro.h new file mode 100644 index 0000000000..9266ae3c26 --- /dev/null +++ b/trunk/source/macro.h @@ -0,0 +1,40 @@ +/* + * File: macro.cc + * Summary: Crude macro-capability + * Written by: Juho Snellman <jsnell@lyseo.edu.ouka.fi> + * + * Change History (most recent first): + * + * <2> 6/25/02 JS Removed old cruft + * <1> -/--/-- JS Created + */ + +#ifdef USE_MACROS + +#ifndef MACRO_H +#define MACRO_H + +#ifndef MACRO_CC + +#undef getch +#define getch() getchm() + +#endif + +int getchm(void); // keymaps applied (ie for prompts) +int getch_with_command_macros(void); // keymaps and macros (ie for commands) + +void flush_input_buffer( int reason ); + +void macro_add_query(void); +int macro_init(void); +void macro_save(void); + +#endif + +#else + +#define getch_with_command_macros() getch() +#define flush_input_buffer(XXX) ; + +#endif |