Skip to content

Commit

Permalink
disasm: switch is a keyword too
Browse files Browse the repository at this point in the history
  • Loading branch information
Benabik committed Nov 16, 2011
1 parent 4d3f730 commit 5124ad7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/disasm.winxed
Expand Up @@ -65,7 +65,7 @@ namespace PACT {
var directory = packfile.get_directory();
for ( string name in directory ) {
var segment = directory[name];
switch(typeof(segment)) {
switch (typeof(segment)) {
case 'PackfileAnnotations':
if ( annotations != null )
die("Got more than one annotation segment");
Expand Down Expand Up @@ -185,7 +185,7 @@ function print_arg(var packfile, int type, int arg, int pc) {
if (keyd) print( '[' );

if (cons) {
switch(type) {
switch (type) {
case TYPE_INT:
print(arg);
break;
Expand All @@ -212,7 +212,7 @@ function print_arg(var packfile, int type, int arg, int pc) {
}
} else {
string reg;
switch(type) {
switch (type) {
case TYPE_INT: reg = '$I'; break;
case TYPE_STR: reg = '$S'; break;
case TYPE_PMC: reg = '$P'; break;
Expand Down Expand Up @@ -261,7 +261,7 @@ function bytecode_segment(var packfile) {
print( ' ' );

int j, args;
switch(name) {
switch (name) {
case 'set_args':
case 'get_results':
case 'get_params':
Expand Down

0 comments on commit 5124ad7

Please sign in to comment.