Added a warning message if attempting to extract an empty cell,

so that it is not so mysterious as to why no output was generated.
This commit is contained in:
Tim Edwards 2023-04-28 09:24:04 -04:00
parent c4124b033f
commit 79dc621626
2 changed files with 8 additions and 1 deletions

View File

@ -1 +1 @@
8.3.396
8.3.397

View File

@ -379,6 +379,13 @@ ExtAll(rootUse)
extDefListFunc(rootUse, &defList);
/* Sanity check---print wrning if there is nothing to extract */
if (defList == (LinkedDef *)NULL)
{
TxError("Warning: There is nothing here to extract.\n");
return;
}
/* Now reverse the list onto a stack such that the bottommost cell */
/* is the first to be extracted, and so forth back up to the top. */