Lines Matching refs:LineNo
151 static sal_Char* insertLine(osl_TProfileImpl* pProfile, const sal_Char* Line, sal_uInt32 LineNo);
152 static void removeLine(osl_TProfileImpl* pProfile, sal_uInt32 LineNo);
1563 static sal_Char* insertLine(osl_TProfileImpl* pProfile, const sal_Char* Line, sal_uInt32 LineNo) in insertLine() argument
1591 LineNo = LineNo > pProfile->m_NoLines ? pProfile->m_NoLines : LineNo; in insertLine()
1593 if (LineNo < pProfile->m_NoLines) in insertLine()
1598 memmove(&pProfile->m_Lines[LineNo + 1], &pProfile->m_Lines[LineNo], in insertLine()
1599 (pProfile->m_NoLines - LineNo) * sizeof(sal_Char *)); in insertLine()
1607 if (pSec->m_Line >= LineNo) in insertLine()
1611 if (pSec->m_Entries[n].m_Line >= LineNo) in insertLine()
1618 pProfile->m_Lines[LineNo] = strdup(Line); in insertLine()
1620 return (pProfile->m_Lines[LineNo]); in insertLine()
1623 static void removeLine(osl_TProfileImpl* pProfile, sal_uInt32 LineNo) in removeLine() argument
1625 if (LineNo < pProfile->m_NoLines) in removeLine()
1627 free(pProfile->m_Lines[LineNo]); in removeLine()
1628 pProfile->m_Lines[LineNo]=NULL; in removeLine()
1629 if (pProfile->m_NoLines - LineNo > 1) in removeLine()
1634 memmove(&pProfile->m_Lines[LineNo], &pProfile->m_Lines[LineNo + 1], in removeLine()
1635 (pProfile->m_NoLines - LineNo - 1) * sizeof(sal_Char *)); in removeLine()
1646 if (pSec->m_Line > LineNo) in removeLine()
1650 if (pSec->m_Entries[n].m_Line > LineNo) in removeLine()
1656 pProfile->m_Lines[LineNo] = NULL; in removeLine()