rename swab to avoid conflict with string.h

This commit is contained in:
Michael Martin 2016-01-24 00:10:35 -08:00
parent c2dff5c4c3
commit d2d8ab6bfc
2 changed files with 3 additions and 3 deletions

View File

@ -725,7 +725,7 @@ subValueKind(valueType *leftOperand, valueType *rightOperand)
}
int
swab(int i)
swabInt(int i)
{
return(((i & 0xFF) << 8) | ((i & 0xFF00) >> 8));
}
@ -733,7 +733,7 @@ swab(int i)
valueType *
swabValue(valueType *value)
{
return(newValue(value->kindOfValue, swab(value->value), value->
return(newValue(value->kindOfValue, swabInt(value->value), value->
addressMode));
}

View File

@ -36,7 +36,7 @@ valueKindType opValueKind(valueType *leftOperand, valueType *rightOperand);
bool relocatableValue(valueType *address);
valueKindType selectValueKind(valueType *leftOperand, valueType *rightOperand);
valueKindType subValueKind(valueType *leftOperand, valueType *rightOperand);
int swab(int i);
int swabInt(int i);
valueType *swabValue(valueType *value);
valueKindType unopValueKind(valueType *operand);
void valueField(symbolTableEntryType *symbol, valueType *value);