IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 14, 2005, 10:33:53 AM (21 years ago)
Author:
eugene
Message:

cleanup up communications for speed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/ListOps.c

    r4714 r4763  
    126126}
    127127
     128int is_task (char *line) {
     129
     130  int status;
     131  char *comm;
     132
     133  comm = thisword (line);
     134  if (comm == (char *) NULL) return (FALSE);
     135
     136  status = !strcmp (comm, "task");
     137  free (comm);
     138  return (status);
     139}
     140
     141int is_task_exit (char *line) {
     142
     143  int status;
     144  char *comm;
     145
     146  comm = thisword (line);
     147  if (comm == (char *) NULL) return (FALSE);
     148
     149  status = !strcmp (comm, "task.exit");
     150  free (comm);
     151  return (status);
     152}
     153
     154int is_task_exec (char *line) {
     155
     156  int status;
     157  char *comm;
     158
     159  comm = thisword (line);
     160  if (comm == (char *) NULL) return (FALSE);
     161
     162  status = !strcmp (comm, "task.exec");
     163  free (comm);
     164  return (status);
     165}
    128166
    129167int is_list (char *line) {
     
    135173  status |= is_for_loop (line);
    136174  status |= is_loop (line);
     175  status |= is_task (line);
     176  status |= is_task_exit (line);
     177  status |= is_task_exec (line);
    137178
    138179  return (status);
Note: See TracChangeset for help on using the changeset viewer.