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/pantasks/psched.c

    r4763 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;
     
    2525  set_str_variable ("PROMPT", opihi_prompt);
    2626  set_str_variable ("RCFILE", opihi_rcfile);
     27
    2728# ifdef HELPDIR_DEFAULT
    2829  set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT));
    2930# endif
    3031
    31   { /* check history file permission */
    32     FILE *f;
    33     f = fopen (opihi_history, "a");
    34     if (f == NULL) /* no current history file here */
    35       fprintf (stderr, "can't save history.\n");
    36     else
    37       fclose (f);
    38     stifle_history (200);
    39     read_history (opihi_history);
    40   }
    41 
    42   signal (SIGINT, SIG_IGN);
    4332  signal (SIGPIPE, gotsignal);
    4433  signal (SIGTSTP, gotsignal);
Note: See TracChangeset for help on using the changeset viewer.