]> git.draconx.ca Git - cdecl99.git/blobdiff - src/cdecl99.h
libcdecl: Avoid snprintf for integer conversions.
[cdecl99.git] / src / cdecl99.h
index 7ed24072a9826d4ba3c0dae3c3077b09c8e1c3b6..d5928d4b8e3bd189879826c3d33459f973e8cad5 100644 (file)
 #include <gettext.h>
 #define _(x) gettext(x)
 
-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 };
 
-void print_error(const char *fmt, ...);
+int run_command(const char *line, int batch);
+int run_command_cdecl(const char *s, int input_mode, int output_mode);
 
-#if HAVE_RL_ADD_HISTORY && HAVE_READLINE_HISTORY_H
-#  include <readline/history.h>
-#else
-static inline void add_history(const char *str)
-{
-}
-#endif
+void print_error(const char *fmt, ...);
 
 #endif