rename swab to avoid conflict with string.h
This commit is contained in:
parent
c2dff5c4c3
commit
d2d8ab6bfc
|
@ -725,7 +725,7 @@ subValueKind(valueType *leftOperand, valueType *rightOperand)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
swab(int i)
|
swabInt(int i)
|
||||||
{
|
{
|
||||||
return(((i & 0xFF) << 8) | ((i & 0xFF00) >> 8));
|
return(((i & 0xFF) << 8) | ((i & 0xFF00) >> 8));
|
||||||
}
|
}
|
||||||
|
@ -733,7 +733,7 @@ swab(int i)
|
||||||
valueType *
|
valueType *
|
||||||
swabValue(valueType *value)
|
swabValue(valueType *value)
|
||||||
{
|
{
|
||||||
return(newValue(value->kindOfValue, swab(value->value), value->
|
return(newValue(value->kindOfValue, swabInt(value->value), value->
|
||||||
addressMode));
|
addressMode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ valueKindType opValueKind(valueType *leftOperand, valueType *rightOperand);
|
||||||
bool relocatableValue(valueType *address);
|
bool relocatableValue(valueType *address);
|
||||||
valueKindType selectValueKind(valueType *leftOperand, valueType *rightOperand);
|
valueKindType selectValueKind(valueType *leftOperand, valueType *rightOperand);
|
||||||
valueKindType subValueKind(valueType *leftOperand, valueType *rightOperand);
|
valueKindType subValueKind(valueType *leftOperand, valueType *rightOperand);
|
||||||
int swab(int i);
|
int swabInt(int i);
|
||||||
valueType *swabValue(valueType *value);
|
valueType *swabValue(valueType *value);
|
||||||
valueKindType unopValueKind(valueType *operand);
|
valueKindType unopValueKind(valueType *operand);
|
||||||
void valueField(symbolTableEntryType *symbol, valueType *value);
|
void valueField(symbolTableEntryType *symbol, valueType *value);
|
||||||
|
|
Loading…
Reference in New Issue