X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=debug.c;h=ac57aa5a50076469a51bedc0bd243a862c262a64;hp=7d498c77eaa36d6fce4650d995222d449bd482ce;hb=a48737de123e304866212f5382d6fa4174d496a0;hpb=daf2f61a3664329ae7f9609e1e14da2b8780fd10 diff --git a/debug.c b/debug.c index 7d498c7..ac57aa5 100644 --- a/debug.c +++ b/debug.c @@ -18,7 +18,7 @@ static int siztab[4] = { 3, 5, 9, 9 }; // -// Print 'c' Visibly +// Print 'c' visibly // int visprt(char c) { @@ -115,7 +115,6 @@ int fudump(CHUNK * ch) } else { -// printf("`%s' ;\n", (*p.sy)->sname); printf("`%s' ;", (*p.sy)->sname); p.sy++; } @@ -152,11 +151,8 @@ int mudump(void) for(mch=firstmch; mch!=NULL; mch=mch->mcnext) { - printf("mch=$%08X mcptr=$%08X mcalloc=$%X mcused=$%X\n", - (uint32_t)mch, - (mch->mcptr.lw), - mch->mcalloc, - (mch->mcused)); + printf("mch=$%p mcptr=$%08X mcalloc=$%X mcused=$%X\n", + mch, (mch->mcptr.lw), mch->mcalloc, (mch->mcused)); p = mch->mcptr; @@ -191,12 +187,14 @@ int mudump(void) // -// Dump memory from 'start' for 'count' bytes; `flg' is the following ORed together: +// Dump memory from 'start' for 'count' bytes; `flg' is the following ORed +// together: // 0 - bytes // 1 - words // 2 - longwords // -// if `base' is not -1, then print it at the start of each line, incremented accordingly. +// if `base' is not -1, then print it at the start of each line, incremented +// accordingly. // int mdump(char * start, LONG count, int flg, LONG base) { @@ -246,8 +244,8 @@ int mdump(char * start, LONG count, int flg, LONG base) base += 1 << (flg & 3); } - // Print remaining bit of ascii; the hairy expression computes the number of - // spaces to print to make the ascii line up nicely. + // Print remaining bit of ASCII; the hairy expression computes the number + // of spaces to print to make the ASCII line up nicely. if (j != i) { k = ((16 - (i - j)) / (1 << (flg & 3))) * siztab[flg & 3]; @@ -336,7 +334,7 @@ int dumptok(TOKEN * tk) // -// Dump Everything +// Dump everything // int dump_everything(void) { @@ -359,7 +357,7 @@ int dump_everything(void) printf("\nMarks:\n"); mudump(); // Dump marks - printf("Total memory allocated=$%X\n", amemtot); +// printf("Total memory allocated=$%X\n", amemtot); return 0; }