Changeset 4689 for trunk/Ohana/src/opihi/pclient/pclient.c
- Timestamp:
- Jul 31, 2005, 1:04:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/pclient/pclient.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/pclient/pclient.c
r3211 r4689 7 7 # define opihi_rcfile ".pcontrolrc" 8 8 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 22 9 /* program-dependent initialization */ 23 10 void initialize (int argc, char **argv) { 24 11 25 FILE *f;26 27 12 auto_break = TRUE; 28 13 … … 44 29 /* load the commands used by this implementation */ 45 30 InitBasic (); 31 InitData (); 46 32 InitOutfile (); 47 33 InitPclient (); … … 55 41 set_str_variable ("PROMPT", opihi_prompt); 56 42 set_str_variable ("RCFILE", opihi_rcfile); 43 # ifdef HELPDIR_DEFAULT 44 set_str_variable ("HELPDIR", MACRO_NAME(HELPDIR_DEFAULT)); 45 # endif 57 46 58 47 /* ignore the history file. to change this, see, eg, mana.c */ … … 64 53 } 65 54 55 /* standard welcome message */ 56 void welcome () { 57 fprintf (stderr, "\n"); 58 fprintf (stderr, "Welcome to %s - %s\n\n", opihi_name, opihi_description); 59 } 60 66 61 /* add program-dependent exit functions here */ 67 62 void cleanup () { 68 63 return; 69 64 } 65 66 void 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.
