aboutsummaryrefslogtreecommitdiff
path: root/src/scdbg.c
diff options
context:
space:
mode:
authorSkip Montanaro <[email protected]>2021-02-16 20:14:16 -0600
committerSkip Montanaro <[email protected]>2021-02-16 20:14:16 -0600
commitc2587c76f1b416cdbecb979e54941933246bf856 (patch)
treebb61ee9128075ce22af4eafa232f13c2e5a07896 /src/scdbg.c
parentd90761a005b24018ae237bf551515772a1de656f (diff)
downloadpython-0.9.1-patched-QoL-c2587c76f1b416cdbecb979e54941933246bf856.tar.xz
python-0.9.1-patched-QoL-c2587c76f1b416cdbecb979e54941933246bf856.zip
starting over
Diffstat (limited to 'src/scdbg.c')
-rw-r--r--src/scdbg.c222
1 files changed, 111 insertions, 111 deletions
diff --git a/src/scdbg.c b/src/scdbg.c
index 4510896..077dfc3 100644
--- a/src/scdbg.c
+++ b/src/scdbg.c
@@ -2,12 +2,12 @@
Copyright 1991 by Stichting Mathematisch Centrum, Amsterdam, The
Netherlands.
- All Rights Reserved
+ All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Stichting Mathematisch
Centrum or CWI not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
@@ -29,7 +29,7 @@ void xPrintNum(Num)
TscOperand Num;
{
- printf(" %ld",(long)Num);
+ printf(" %ld",(long)Num);
}
void xPrintFlags(Flags)
@@ -37,116 +37,116 @@ TscOperand Flags;
{
long x;
- x = (long)Flags;
- x = x & 0x0000000F;
- if (x == H_EXTRA) printf(" h_extra");
- if (x == H_SIZE) printf(" h_size");
- if (x == H_OFFSET) printf(" h_offset");
- if (x == H_PORT) printf(" h_port");
- if (x == H_PRIV) printf(" h_priv");
- if (x == PSEUDOFIELD) printf(" h_port and h_priv");
- x = (long)Flags;
- if (x & NOSIGN) printf(" unsigned");
- if (x & INT32) printf(" int32");
+ x = (long)Flags;
+ x = x & 0x0000000F;
+ if (x == H_EXTRA) printf(" h_extra");
+ if (x == H_SIZE) printf(" h_size");
+ if (x == H_OFFSET) printf(" h_offset");
+ if (x == H_PORT) printf(" h_port");
+ if (x == H_PRIV) printf(" h_priv");
+ if (x == PSEUDOFIELD) printf(" h_port and h_priv");
+ x = (long)Flags;
+ if (x & NOSIGN) printf(" unsigned");
+ if (x & INT32) printf(" int32");
}
void xPrintCode(Opcode)
TscOpcode Opcode;
{
- switch (Opcode) {
-
- case BufSize: printf("BufSize");
- break;
-
- case Trans: printf("Trans");
- break;
-
- case TTupleS: printf("TTupleS");
- break;
-
- case Unpack: printf("Unpack");
- break;
-
- case AilWord: printf("AilWord");
- break;
-
- case ListS: printf("ListS");
- break;
-
- case StringS: printf("StringS");
- break;
-
- case PutFS: printf("PutFS");
- break;
-
- case TStringSeq: printf("TStringSeq");
- break;
-
- case TStringSlt: printf("TStringSlt");
- break;
-
- case PutVS: printf("PutVS");
- break;
-
- case TListSeq: printf("TListSeq");
- break;
-
- case TListSlt: printf("TListSlt");
- break;
-
- case LoopPut: printf("LoopPut");
- break;
-
- case EndLoop: printf("EndLoop");
- break;
-
- case PutI: printf("PutI");
- break;
-
- case PutC: printf("PutC");
- break;
-
- case Dup: printf("Dup");
- break;
-
- case Pop: printf("Pop");
- break;
-
- case Align: printf("Align");
- break;
-
- case Pack: printf("Pack");
- break;
-
- case GetVS: printf("GetVS");
- break;
-
- case LoopGet: printf("LoopGet");
- break;
-
- case GetFS: printf("GetFS");
- break;
-
- case GetI: printf("GetI");
- break;
-
- case GetC: printf("GetC");
- break;
-
- case PushI: printf("PushI");
- break;
-
- case MarshTC: printf("MarshTC");
- break;
-
- case UnMarshTC: printf("UnMarshTC");
- break;
-
- case Equal: printf("Equal");
- break;
-
- default: printf("Unknown opcode %04x",(int)Opcode);
- break;
- }
+ switch (Opcode) {
+
+ case BufSize: printf("BufSize");
+ break;
+
+ case Trans: printf("Trans");
+ break;
+
+ case TTupleS: printf("TTupleS");
+ break;
+
+ case Unpack: printf("Unpack");
+ break;
+
+ case AilWord: printf("AilWord");
+ break;
+
+ case ListS: printf("ListS");
+ break;
+
+ case StringS: printf("StringS");
+ break;
+
+ case PutFS: printf("PutFS");
+ break;
+
+ case TStringSeq: printf("TStringSeq");
+ break;
+
+ case TStringSlt: printf("TStringSlt");
+ break;
+
+ case PutVS: printf("PutVS");
+ break;
+
+ case TListSeq: printf("TListSeq");
+ break;
+
+ case TListSlt: printf("TListSlt");
+ break;
+
+ case LoopPut: printf("LoopPut");
+ break;
+
+ case EndLoop: printf("EndLoop");
+ break;
+
+ case PutI: printf("PutI");
+ break;
+
+ case PutC: printf("PutC");
+ break;
+
+ case Dup: printf("Dup");
+ break;
+
+ case Pop: printf("Pop");
+ break;
+
+ case Align: printf("Align");
+ break;
+
+ case Pack: printf("Pack");
+ break;
+
+ case GetVS: printf("GetVS");
+ break;
+
+ case LoopGet: printf("LoopGet");
+ break;
+
+ case GetFS: printf("GetFS");
+ break;
+
+ case GetI: printf("GetI");
+ break;
+
+ case GetC: printf("GetC");
+ break;
+
+ case PushI: printf("PushI");
+ break;
+
+ case MarshTC: printf("MarshTC");
+ break;
+
+ case UnMarshTC: printf("UnMarshTC");
+ break;
+
+ case Equal: printf("Equal");
+ break;
+
+ default: printf("Unknown opcode %04x",(int)Opcode);
+ break;
+ }
}