mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-08 03:41:33 +02:00
More corrections to extresist, which now appears to work if used
with ext2spice without the hierarchy option. More work needed to produce correct hierarchical output and to support extraction devices other than the old "fet" record.
This commit is contained in:
+2
-2
@@ -205,7 +205,7 @@ EFFlatBuildOneLevel(def, flags)
|
||||
if (usecount > 0)
|
||||
efHierSrUses(&efFlatContext, efFlatNodesDeviceless, (ClientData)&usecount);
|
||||
|
||||
if ((usecount == 0) && (efFlatRootUse.use_def->def_devs == NULL))
|
||||
if ((usecount == 0) && (HashGetNumEntries(&efFlatRootUse.use_def->def_devs) == 0))
|
||||
efFlatRootUse.use_def->def_flags |= DEF_NODEVICES;
|
||||
|
||||
/* Record all local nodes */
|
||||
@@ -372,7 +372,7 @@ efFlatNodesDeviceless(hc, cdata)
|
||||
if (newcount > 0)
|
||||
efHierSrUses(hc, efFlatNodesDeviceless, (ClientData)&newcount);
|
||||
|
||||
if ((hc->hc_use->use_def->def_devs == NULL) && (newcount == 0))
|
||||
if ((HashGetNumEntries(&hc->hc_use->use_def->def_devs) == 0) && (newcount == 0))
|
||||
{
|
||||
/* Add all our own nodes to the table */
|
||||
efAddNodes(hc, TRUE);
|
||||
|
||||
Reference in New Issue
Block a user