Changeset 42942 for trunk/Ohana/src/opihi/cmd.basic/quit.c
- Timestamp:
- Nov 12, 2025, 5:00:47 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/cmd.basic/quit.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/cmd.basic/quit.c
r14449 r42942 3 3 int quit (int argc, char **argv) { 4 4 5 int state; 5 int N, state; 6 7 int VERBOSE = FALSE; 8 if ((N = get_argument (argc, argv, "-verbose"))) { 9 remove_argument (N, &argc, argv); 10 VERBOSE = TRUE; 11 } 12 if ((N = get_argument (argc, argv, "-v"))) { 13 remove_argument (N, &argc, argv); 14 VERBOSE = TRUE; 15 } 6 16 7 17 cleanup (); … … 18 28 # endif 19 29 30 if (VERBOSE) { 31 ohana_memcheck (TRUE); 32 ohana_memdump (TRUE); 33 ohana_memdump_strings_file (stderr, TRUE); 34 } 35 20 36 exit (state); 37 } 21 38 22 } 39 /* values which cannot be freed on quit: 40 41 parse.c:329 (reallocated command line) 42 parse_commands.c:33 (command argv array) 43 command.c:52 (command targv array) 44 command.c:15 (copy of command line) 45 46 */
Note:
See TracChangeset
for help on using the changeset viewer.
