Lines Matching refs:pSec

461 	osl_TProfileSection* pSec;  in osl_readProfileString()  local
484 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_readProfileString()
485 (NoEntry < pSec->m_NoEntries) && in osl_readProfileString()
486 ((pStr = strchr(pProfile->m_Lines[pSec->m_Entries[NoEntry].m_Line], in osl_readProfileString()
604 osl_TProfileSection* pSec; in osl_writeProfileString() local
624 if ((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) == NULL) in osl_writeProfileString()
644 pSec = &pProfile->m_Sections[pProfile->m_NoSections - 1]; in osl_writeProfileString()
645 NoEntry = pSec->m_NoEntries; in osl_writeProfileString()
653 if (NoEntry >= pSec->m_NoEntries) in osl_writeProfileString()
655 if (pSec->m_NoEntries > 0) in osl_writeProfileString()
656 i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1; in osl_writeProfileString()
658 i = pSec->m_Line + 1; in osl_writeProfileString()
661 (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) in osl_writeProfileString()
674 i = pSec->m_Entries[NoEntry].m_Line; in osl_writeProfileString()
677 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
751 osl_TProfileSection* pSec; in osl_removeProfileEntry() local
774 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_removeProfileEntry()
775 (NoEntry < pSec->m_NoEntries)) in osl_removeProfileEntry()
777 removeLine(pProfile, pSec->m_Entries[NoEntry].m_Line); in osl_removeProfileEntry()
778 removeEntry(pSec, NoEntry); in osl_removeProfileEntry()
779 if (pSec->m_NoEntries == 0) in osl_removeProfileEntry()
781 removeLine(pProfile, pSec->m_Line); in osl_removeProfileEntry()
784 if ((pSec->m_Line > 0) && (pProfile->m_Lines[pSec->m_Line - 1][0] == '\0')) in osl_removeProfileEntry()
785 removeLine(pProfile, pSec->m_Line - 1); in osl_removeProfileEntry()
787 removeSection(pProfile, pSec); in osl_removeProfileEntry()
814 osl_TProfileSection* pSec; in osl_getProfileSectionEntries() local
836 if ((pSec = findEntry(pProfile, pszSection, "", &NoEntry)) != NULL) in osl_getProfileSectionEntries()
840 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
842 if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen) in osl_getProfileSectionEntries()
844 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
845 [pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len); in osl_getProfileSectionEntries()
846 n += pSec->m_Entries[i].m_Len; in osl_getProfileSectionEntries()
858 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
859 n += pSec->m_Entries[i].m_Len + 1; in osl_getProfileSectionEntries()
1104 osl_TProfileSection* pSec; in osl_getProfileSections() local
1116 pSec = &pProfile->m_Sections[i]; in osl_getProfileSections()
1118 if ((n + pSec->m_Len + 1) < MaxLen) in osl_getProfileSections()
1120 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], in osl_getProfileSections()
1121 pSec->m_Len); in osl_getProfileSections()
1122 n += pSec->m_Len; in osl_getProfileSections()
1654 osl_TProfileSection* pSec; in insertLine() local
1663 pSec = &pProfile->m_Sections[i]; in insertLine()
1665 if (pSec->m_Line >= LineNo) in insertLine()
1666 pSec->m_Line++; in insertLine()
1668 for (n = 0; n < pSec->m_NoEntries; n++) in insertLine()
1669 if (pSec->m_Entries[n].m_Line >= LineNo) in insertLine()
1670 pSec->m_Entries[n].m_Line++; in insertLine()
1690 osl_TProfileSection* pSec; in removeLine() local
1702 pSec = &pProfile->m_Sections[i]; in removeLine()
1704 if (pSec->m_Line > LineNo) in removeLine()
1705 pSec->m_Line--; in removeLine()
1707 for (n = 0; n < pSec->m_NoEntries; n++) in removeLine()
1708 if (pSec->m_Entries[n].m_Line > LineNo) in removeLine()
1709 pSec->m_Entries[n].m_Line--; in removeLine()
1880 osl_TProfileSection* pSec = NULL; in findEntry() local
1890 pSec = &pProfile->m_Sections[n]; in findEntry()
1891 if ((Len == pSec->m_Len) && in findEntry()
1892 (strnicmp(Section, &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], pSec->m_Len) in findEntry()
1905 *pNoEntry = pSec->m_NoEntries; in findEntry()
1907 for (i = 0; i < pSec->m_NoEntries; i++) in findEntry()
1909 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1910 [pSec->m_Entries[i].m_Offset]; in findEntry()
1911 if ((Len == pSec->m_Entries[i].m_Len) && in findEntry()
1912 (strnicmp(Entry, pStr, pSec->m_Entries[i].m_Len) in findEntry()
1921 pSec = NULL; in findEntry()
1923 return (pSec); in findEntry()