Lines Matching refs:pSec
490 osl_TProfileSection* pSec; in osl_readProfileString() local
532 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_readProfileString()
533 (NoEntry < pSec->m_NoEntries) && in osl_readProfileString()
534 ((pStr = strchr(pProfile->m_Lines[pSec->m_Entries[NoEntry].m_Line], in osl_readProfileString()
653 osl_TProfileSection* pSec; in osl_writeProfileString() local
698 if ((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) == NULL) in osl_writeProfileString()
724 pSec = &pProfile->m_Sections[pProfile->m_NoSections - 1]; in osl_writeProfileString()
725 NoEntry = pSec->m_NoEntries; in osl_writeProfileString()
733 if (NoEntry >= pSec->m_NoEntries) in osl_writeProfileString()
735 if (pSec->m_NoEntries > 0) in osl_writeProfileString()
736 i = pSec->m_Entries[pSec->m_NoEntries - 1].m_Line + 1; in osl_writeProfileString()
738 i = pSec->m_Line + 1; in osl_writeProfileString()
741 (! addEntry(pProfile, pSec, i, pStr, strlen(pszEntry)))) in osl_writeProfileString()
759 i = pSec->m_Entries[NoEntry].m_Line; in osl_writeProfileString()
762 setEntry(pProfile, pSec, NoEntry, i, pProfile->m_Lines[i], strlen(pszEntry)); in osl_writeProfileString()
841 osl_TProfileSection* pSec; in osl_removeProfileEntry() local
887 if (((pSec = findEntry(pProfile, pszSection, pszEntry, &NoEntry)) != NULL) && in osl_removeProfileEntry()
888 (NoEntry < pSec->m_NoEntries)) in osl_removeProfileEntry()
890 removeLine(pProfile, pSec->m_Entries[NoEntry].m_Line); in osl_removeProfileEntry()
891 removeEntry(pSec, NoEntry); in osl_removeProfileEntry()
892 if (pSec->m_NoEntries == 0) in osl_removeProfileEntry()
894 removeLine(pProfile, pSec->m_Line); in osl_removeProfileEntry()
897 if ((pSec->m_Line > 0) && (pProfile->m_Lines[pSec->m_Line - 1][0] == '\0')) in osl_removeProfileEntry()
898 removeLine(pProfile, pSec->m_Line - 1); in osl_removeProfileEntry()
900 removeSection(pProfile, pSec); in osl_removeProfileEntry()
927 osl_TProfileSection* pSec; in osl_getProfileSectionEntries() local
978 if ((pSec = findEntry(pProfile, pszSection, "", &NoEntry)) != NULL) in osl_getProfileSectionEntries()
982 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
984 if ((n + pSec->m_Entries[i].m_Len + 1) < MaxLen) in osl_getProfileSectionEntries()
986 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in osl_getProfileSectionEntries()
987 [pSec->m_Entries[i].m_Offset], pSec->m_Entries[i].m_Len); in osl_getProfileSectionEntries()
988 n += pSec->m_Entries[i].m_Len; in osl_getProfileSectionEntries()
1000 for (i = 0; i < pSec->m_NoEntries; i++) in osl_getProfileSectionEntries()
1001 n += pSec->m_Entries[i].m_Len + 1; in osl_getProfileSectionEntries()
1028 osl_TProfileSection* pSec; in osl_getProfileSections() local
1077 pSec = &pProfile->m_Sections[i]; in osl_getProfileSections()
1079 if ((n + pSec->m_Len + 1) < MaxLen) in osl_getProfileSections()
1081 strncpy(&pszBuffer[n], &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], in osl_getProfileSections()
1082 pSec->m_Len); in osl_getProfileSections()
1083 n += pSec->m_Len; in osl_getProfileSections()
1596 osl_TProfileSection* pSec; in insertLine() local
1605 pSec = &pProfile->m_Sections[i]; in insertLine()
1607 if (pSec->m_Line >= LineNo) in insertLine()
1608 pSec->m_Line++; in insertLine()
1610 for (n = 0; n < pSec->m_NoEntries; n++) in insertLine()
1611 if (pSec->m_Entries[n].m_Line >= LineNo) in insertLine()
1612 pSec->m_Entries[n].m_Line++; in insertLine()
1632 osl_TProfileSection* pSec; in removeLine() local
1644 pSec = &pProfile->m_Sections[i]; in removeLine()
1646 if (pSec->m_Line > LineNo) in removeLine()
1647 pSec->m_Line--; in removeLine()
1649 for (n = 0; n < pSec->m_NoEntries; n++) in removeLine()
1650 if (pSec->m_Entries[n].m_Line > LineNo) in removeLine()
1651 pSec->m_Entries[n].m_Line--; in removeLine()
1821 osl_TProfileSection* pSec=NULL; in findEntry() local
1830 pSec = &pProfile->m_Sections[n]; in findEntry()
1831 if ((Len == pSec->m_Len) && in findEntry()
1832 (strncasecmp(Section, &pProfile->m_Lines[pSec->m_Line][pSec->m_Offset], pSec->m_Len) in findEntry()
1844 *pNoEntry = pSec->m_NoEntries; in findEntry()
1846 for (i = 0; i < pSec->m_NoEntries; i++) in findEntry()
1848 pStr = &pProfile->m_Lines[pSec->m_Entries[i].m_Line] in findEntry()
1849 [pSec->m_Entries[i].m_Offset]; in findEntry()
1850 if ((Len == pSec->m_Entries[i].m_Len) && in findEntry()
1851 (strncasecmp(Entry, pStr, pSec->m_Entries[i].m_Len) in findEntry()
1860 pSec = NULL; in findEntry()
1862 return (pSec); in findEntry()