Changeset 4763 for trunk/Ohana/src/opihi/lib.shell/ListOps.c
- Timestamp:
- Aug 14, 2005, 10:33:53 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/ListOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/ListOps.c
r4714 r4763 126 126 } 127 127 128 int 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 141 int 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 154 int 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 } 128 166 129 167 int is_list (char *line) { … … 135 173 status |= is_for_loop (line); 136 174 status |= is_loop (line); 175 status |= is_task (line); 176 status |= is_task_exit (line); 177 status |= is_task_exec (line); 137 178 138 179 return (status);
Note:
See TracChangeset
for help on using the changeset viewer.
