Replace the Error() object with an error() function which takes fmt

formatspecs, making for much cleaner code. Reformatted everything.

This actually happened in multiple steps but then I corrupted my local
repository and I had to recover from the working tree.
This commit is contained in:
dg
2023-05-09 20:59:44 +00:00
parent bfa0846ad0
commit 466c3c34e5
168 changed files with 5722 additions and 5135 deletions

View File

@@ -45,15 +45,15 @@ static void testLeafname()
static void testUnhex()
{
AssertThat(unhex(""), Equals(""));
AssertThat(unhex("foo"), Equals("foo"));
AssertThat(unhex("f%20o"), Equals("f o"));
AssertThat(unhex(""), Equals(""));
AssertThat(unhex("foo"), Equals("foo"));
AssertThat(unhex("f%20o"), Equals("f o"));
}
static void testUnbcd()
{
AssertThat(unbcd(0x1234), Equals(1234));
AssertThat(unbcd(0x87654321), Equals(87654321));
AssertThat(unbcd(0x1234), Equals(1234));
AssertThat(unbcd(0x87654321), Equals(87654321));
}
int main(void)
@@ -63,7 +63,7 @@ int main(void)
testRightTrim();
testTrim();
testLeafname();
testUnhex();
testUnbcd();
testUnhex();
testUnbcd();
return 0;
}