IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 4, 2006, 10:00:28 PM (21 years ago)
Author:
eugene
Message:

fixes for skyregion, generate

File:
1 edited

Legend:

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

    r5451 r5900  
    88
    99/* program-dependent initialization */
    10 void initialize (int argc, char **argv) {
     10void program_init (int argc, char **argv) {
    1111 
    1212  auto_break = TRUE;
     
    1818  InitDVO ();
    1919
    20   if (SetCATDIR (NULL, TRUE)) {
     20  if (!SetCATDIR (NULL, TRUE)) {
    2121    fprintf (stderr, "CATDIR is not defined\n");
    2222  }
     
    2828  set_str_variable ("PROMPT", opihi_prompt);
    2929  set_str_variable ("RCFILE", opihi_rcfile);
     30
    3031# ifdef HELPDIR_DEFAULT
    3132  set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT));
    3233# endif
    3334
    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     else
    40       fclose (f);
    41     stifle_history (200);
    42     read_history (opihi_history);
    43   }
    44 
    45   signal (SIGINT, SIG_IGN);
    4635  return;
    4736}
Note: See TracChangeset for help on using the changeset viewer.