コード例 #1
0
ファイル: search.c プロジェクト: mahyarap/nano
/* Abort the current search or replace.  Clean up by displaying the main
 * shortcut list, updating the screen if the mark was on before, and
 * decompiling the compiled regular expression we used in the last
 * search, if any. */
void search_replace_abort(void)
{
    display_main_list();
    focusing = FALSE;
#ifndef NANO_TINY
    if (openfile->mark_set)
	edit_refresh();
#endif
#ifdef HAVE_REGEX_H
    regexp_cleanup();
#endif
}
コード例 #2
0
ファイル: regexp.c プロジェクト: netdna/proftpd
static void regexp_restart_ev(const void *event_data, void *user_data) {
  regexp_cleanup();
  return;
}