\doxysection{Using dwarf\+\_\+srclines\+\_\+b() and linecontext }
\hypertarget{group__exampled}{}\label{group__exampled}\index{Using dwarf\_srclines\_b() and linecontext@{Using dwarf\_srclines\_b() and linecontext}}


Example two using \doxylink{group__linetable_ga5f1fb23700b5e73a10f677fe8fed8e87}{dwarf\+\_\+srclines\+\_\+b()}, \doxylink{group__linetable_ga5769d3ef2d18c562d31c200b30f06e63}{dwarf\+\_\+linesrc()}.  


Example two using \doxylink{group__linetable_ga5f1fb23700b5e73a10f677fe8fed8e87}{dwarf\+\_\+srclines\+\_\+b()}, \doxylink{group__linetable_ga5769d3ef2d18c562d31c200b30f06e63}{dwarf\+\_\+linesrc()}. 

\begin{DoxySeeAlso}{See also}
\doxylink{group__linetable_ga5f1fb23700b5e73a10f677fe8fed8e87}{dwarf\+\_\+srclines\+\_\+b} 

\doxylink{group__linetable_gae91613a2346bcf056798f91a93180632}{dwarf\+\_\+srclines\+\_\+from\+\_\+linecontext} 

\doxylink{group__linetable_ga4231571b299fb4673ff17e4f35118fb1}{dwarf\+\_\+srclines\+\_\+dealloc\+\_\+b}
\end{DoxySeeAlso}

\begin{DoxyCode}{0}
\DoxyCodeLine{*/}
\DoxyCodeLine{\textcolor{keywordtype}{int}\ exampled(\doxymbox{\hyperlink{group__allstructs_gac2ba1e1c1b70a3191506b414195ca807}{Dwarf\_Debug}}\ dbg,\doxymbox{\hyperlink{group__allstructs_ga3a3759c3047d78dba9f590d5e5893be5}{Dwarf\_Die}}\ somedie,\doxymbox{\hyperlink{group__allstructs_ga8d4fac0e48040b6ca91e06ffda09766a}{Dwarf\_Error}}\ *error)}
\DoxyCodeLine{\{}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\_Signed}}\ \ \ \ \ \ \ count\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_ga6d34d50e7383d139ecd28222ca46bfd9}{Dwarf\_Line\_Context}}\ context\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_gae4486812c6f1ec8cc2ec475149c256c0}{Dwarf\_Line}}\ \ \ \ \ \ \ \ *linebuf\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_gac91d9490d58c8d86a4d5b63ca93ba6dd}{Dwarf\_Signed}}\ \ \ \ \ \ \ i\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__allstructs_gae4486812c6f1ec8cc2ec475149c256c0}{Dwarf\_Line}}\ \ \ \ \ \ \ \ *line;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga52e439e652a1a30277679f64f83cc0fe}{Dwarf\_Small}}\ \ \ \ \ \ \ \ table\_count\ =0;}
\DoxyCodeLine{\ \ \ \ \doxymbox{\hyperlink{group__basicdatatypes_ga5de64bb9627534a24dcbccc327916265}{Dwarf\_Unsigned}}\ \ \ \ \ version\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordtype}{int}\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ sres\ =\ 0;}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ sres\ =\ \doxymbox{\hyperlink{group__linetable_ga5f1fb23700b5e73a10f677fe8fed8e87}{dwarf\_srclines\_b}}(somedie,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&version,\ \&table\_count,\&context,error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (sres\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ sres;}
\DoxyCodeLine{\ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ sres\ =\ \doxymbox{\hyperlink{group__linetable_gae91613a2346bcf056798f91a93180632}{dwarf\_srclines\_from\_linecontext}}(context,}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \&linebuf,\&count,error);}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{if}\ (sres\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \doxymbox{\hyperlink{group__linetable_ga4231571b299fb4673ff17e4f35118fb1}{dwarf\_srclines\_dealloc\_b}}(context);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ sres;}
\DoxyCodeLine{\ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ line\ =\ linebuf;}
\DoxyCodeLine{\ \ \ \ \textcolor{keywordflow}{for}\ (i\ =\ 0;\ i\ <\ count;\ ++line,++i)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}\ *\ filename\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordtype}{int}\ lres\ =\ 0;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \doxymbox{\hyperlink{group__allstructs_gae4486812c6f1ec8cc2ec475149c256c0}{Dwarf\_Line}}\ dline\ =\ linebuf[i];}
\DoxyCodeLine{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ lres\ =\ \doxymbox{\hyperlink{group__linetable_ga5769d3ef2d18c562d31c200b30f06e63}{dwarf\_linesrc}}(dline,\&filename,error);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{keywordflow}{if}\ (lres\ !=\ DW\_DLV\_OK)\ \{}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \doxymbox{\hyperlink{group__linetable_ga4231571b299fb4673ff17e4f35118fb1}{dwarf\_srclines\_dealloc\_b}}(context);}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \ \ \ \ \textcolor{keywordflow}{return}\ lres;}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \}}
\DoxyCodeLine{\ \ \ \ \ \ \ \ \textcolor{comment}{/*\ use\ filename\ }}

\end{DoxyCode}
