]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl99.h
Port to use getline.h from dxcommon.
[cdecl99.git] / src / cdecl99.h
index e1030d44994df369cab205ca93b8271703f464d5..d5928d4b8e3bd189879826c3d33459f973e8cad5 100644 (file)
 #include <gettext.h>
 #define _(x) gettext(x)
 
-void print_block(const char *s, int i, int w);
-int run_command(const char *line, int interactive);
-int run_command_simplify(const char *arg);
-int run_command_explain(const char *arg);
-int run_command_declare(const char *cmdarg);
+enum { INPUT_C, INPUT_ENGLISH };
+enum { OUTPUT_C, OUTPUT_ENGLISH };
 
-#if HAVE_RL_ADD_HISTORY && HAVE_READLINE_HISTORY_H
-#  include <readline/history.h>
-#else
-static inline void add_history(const char *str)
-{
-}
-#endif
+int run_command(const char *line, int batch);
+int run_command_cdecl(const char *s, int input_mode, int output_mode);
+
+void print_error(const char *fmt, ...);
 
 #endif