nsGlyphTable* glyphTable;
nsGlyphTable* glyphTable = nsnull;
PreferredFontEnumCallback(const nsString& aFamily, PRBool aGeneric, void *aData){  PRInt32 i;  nsAutoString fontName;  nsGlyphTable* glyphTable;  PreferredFontEnumContext* context = (PreferredFontEnumContext*)aData;  // see if the table already exists in mTableList[0..mDefaultCount-1]  PRBool found = PR_FALSE;  PRInt32 count = gGlyphTableList->Count();  for (i = 0; i < count; i++) {    glyphTable = gGlyphTableList->TableAt(i);    glyphTable->GetPrimaryFontName(fontName);    if (fontName.EqualsIgnoreCase(aFamily)) {      found = PR_TRUE;      break;    }  }  if (!found) {    // the table wasn't found in the default sharable list,    // see if it exists in the additional list    count = gGlyphTableList->AdditionalCount();    for (i = 0; i < count; i++) {      glyphTable = gGlyphTableList->AdditionalTableAt(i);      glyphTable->GetPrimaryFontName(fontName);      if (fontName.EqualsIgnoreCase(aFamily)) {        found = PR_TRUE;        break;      }    }    if (!found) {      // the table wasn't found in the additional list either, add it now      glyphTable = gGlyphTableList->AddAdditionalGlyphTable(aFamily);      if (!glyphTable)        return PR_FALSE; // stop in low-memory situations    }  }  // Add the table to the list of preferred extension tables for this char  if (!context->mFontCount) {    // this is the first font to be retained, remember    // the starting index where the first glyphTable was appended    PRInt32 startingIndex = gGlyphTableList->Count(PR_TRUE);    if (context->mIsFontForParts) {      NS_ASSERTION(nsGlyphTableList::gParts[context->mCharIndex] == -1,                   "remove duplicate property in mathfont.properties");      nsGlyphTableList::gParts[context->mCharIndex] = startingIndex;    }    else {      NS_ASSERTION(nsGlyphTableList::gVariants[context->mCharIndex] == -1,                   "remove duplicate property in mathfont.properties");      nsGlyphTableList::gVariants[context->mCharIndex] = startingIndex;    }  }  gGlyphTableList->AppendTable(glyphTable);  ++context->mFontCount;  return PR_TRUE; // don't stop}