Skip to content

Commit

Permalink
EuXLisp: Corrected operation without the readline interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry authored and Henry committed Jan 26, 2011
1 parent 67c50f6 commit 5918cf5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions EuXLisp/euxlInit.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ euxls_xlframe,
euxls_gcmsgs, euxls_gcmsgs,
euxls_arg_list, euxls_arg_list,
euxls_next_methods, euxls_next_methods,
euxls_defextern; euxls_defextern,
euxls_readline;


/// Continuations /// Continuations
euxlValue euxlValue
Expand All @@ -163,10 +164,6 @@ euxlValue euxls_check_ref;
euxlValue euxls_socket_error; euxlValue euxls_socket_error;
#endif #endif


#ifdef READLINE
euxlValue euxls_readline;
#endif

///----------------------------------------------------------------------------- ///-----------------------------------------------------------------------------
/// Functions /// Functions
///----------------------------------------------------------------------------- ///-----------------------------------------------------------------------------
Expand Down Expand Up @@ -417,9 +414,11 @@ void euxcInitSymbols()
euxls_check_ref = euxmInternAndExport("check-ref"); euxls_check_ref = euxmInternAndExport("check-ref");
#endif #endif


#ifdef READLINE
euxls_readline = euxmInternAndExport("*readline*"); euxls_readline = euxmInternAndExport("*readline*");
#ifdef READLINE
euxmSetValue(euxls_readline, euxs_t); euxmSetValue(euxls_readline, euxs_t);
#else
euxmSetValue(euxls_readline, euxmNil);
#endif #endif


// Setup some synonyms // Setup some synonyms
Expand Down
3 changes: 2 additions & 1 deletion EuXLisp/euxlOS.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ int reading;
///----------------------------------------------------------------------------- ///-----------------------------------------------------------------------------
/// Local variables /// Local variables
///----------------------------------------------------------------------------- ///-----------------------------------------------------------------------------
#ifdef READLINE
static char* lbuf; static char* lbuf;

#ifdef READLINE
static char rl_histfile[255]; static char rl_histfile[255];
#endif #endif


Expand Down

0 comments on commit 5918cf5

Please sign in to comment.