Lines Matching refs:pSection
165 static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection,
168 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection,
170 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry);
172 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection);
1579 static void setEntry(osl_TProfileImpl* pProfile, osl_TProfileSection* pSection, in setEntry() argument
1584 pSection->m_Entries[NoEntry].m_Line = Line; in setEntry()
1585 pSection->m_Entries[NoEntry].m_Offset = Entry - pProfile->m_Lines[Line]; in setEntry()
1586 pSection->m_Entries[NoEntry].m_Len = Len; in setEntry()
1591 static sal_Bool addEntry(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection, in addEntry() argument
1594 if (pSection != NULL) in addEntry()
1596 if (pSection->m_NoEntries >= pSection->m_MaxEntries) in addEntry()
1598 if (pSection->m_Entries == NULL) in addEntry()
1600 pSection->m_MaxEntries = ENTRIES_INI; in addEntry()
1601 pSection->m_Entries = (osl_TProfileEntry *)malloc( in addEntry()
1602 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1606 pSection->m_MaxEntries += ENTRIES_ADD; in addEntry()
1607 pSection->m_Entries = (osl_TProfileEntry *)realloc(pSection->m_Entries, in addEntry()
1608 pSection->m_MaxEntries * sizeof(osl_TProfileEntry)); in addEntry()
1611 if (pSection->m_Entries == NULL) in addEntry()
1613 pSection->m_NoEntries = 0; in addEntry()
1614 pSection->m_MaxEntries = 0; in addEntry()
1619 pSection->m_NoEntries++; in addEntry()
1622 setEntry(pProfile, pSection, pSection->m_NoEntries - 1, Line, in addEntry()
1631 static void removeEntry(osl_TProfileSection *pSection, sal_uInt32 NoEntry) in removeEntry() argument
1633 if (NoEntry < pSection->m_NoEntries) in removeEntry()
1635 if (pSection->m_NoEntries - NoEntry > 1) in removeEntry()
1636 memmove(&pSection->m_Entries[NoEntry], in removeEntry()
1637 &pSection->m_Entries[NoEntry + 1], in removeEntry()
1638 (pSection->m_NoEntries - NoEntry - 1) * sizeof(osl_TProfileEntry)); in removeEntry()
1639 pSection->m_NoEntries--; in removeEntry()
1683 static void removeSection(osl_TProfileImpl* pProfile, osl_TProfileSection *pSection) in removeSection() argument
1687 if ((Section = pSection - pProfile->m_Sections) < pProfile->m_NoSections) in removeSection()
1689 free (pSection->m_Entries); in removeSection()
1697 pSection->m_Entries = 0; in removeSection()