//------------------------------------------------------ Edit Tags ----------------------------------
static void changeTags P((int n));
-static char *tagsText;
+static char *tagsText, **resPtr;
static int
NewTagsCallback (int n)
{
- if(!bookUp) ReplaceTags(tagsText, &gameInfo);
+ if(bookUp) SaveToBook(tagsText), DisplayBook(currentMove); else
+ if(resPtr) { ASSIGN(*resPtr, tagsText); } else
+ ReplaceTags(tagsText, &gameInfo);
return 1;
}
{
GenericReadout(tagsOptions, 1);
if(bookUp) SaveToBook(tagsText), DisplayBook(currentMove); else
+ if(resPtr) { ASSIGN(*resPtr, tagsText); } else
ReplaceTags(tagsText, &gameInfo);
}
void
EditTagsPopUp (char *tags, char **dest)
{ // wrapper to preserve old name used in back-end
+ resPtr = dest;
NewTagsPopup(tags, NULL);
}