Changeset 40777
- Timestamp:
- Jun 2, 2019, 5:36:14 PM (7 years ago)
- Location:
- branches/eam_branches/ohana.20190329/src/opihi/cmd.basic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/cmd.basic/init.c
r40522 r40777 73 73 {1, "??", list_vars, "list variables *"}, 74 74 {1, "#", nop, "a NOP function"}, 75 {1, "##", nop, "a NOP function"}, 76 {1, "###", nop, "a NOP function"}, 75 77 {1, "local", local, "define local variables"}, 76 78 {1, "macro", macro, "deal with the macros *"}, -
branches/eam_branches/ohana.20190329/src/opihi/cmd.basic/memory.c
r14177 r40777 5 5 6 6 if (argc < 2) goto usage; 7 8 if (!strcasecmp (argv[1], "max-lines")) { 9 if (argc != 3) goto usage; 10 int MaxLines = atoi(argv[2]); 11 ohana_memdump_set_maxlines (MaxLines); 12 return TRUE; 13 } 7 14 8 15 if (!strcasecmp (argv[1], "all")) { … … 43 50 } 44 51 52 if (!strncasecmp ("strings", argv[1], strlen(argv[1]))) { 53 ohana_memdump_strings_file (stderr, FALSE); 54 return (TRUE); 55 } 56 45 57 usage: 46 gprint (GP_ERR, "USAGE: memory (all/leaks)\n"); 58 gprint (GP_ERR, "USAGE: memory (mode) [-max-lines]\n"); 59 gprint (GP_ERR, "USAGE: memory (max-lines) (N)\n"); 60 gprint (GP_ERR, " mode options: all, leaks, check, checkfree, variables, vectors, buffers, macros, commands, strings\n"); 47 61 return (FALSE); 48 62 }
Note:
See TracChangeset
for help on using the changeset viewer.
