#include "config.h"
#endif
-#if !BUILD_ECOSBOARD
/* see Embedder-HOWTO.txt in Jim Tcl project hosted on BerliOS*/
#define JIM_EMBEDDED
-#endif
/* @todo the inclusion of target.h here is a layering violation */
#include <jtag/jtag.h>
context->output_handler = NULL;
context->output_handler_priv = NULL;
-#if !BUILD_ECOSBOARD
/* Create a jim interpreter if we were not handed one */
if (interp == NULL) {
/* Create an interpreter */
Jim_RegisterCoreCommands(interp);
Jim_InitStaticExtensions(interp);
}
-#endif
+
context->interp = interp;
/* Stick to lowercase for HostOS strings. */
void process_jim_events(struct command_context *cmd_ctx)
{
-#if !BUILD_ECOSBOARD
static int recursion;
if (recursion)
return;
recursion++;
Jim_ProcessEvents(cmd_ctx->interp, JIM_ALL_EVENTS | JIM_DONT_WAIT);
recursion--;
-#endif
}
#define DEFINE_PARSE_NUM_TYPE(name, type, func, min, max) \