Changeset 5919 for trunk/Ohana/src/opihi/mana/mana.c
- Timestamp:
- Jan 5, 2006, 6:55:37 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/mana/mana.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/mana/mana.c
r4714 r5919 8 8 9 9 /* program-dependent initialization */ 10 void initialize(int argc, char **argv) {10 void program_init (int argc, char **argv) { 11 11 12 12 auto_break = TRUE; … … 24 24 set_str_variable ("PROMPT", opihi_prompt); 25 25 set_str_variable ("RCFILE", opihi_rcfile); 26 26 27 # ifdef HELPDIR_DEFAULT 27 28 set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT)); 28 29 # endif 29 30 30 { /* check history file permission */31 FILE *f;32 f = fopen (opihi_history, "a");33 if (f == NULL) /* no current history file here */34 fprintf (stderr, "can't save history.\n");35 else36 fclose (f);37 stifle_history (200);38 read_history (opihi_history);39 }40 41 signal (SIGINT, SIG_IGN);42 31 return; 43 32 }
Note:
See TracChangeset
for help on using the changeset viewer.
