Changeset 5900 for trunk/Ohana/src/opihi/dvo/dvo.c
- Timestamp:
- Jan 4, 2006, 10:00:28 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/dvo.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/dvo.c
r5451 r5900 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; … … 18 18 InitDVO (); 19 19 20 if ( SetCATDIR (NULL, TRUE)) {20 if (!SetCATDIR (NULL, TRUE)) { 21 21 fprintf (stderr, "CATDIR is not defined\n"); 22 22 } … … 28 28 set_str_variable ("PROMPT", opihi_prompt); 29 29 set_str_variable ("RCFILE", opihi_rcfile); 30 30 31 # ifdef HELPDIR_DEFAULT 31 32 set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT)); 32 33 # endif 33 34 34 { /* check history file permission */35 FILE *f;36 f = fopen (opihi_history, "a");37 if (f == NULL) /* no current history file here */38 fprintf (stderr, "can't save history.\n");39 else40 fclose (f);41 stifle_history (200);42 read_history (opihi_history);43 }44 45 signal (SIGINT, SIG_IGN);46 35 return; 47 36 }
Note:
See TracChangeset
for help on using the changeset viewer.
