Lines Matching refs:pSec
421 osl_TProfileSection* pSec; in osl_readProfileString() local
444 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_readProfileString()
445 (NoEntry < pSec->m_NoEntries) && in osl_readProfileString()
446 ((pStr = strchr(pProfile->m_Lines[pSec->m_Entries[NoEntry].m_Line], in osl_readProfileString()
559 osl_TProfileSection* pSec; in osl_writeProfileString() local
579 if ((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) == NULL) in osl_writeProfileString()
599 pSec = &pProfile->m_Sections[pProfile->m_NoSections - 1]; in osl_writeProfileString()
600 NoEntry = pSec->m_NoEntries; in osl_writeProfileString()
608 if (NoEntry >= pSec->m_NoEntries) in osl_writeProfileString()
610 if (pSec->m_NoEntries > 0) in osl_writeProfileString()
611 i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1; in osl_writeProfileString()
613 i = pSec->m_Line + 1; in osl_writeProfileString()
616 (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) in osl_writeProfileString()
629 i = pSec->m_Entries[NoEntry].m_Line; in osl_writeProfileString()
632 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
702 osl_TProfileSection* pSec; in osl_removeProfileEntry() local
725 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_removeProfileEntry()
726 (NoEntry < pSec->m_NoEntries)) in osl_removeProfileEntry()
728 removeLine(pProfile, pSec->m_Entries[NoEntry].m_Line); in osl_removeProfileEntry()
729 removeEntry(pSec, NoEntry); in osl_removeProfileEntry()
730 if (pSec->m_NoEntries == 0) in osl_removeProfileEntry()
732 removeLine(pProfile, pSec->m_Line); in osl_removeProfileEntry()
735 if ((pSec->m_Line > 0) && (pProfile->m_Lines[pSec->m_Line - 1][0] == '\0')) in osl_removeProfileEntry()
736 removeLine(pProfile, pSec->m_Line - 1); in osl_removeProfileEntry()
738 removeSection(pProfile, pSec); in osl_removeProfileEntry()
760 osl_TProfileSection* pSec; in osl_getProfileSectionEntries() local
782 if ((pSec = findEntry(pProfile, pszSection, "", &NoEntry)) != NULL) in osl_getProfileSectionEntries()
786 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
788 if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen) in osl_getProfileSectionEntries()
790 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
791 [pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len); in osl_getProfileSectionEntries()
792 n += pSec->m_Entries[i].m_Len; in osl_getProfileSectionEntries()
804 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
805 n += pSec->m_Entries[i].m_Len + 1; in osl_getProfileSectionEntries()
829 osl_TProfileSection* pSec; in osl_getProfileSections() local
841 pSec = &pProfile->m_Sections[i]; in osl_getProfileSections()
843 if ((n + pSec->m_Len + 1) < MaxLen) in osl_getProfileSections()
845 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], in osl_getProfileSections()
846 pSec->m_Len); in osl_getProfileSections()
847 n += pSec->m_Len; in osl_getProfileSections()
1516 osl_TProfileSection* pSec; in insertLine() local
1524 pSec = &pProfile->m_Sections[i]; in insertLine()
1526 if (pSec->m_Line >= LineNo) in insertLine()
1527 pSec->m_Line++; in insertLine()
1529 for (n = 0; n < pSec->m_NoEntries; n++) in insertLine()
1530 if (pSec->m_Entries[n].m_Line >= LineNo) in insertLine()
1531 pSec->m_Entries[n].m_Line++; in insertLine()
1550 osl_TProfileSection* pSec; in removeLine() local
1558 pSec = &pProfile->m_Sections[i]; in removeLine()
1560 if (pSec->m_Line > LineNo) in removeLine()
1561 pSec->m_Line--; in removeLine()
1563 for (n = 0; n < pSec->m_NoEntries; n++) in removeLine()
1564 if (pSec->m_Entries[n].m_Line > LineNo) in removeLine()
1565 pSec->m_Entries[n].m_Line--; in removeLine()
1713 osl_TProfileSection* pSec; in findEntry() local
1723 pSec = &pProfile->m_Sections[n]; in findEntry()
1724 if ((Len == pSec->m_Len) && in findEntry()
1725 (strnicmp(Section, &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], pSec->m_Len) in findEntry()
1738 *pNoEntry = pSec->m_NoEntries; in findEntry()
1740 for (i = 0; i < pSec->m_NoEntries; i++) in findEntry()
1742 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1743 [pSec->m_Entries[i].m_Offset]; in findEntry()
1744 if ((Len == pSec->m_Entries[i].m_Len) && in findEntry()
1745 (strnicmp(Entry, pStr, pSec->m_Entries[i].m_Len) in findEntry()
1754 pSec = NULL; in findEntry()
1756 return (pSec); in findEntry()