Lines Matching refs:pSection

159 static void                 setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection,
162 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection,
164 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry);
166 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection
1723 static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection, in setEntry() argument
1728 pSection->m_Entries[NoEntry].m_Line = Line; in setEntry()
1729 pSection->m_Entries[NoEntry].m_Offset = Entry - pProfile->m_Lines[Line]; in setEntry()
1730 pSection->m_Entries[NoEntry].m_Len = Len; in setEntry()
1735 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection, in addEntry() argument
1738 if (pSection != NULL) in addEntry()
1740 if (pSection->m_NoEntries >= pSection->m_MaxEntries) in addEntry()
1742 if (pSection->m_Entries == NULL) in addEntry()
1744 pSection->m_MaxEntries = ENTRIES_INI; in addEntry()
1745 pSection->m_Entries = (osl_TProfileEntry *)malloc( in addEntry()
1746 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1750 pSection->m_MaxEntries += ENTRIES_ADD; in addEntry()
1751 pSection->m_Entries = (osl_TProfileEntry *)realloc(pSection->m_Entries, in addEntry()
1752 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1755 if (pSection->m_Entries == NULL) in addEntry()
1757 pSection->m_NoEntries = 0; in addEntry()
1758 pSection->m_MaxEntries = 0; in addEntry()
1763 pSection->m_NoEntries++; in addEntry()
1766 setEntry(pProfile, pSection, pSection->m_NoEntries - 1, Line, in addEntry()
1775 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry) in removeEntry() argument
1777 if (NoEntry < pSection->m_NoEntries) in removeEntry()
1779 if (pSection->m_NoEntries - NoEntry > 1) in removeEntry()
1781 memmove(&pSection->m_Entries[NoEntry], in removeEntry()
1782 &pSection->m_Entries[NoEntry + 1], in removeEntry()
1783 (pSection->m_NoEntries - NoEntry - 1) * sizeof(osl_TProfileEntry)); in removeEntry()
1784 pSection->m_Entries[pSection->m_NoEntries - 1].m_Line=0; in removeEntry()
1785 pSection->m_Entries[pSection->m_NoEntries - 1].m_Offset=0; in removeEntry()
1786 pSection->m_Entries[pSection->m_NoEntries - 1].m_Len=0; in removeEntry()
1789 pSection->m_NoEntries--; in removeEntry()
1844 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection) in removeSection() argument
1848 if ((Section = pSection - pProfile->m_Sections) < pProfile->m_NoSections) in removeSection()
1850 free (pSection->m_Entries); in removeSection()
1851 pSection->m_Entries=0; in removeSection()
1864 pSection->m_Entries = 0; in removeSection()