Remove obsolete kludge

This commit is contained in:
Peter De Wachter 2016-01-23 20:16:21 +01:00
parent e10a35e3e1
commit deb5d06fba
4 changed files with 4 additions and 12 deletions

View File

@ -57,10 +57,6 @@ typedef selectionListType ySelectedOperandBodyType;
typedef selectionListType preSelectedOperandBodyType;
#define BlockOperandBodyType anyOldThing /* kludge */
/* doing above right confuses compiler as it is a forward reference inside
yon union: */
typedef union {
expressionOperandBodyType *expressionUnion;
immediateOperandBodyType *immediateUnion;
@ -76,5 +72,5 @@ typedef union {
ySelectedOperandBodyType *ySelectedUnion;
preSelectedOperandBodyType *preSelectedUnion;
stringOperandBodyType *stringUnion;
BlockOperandBodyType *blockUnion;
blockOperandBodyType *blockUnion;
} operandBodyType;

View File

@ -69,14 +69,10 @@ typedef nullType uspRegisterOperandBodyType;
typedef nullType controlRegisterOperandBodyType;
#define BlockOperandBodyType anyOldThing /* kludge */
/* doing above right confuses compiler as it is a forward reference inside
yon union: */
typedef union {
expressionOperandBodyType *expressionUnion;
stringOperandBodyType *stringUnion;
BlockOperandBodyType *blockUnion;
blockOperandBodyType *blockUnion;
dRegisterOperandBodyType *dRegisterUnion;
aRegisterOperandBodyType *aRegisterUnion;
aRegisterIndirectOperandBodyType *aRegisterIndirectUnion;

View File

@ -125,7 +125,7 @@ buildOperand(operandKindType kindOfOperand, anyOldThing *arg)
break;
case BLOCK_OPND:
result->theOperand.blockUnion = (BlockOperandBodyType *) arg;
result->theOperand.blockUnion = (blockOperandBodyType *) arg;
break;
default:

View File

@ -59,7 +59,7 @@ buildOperand(kindOfOperand, arg1, arg2, arg3, arg4)
break;
case BLOCK_OPND:
result->theOperand.blockUnion = (BlockOperandBodyType *) arg1;
result->theOperand.blockUnion = (blockOperandBodyType *) arg1;
break;
case D_REGISTER_OPND: