mirror of
https://github.com/Museum-of-Art-and-Digital-Entertainment/macross.git
synced 2025-02-16 11:30:27 +00:00
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
|
||||
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));
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user