#include ".h"
namespace {
void print_indent( int n ) {
for( int i=0; i<n; i++ ) printf(" ");
}
void ::dump( int indent, Context *ctx ) {
print_indent(indent);
printf("[%02X] ", type ); //);
printf(""); // (sz %i)", getSize( ctx ) );
printf("\n");
indent++;
}
}
if( !
& ) {
}
if( ) {
}
print_indent(indent);
printf(": ");
printf("\n", );
printf("\n", ?:"(nil)");
printf("[]\n");
.dump( indent+1, ctx );
{
printf("[list of s]\n");
*item;
ListItem<>* i;
i = .first();
while( i ) {
item = i->data();
if( item ) {
item->dump(indent+1,ctx);
}
i = i->next();
}
}
printf("(length %i)\n", );
if( && != NULL ) {
int i=0;
while( i< ) {
print_indent( indent+1 );
for( int n=0; n<8 && i<; n++ ) {
printf(" %02X", [i] );
i++;
}
printf("\n");
}
}
ctx-> = ;