IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 13, 2006, 9:22:35 AM (20 years ago)
Author:
eugene
Message:

working on the client/server interactions for pantasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/init.c

    r4748 r7892  
    8989 
    9090}
     91
     92void InitBasic_PantasksClient () {
     93 
     94  int i;
     95
     96  InitCommands ();
     97  InitMacros ();
     98  InitBuffers ();
     99  InitVectors ();
     100  InitVariables ();
     101  InitLists ();
     102  InitOutfile ();
     103
     104  for (i = 0; i < sizeof (cmds) / sizeof (Command); i++) {
     105    if (!strcmp (cmds[i].name, "quit")) goto valid;
     106    if (!strcmp (cmds[i].name, "exit")) goto valid;
     107    if (!strcmp (cmds[i].name, "exec")) goto valid;
     108    if (!strcmp (cmds[i].name, "!")) goto valid;
     109    continue;
     110
     111  valid:
     112    AddCommand (&cmds[i]);
     113  }
     114}
Note: See TracChangeset for help on using the changeset viewer.