IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 5, 2006, 6:55:37 PM (21 years ago)
Author:
eugene
Message:

split init into general and program init, cleaned up open_image, open_graph, and related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/mana/mana.c

    r4714 r5919  
    88
    99/* program-dependent initialization */
    10 void initialize (int argc, char **argv) {
     10void program_init (int argc, char **argv) {
    1111 
    1212  auto_break = TRUE;
     
    2424  set_str_variable ("PROMPT", opihi_prompt);
    2525  set_str_variable ("RCFILE", opihi_rcfile);
     26
    2627# ifdef HELPDIR_DEFAULT
    2728  set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT));
    2829# endif
    2930
    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     else
    36       fclose (f);
    37     stifle_history (200);
    38     read_history (opihi_history);
    39   }
    40 
    41   signal (SIGINT, SIG_IGN);
    4231  return;
    4332}
Note: See TracChangeset for help on using the changeset viewer.