Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match decl parameter names (fixes #75) #76

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/formatter.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ asciiPrintProduct(
const int* const powers,
const int count,
char* const buf,
const size_t max,
const size_t size,
IdGetter getId);
static int
latin1PrintProduct(
const ut_unit* const* const basicUnits,
const int* const powers,
const int count,
char* const buf,
const size_t max,
const size_t size,
IdGetter getId);
static int
utf8PrintProduct(
const ut_unit* const* const basicUnits,
const int* const powers,
const int count,
char* const buf,
const size_t max,
const size_t size,
IdGetter getId);

static ut_visitor formatter;
Expand Down
10 changes: 5 additions & 5 deletions lib/unitAndId.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ uaiNew(
*/
void
uaiFree(
UnitAndId* const entry)
UnitAndId* const node)
{
if (entry != NULL) {
free(entry->id);
ut_free(entry->unit);
free(entry);
if (node != NULL) {
free(node->id);
ut_free(node->unit);
free(node);
}
}