Update some whitespace after Hungarian prefixes were removed

Keep the parameter alignment and 100-char line limit
This commit is contained in:
Rangi
2021-04-19 16:47:39 -04:00
parent 6d0a3c75e9
commit 459773b3f0
3 changed files with 16 additions and 18 deletions

View File

@@ -22,8 +22,8 @@ struct Expression {
bool isKnown; // Whether the expression's value is known bool isKnown; // Whether the expression's value is known
bool isSymbol; // Whether the expression represents a symbol bool isSymbol; // Whether the expression represents a symbol
uint8_t *rpn; // Array of bytes serializing the RPN expression uint8_t *rpn; // Array of bytes serializing the RPN expression
uint32_t rpnCapacity; // Size of the `tRPN` buffer uint32_t rpnCapacity; // Size of the `rpn` buffer
uint32_t rpnLength; // Used size of the `tRPN` buffer uint32_t rpnLength; // Used size of the `rpn` buffer
uint32_t rpnPatchSize; // Size the expression will take in the obj file uint32_t rpnPatchSize; // Size the expression will take in the obj file
}; };

View File

@@ -189,8 +189,7 @@ void rpn_BankSection(struct Expression *expr, char const *sectionName)
if (section && section->bank != (uint32_t)-1) { if (section && section->bank != (uint32_t)-1) {
expr->val = section->bank; expr->val = section->bank;
} else { } else {
makeUnknown(expr, "Section \"%s\"'s bank is not known", makeUnknown(expr, "Section \"%s\"'s bank is not known", sectionName);
sectionName);
size_t nameLen = strlen(sectionName) + 1; /* Room for NUL! */ size_t nameLen = strlen(sectionName) + 1; /* Room for NUL! */
uint8_t *ptr = reserveSpace(expr, nameLen + 1); uint8_t *ptr = reserveSpace(expr, nameLen + 1);
@@ -361,16 +360,14 @@ void rpn_BinaryOp(enum RPNCommand op, struct Expression *expr,
if (src2->val >= 32) if (src2->val >= 32)
warning(WARNING_SHIFT_AMOUNT, warning(WARNING_SHIFT_AMOUNT,
"Shifting left by large amount %" PRId32 "\n", "Shifting left by large amount %" PRId32 "\n", src2->val);
src2->val);
expr->val = op_shift_left(src1->val, src2->val); expr->val = op_shift_left(src1->val, src2->val);
break; break;
case RPN_SHR: case RPN_SHR:
if (src1->val < 0) if (src1->val < 0)
warning(WARNING_SHIFT, "Shifting right negative value %" warning(WARNING_SHIFT,
PRId32 "\n", "Shifting right negative value %" PRId32 "\n", src1->val);
src1->val);
if (src2->val < 0) if (src2->val < 0)
warning(WARNING_SHIFT_AMOUNT, warning(WARNING_SHIFT_AMOUNT,
@@ -392,8 +389,9 @@ void rpn_BinaryOp(enum RPNCommand op, struct Expression *expr,
fatalerror("Division by zero\n"); fatalerror("Division by zero\n");
if (src1->val == INT32_MIN && src2->val == -1) { if (src1->val == INT32_MIN && src2->val == -1) {
warning(WARNING_DIV, "Division of %" PRId32 " by -1 yields %" warning(WARNING_DIV,
PRId32 "\n", INT32_MIN, INT32_MIN); "Division of %" PRId32 " by -1 yields %" PRId32 "\n",
INT32_MIN, INT32_MIN);
expr->val = INT32_MIN; expr->val = INT32_MIN;
} else { } else {
expr->val = op_divide(src1->val, src2->val); expr->val = op_divide(src1->val, src2->val);