Lines Matching refs:pSection

153 static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection,
156 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection,
158 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry);
160 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection);
1665 static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection, in setEntry() argument
1670 pSection->m_Entries[NoEntry].m_Line = Line; in setEntry()
1671 pSection->m_Entries[NoEntry].m_Offset = Entry - pProfile->m_Lines[Line]; in setEntry()
1672 pSection->m_Entries[NoEntry].m_Len = Len; in setEntry()
1677 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection, in addEntry() argument
1680 if (pSection != NULL) in addEntry()
1682 if (pSection->m_NoEntries >= pSection->m_MaxEntries) in addEntry()
1684 if (pSection->m_Entries == NULL) in addEntry()
1686 pSection->m_MaxEntries = ENTRIES_INI; in addEntry()
1687 pSection->m_Entries = (osl_TProfileEntry *)malloc( in addEntry()
1688 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1692 pSection->m_MaxEntries += ENTRIES_ADD; in addEntry()
1693 pSection->m_Entries = (osl_TProfileEntry *)realloc(pSection->m_Entries, in addEntry()
1694 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1697 if (pSection->m_Entries == NULL) in addEntry()
1699 pSection->m_NoEntries = 0; in addEntry()
1700 pSection->m_MaxEntries = 0; in addEntry()
1705 pSection->m_NoEntries++; in addEntry()
1708 setEntry(pProfile, pSection, pSection->m_NoEntries - 1, Line, in addEntry()
1717 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry) in removeEntry() argument
1719 if (NoEntry < pSection->m_NoEntries) in removeEntry()
1721 if (pSection->m_NoEntries - NoEntry > 1) in removeEntry()
1723 memmove(&pSection->m_Entries[NoEntry], in removeEntry()
1724 &pSection->m_Entries[NoEntry + 1], in removeEntry()
1725 (pSection->m_NoEntries - NoEntry - 1) * sizeof(osl_TProfileEntry)); in removeEntry()
1726 pSection->m_Entries[pSection->m_NoEntries - 1].m_Line=0; in removeEntry()
1727 pSection->m_Entries[pSection->m_NoEntries - 1].m_Offset=0; in removeEntry()
1728 pSection->m_Entries[pSection->m_NoEntries - 1].m_Len=0; in removeEntry()
1731 pSection->m_NoEntries--; in removeEntry()
1785 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection) in removeSection() argument
1789 if ((Section = pSection - pProfile->m_Sections) < pProfile->m_NoSections) in removeSection()
1791 free (pSection->m_Entries); in removeSection()
1792 pSection->m_Entries=0; in removeSection()
1805 pSection->m_Entries = 0; in removeSection()