[svn:parrot] r46590 - trunk/examples/tools
NotFound at svn.parrot.org
NotFound at svn.parrot.org
Thu May 13 17:42:15 UTC 2010
Author: NotFound
Date: Thu May 13 17:42:14 2010
New Revision: 46590
URL: https://trac.parrot.org/parrot/changeset/46590
Log:
minor fixes and clean hard tabs in example pbc_checker
Modified:
trunk/examples/tools/pbc_checker.cpp
Modified: trunk/examples/tools/pbc_checker.cpp
==============================================================================
--- trunk/examples/tools/pbc_checker.cpp Thu May 13 16:26:19 2010 (r46589)
+++ trunk/examples/tools/pbc_checker.cpp Thu May 13 17:42:14 2010 (r46590)
@@ -554,6 +554,9 @@
cout << " Sub: " << sub;
}
break;
+ case 0x00:
+ cout << " None";
+ break;
default:
throw runtime_error("Invalid fixup");
}
@@ -617,10 +620,10 @@
for (opcode n= 0; n < size; ++n) {
opcode code = read_opcode(pbcfile);
- if ((n % 8) == 0)
- cout << '\n' << setfill('0') << setw (7) << n << ':';
- else
- cout << ' ';
+ if ((n % 8) == 0)
+ cout << '\n' << setfill('0') << setw (7) << n << ':';
+ else
+ cout << ' ';
cout << setfill('0') << setw(opcode_size * 2) << code;
}
cout << dec << '\n';
@@ -732,7 +735,7 @@
}
else {
flags = read_opcode(pbcfile);
- charset = read_opcode(pbcfile);
+ charset = read_opcode(pbcfile);
}
cout << "Flags: 0x" << hex << setw(6) << flags << dec;
@@ -767,7 +770,7 @@
}
cout << '\n';
- for (unsigned int i= length; i % opcode_size; ++i) {
+ for (unsigned int i= full; i % opcode_size; ++i) {
pbcfile.ignore(1);
}
}
More information about the parrot-commits
mailing list