IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 31, 2005, 1:04:22 PM (21 years ago)
Author:
eugene
Message:

cleanups so -Wall -Werror succeed, some .h reorgs

File:
1 edited

Legend:

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

    r3211 r4689  
    77# define opihi_rcfile ".pcontrolrc"
    88
    9 void InitPclient ();
    10 void InitBasic ();
    11 
    12 void welcome () {
    13   fprintf (stderr, "\n");
    14   fprintf (stderr, "Welcome to %s - %s\n\n", opihi_name, opihi_description);
    15 }
    16 
    17 void gotsignal (int signum) {
    18   fprintf (stderr, "got signal : %d\n", signum);
    19   return;
    20 }
    21 
    229/* program-dependent initialization */
    2310void initialize (int argc, char **argv) {
    2411 
    25   FILE *f;
    26 
    2712  auto_break = TRUE;
    2813
     
    4429  /* load the commands used by this implementation */
    4530  InitBasic ();
     31  InitData ();
    4632  InitOutfile ();
    4733  InitPclient ();
     
    5541  set_str_variable ("PROMPT", opihi_prompt);
    5642  set_str_variable ("RCFILE", opihi_rcfile);
     43# ifdef HELPDIR_DEFAULT
     44  set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT));
     45# endif
    5746
    5847  /* ignore the history file.  to change this, see, eg, mana.c */
     
    6453}
    6554
     55/* standard welcome message */
     56void welcome () {
     57  fprintf (stderr, "\n");
     58  fprintf (stderr, "Welcome to %s - %s\n\n", opihi_name, opihi_description);
     59}
     60
    6661/* add program-dependent exit functions here */
    6762void cleanup () {
    6863  return;
    6964}
     65
     66void gotsignal (int signum) {
     67  fprintf (stderr, "got signal : %d\n", signum);
     68  return;
     69}
     70
Note: See TracChangeset for help on using the changeset viewer.