Clean up how a view's base table is defined
New struct empfile member base replaces ef_open_view() parameter base. Cleaner, because the base table is a property of the view, not of how it's used. Use it to clean up verify_fail()'s base table access, and for extra sanity checks in ef_open() and ef_open_view().
This commit is contained in:
parent
2b0b53992f
commit
44f97c3297
5 changed files with 56 additions and 50 deletions
|
@ -110,7 +110,7 @@ ef_open_srv(void)
|
|||
failed |= !ef_open(EF_LOST, 0, -1);
|
||||
failed |= !ef_open(EF_REALM, EFF_MEM, MAXNOC * MAXNOR);
|
||||
if (!failed)
|
||||
failed |= ef_open_view(EF_COUNTRY, EF_NATION);
|
||||
failed |= ef_open_view(EF_COUNTRY);
|
||||
if (failed) {
|
||||
logerror("Missing files, giving up");
|
||||
exit(EXIT_FAILURE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue