Changeset 14449
- Timestamp:
- Aug 8, 2007, 12:27:44 PM (19 years ago)
- Location:
- trunk/Ohana/src/opihi
- Files:
-
- 3 edited
-
cmd.basic/quit.c (modified) (1 diff)
-
lib.shell/CommandOps.c (modified) (2 diffs)
-
lib.shell/opihi.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/quit.c
r4302 r14449 12 12 } 13 13 14 // the libedit version of readline does not support an incremental write to history file 15 # ifndef RL_READLINE_VERSION 16 history = get_variable("HISTORY"); 17 if (history != NULL) write_history (history); 18 # endif 19 14 20 exit (state); 15 21 -
trunk/Ohana/src/opihi/lib.shell/CommandOps.c
r7917 r14449 1 1 # include "opihi.h" 2 3 // if the user has installed the libedit version of readline, we need to modify a couple symbols: 4 # ifndef RL_READLINE_VERSION 5 # define rl_completion_matches(A,B) completion_matches(A,B) 6 # endif 2 7 3 8 static Command *commands; … … 118 123 matches = (char **) NULL; 119 124 120 if (start == 0) 125 if (start == 0) { 121 126 matches = rl_completion_matches (text, command_generator); 127 } 122 128 123 129 return (matches); -
trunk/Ohana/src/opihi/lib.shell/opihi.c
r13504 r14449 41 41 status = multicommand (line); 42 42 add_history (line); 43 44 // the libedit version of readline does not support an incremental write to history file 45 # ifdef RL_READLINE_VERSION 43 46 if (history != NULL) append_history (1, history); 47 # endif 48 44 49 } 45 50 free (line);
Note:
See TracChangeset
for help on using the changeset viewer.
