add_history
if( zResult ) add_history(zResult);
add_history (buf, history);
add_history (cmdline, 0);
void add_history(struct sm_state *sm);