\doxysection{cerr.\+h}
\label{cerr_8h_source}\index{include/cerr.h@{include/cerr.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ YACASL2\_CERR\_H\_INCLUDED}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ YACASL2\_CERR\_H\_INCLUDED}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <stdbool.h>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <stdio.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <stdlib.h>}}
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#include\ <string.h>}}
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <assert.h>}}
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <stdbool.h>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ "{}cmem.h"{}}}
\DoxyCodeLine{00011\ }
\DoxyCodeLine{00015\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_CERR\ \{}
\DoxyCodeLine{00016\ \ \ \ \ \textcolor{keywordtype}{int}\ num;\ \ \ \ \ \ \ \ }
\DoxyCodeLine{00017\ \ \ \ \ \textcolor{keywordtype}{char}\ *msg;\ \ \ \ \ \ }
\DoxyCodeLine{00018\ \}\ CERR;}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00023\ \textcolor{keyword}{extern}\ CERR\ *cerr;}
\DoxyCodeLine{00024\ }
\DoxyCodeLine{00028\ \textcolor{keyword}{typedef}\ \textcolor{keyword}{struct\ }\_CERRLIST\ \{}
\DoxyCodeLine{00029\ \ \ \ \ \textcolor{keyword}{struct\ }\_CERRLIST\ *next;\ \ \ \ \ }
\DoxyCodeLine{00030\ \ \ \ \ CERR\ *cerr;\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ }
\DoxyCodeLine{00031\ \}\ CERRLIST;}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00036\ \textcolor{keyword}{extern}\ CERRLIST\ *cerrlist;}
\DoxyCodeLine{00037\ }
\DoxyCodeLine{00038\ \textcolor{keyword}{enum}\ \{}
\DoxyCodeLine{00039\ \ \ \ \ CERRSTRSIZE\ =\ 10,\ \ \ \ }
\DoxyCodeLine{00040\ \ \ \ \ CERRMSGSIZE\ =\ 70,\ \ \ \ }
\DoxyCodeLine{00041\ \};}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00047\ \textcolor{keywordtype}{void}\ cerr\_init();}
\DoxyCodeLine{00048\ }
\DoxyCodeLine{00056\ \textcolor{keywordtype}{void}\ addcerrlist(\textcolor{keywordtype}{int}\ cerrc,\ CERR\ cerrv[]);}
\DoxyCodeLine{00057\ }
\DoxyCodeLine{00062\ \textcolor{keywordtype}{void}\ printcerrlist();}
\DoxyCodeLine{00063\ }
\DoxyCodeLine{00070\ \textcolor{keywordtype}{void}\ setcerr(\textcolor{keywordtype}{int}\ num,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *str);}
\DoxyCodeLine{00071\ }
\DoxyCodeLine{00079\ \textcolor{keywordtype}{char}\ *getcerrmsg(\textcolor{keywordtype}{int}\ num);}
\DoxyCodeLine{00080\ }
\DoxyCodeLine{00085\ \textcolor{keywordtype}{void}\ freecerr();}
\DoxyCodeLine{00086\ \textcolor{preprocessor}{\#endif}}
\end{DoxyCode}