Changeset 33849 for branches/eam_branches/ipp-20120405/Ohana
- Timestamp:
- May 8, 2012, 1:10:28 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120405/Ohana/src/opihi
- Files:
-
- 1 added
- 3 edited
-
cmd.basic/Makefile (modified) (1 diff)
-
cmd.basic/init.c (modified) (2 diffs)
-
cmd.basic/run_foreach.c (added)
-
lib.shell/ListOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120405/Ohana/src/opihi/cmd.basic/Makefile
r31635 r33849 44 44 $(SRC)/quit.$(ARCH).o \ 45 45 $(SRC)/run_for.$(ARCH).o \ 46 $(SRC)/run_foreach.$(ARCH).o \ 46 47 $(SRC)/run_if.$(ARCH).o \ 47 48 $(SRC)/run_while.$(ARCH).o \ -
branches/eam_branches/ipp-20120405/Ohana/src/opihi/cmd.basic/init.c
r27255 r33849 31 31 int quit PROTO((int, char **)); 32 32 int run_for PROTO((int, char **)); 33 int run_foreach PROTO((int, char **)); 33 34 int run_if PROTO((int, char **)); 34 35 int run_while PROTO((int, char **)); … … 81 82 {1, "quit", quit, "exit program *"}, 82 83 {1, "for", run_for, "for loop"}, 84 {1, "foreach", run_foreach, "foreach loop"}, 83 85 {1, "if", run_if, "logical cases *"}, 84 86 {1, "while", run_while, "while loop"}, -
branches/eam_branches/ipp-20120405/Ohana/src/opihi/lib.shell/ListOps.c
r33662 r33849 116 116 117 117 status = !strcmp (comm, "for"); 118 free (comm); 119 return (status); 120 } 121 122 int is_foreach_loop (char *line) { 123 124 int status; 125 char *comm; 126 127 comm = thisword (line); 128 if (comm == (char *) NULL) return (FALSE); 129 130 status = !strcmp (comm, "foreach"); 118 131 free (comm); 119 132 return (status); … … 266 279 status |= is_macro_create (line); 267 280 status |= is_for_loop (line); 281 status |= is_foreach_loop (line); 268 282 status |= is_list_data (line); 269 283 status |= is_loop (line);
Note:
See TracChangeset
for help on using the changeset viewer.
