Changeset 42938 for trunk/Ohana/src/opihi/lib.shell/command.c
- Timestamp:
- Nov 12, 2025, 4:47:51 PM (6 months ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/command.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/command.c
r30614 r42938 36 36 /* solve math expresions, assign variable, if needed. any entry in line of the form {foo} 37 37 * returns value or tmp vector / buffer */ 38 line = parse (&status, line); /* line is freed here, new one allocated */ 38 line = parse (&status, line); 39 /* NOTE: line is freed here, new one allocated. This is NOT freed by the 'quit' command */ 39 40 if (!status) goto escape; 40 41 … … 42 43 *outline = line; 43 44 45 // this value is not freed by 'quit' (called as command below) 44 46 argv = parse_commands (line, &argc); 45 47 if (argc == 0) { … … 50 52 51 53 /* save the original values of argv since command may modify the array */ 54 // this value is not freed by 'quit' (called as command below) 52 55 ALLOCATE (targv, char *, argc); 53 56 for (i = 0; i < argc; i++) targv[i] = argv[i];
Note:
See TracChangeset
for help on using the changeset viewer.
