Skip to content

Commit

Permalink
Module names more strict
Browse files Browse the repository at this point in the history
  • Loading branch information
infradig committed Aug 26, 2024
1 parent 58e1200 commit 7a248be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/bif_bboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static bool bif_bb_b_put_2(query *q)
m = find_module(q->pl, C_STR(q, p1_m));

if (!m)
m = module_create(q->pl, C_STR(q, p1_m));
return throw_error(q, p1_m, p1_ctx, "existence_error", "module");
} else
m = q->pl->global_bb ? q->pl->user_m : q->st.m;

Expand Down Expand Up @@ -101,7 +101,7 @@ static bool bif_bb_put_2(query *q)
m = find_module(q->pl, C_STR(q, p1_m));

if (!m)
m = module_create(q->pl, C_STR(q, p1_m));
return throw_error(q, p1_m, p1_ctx, "existence_error", "module");
} else
m = q->pl->global_bb ? q->pl->user_m : q->st.m;

Expand Down Expand Up @@ -158,7 +158,7 @@ static bool bif_bb_get_2(query *q)
m = find_module(q->pl, C_STR(q, p1_m));

if (!m)
m = module_create(q->pl, C_STR(q, p1_m));
return throw_error(q, p1_m, p1_ctx, "existence_error", "module");
} else
m = q->pl->global_bb ? q->pl->user_m : q->st.m;

Expand Down Expand Up @@ -227,7 +227,7 @@ static bool bif_bb_delete_2(query *q)
m = find_module(q->pl, C_STR(q, p1_m));

if (!m)
m = module_create(q->pl, C_STR(q, p1_m));
return throw_error(q, p1_m, p1_ctx, "existence_error", "module");
} else
m = q->pl->global_bb ? q->pl->user_m : q->st.m;

Expand Down Expand Up @@ -295,7 +295,7 @@ static bool bif_bb_update_3(query *q)
m = find_module(q->pl, C_STR(q, p1_m));

if (!m)
m = module_create(q->pl, C_STR(q, p1_m));
return throw_error(q, p1_m, p1_ctx, "existence_error", "module");
} else
m = q->pl->global_bb ? q->pl->user_m : q->st.m;

Expand Down

0 comments on commit 7a248be

Please sign in to comment.