\section{lib/common/htmllex.c File Reference}
\label{htmllex_8c}\index{lib/common/htmllex.\-c@{lib/common/htmllex.\-c}}
{\ttfamily \#include \char`\"{}render.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}htmltable.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}htmlparse.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}htmllex.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}cdt.\-h\char`\"{}}\\*
{\ttfamily \#include $<$ctype.\-h$>$}\\*
Include dependency graph for htmllex.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{htmllex_8c__incl}
\end{center}
\end{figure}
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct {\bf lexstate\-\_\-t}
\end{DoxyCompactItemize}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R}~0
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf htmlerror} (const char $\ast$msg)
\item 
{\bf int} {\bf init\-H\-T\-M\-Llexer} (char $\ast$src, {\bf agxbuf} $\ast$xb, {\bf htmlenv\-\_\-t} $\ast$env)
\item 
{\bf int} {\bf clear\-H\-T\-M\-Llexer} ()
\item 
{\bf int} {\bf htmllineno} ()
\item 
{\bf int} {\bf htmllex} ()
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{htmllex.\-c@{htmllex.\-c}!X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R@{X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R}}
\index{X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R@{X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R}!htmllex.c@{htmllex.\-c}}
\subsubsection[{X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R}]{\setlength{\rightskip}{0pt plus 5cm}\#define X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R~0}\label{htmllex_8c_a23470b6fbc11734113a97bb16784f425}


Definition at line 27 of file htmllex.\-c.



Referenced by htmllex().



\subsection{Function Documentation}
\index{htmllex.\-c@{htmllex.\-c}!clear\-H\-T\-M\-Llexer@{clear\-H\-T\-M\-Llexer}}
\index{clear\-H\-T\-M\-Llexer@{clear\-H\-T\-M\-Llexer}!htmllex.c@{htmllex.\-c}}
\subsubsection[{clear\-H\-T\-M\-Llexer}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} clear\-H\-T\-M\-Llexer (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{htmllex_8c_a0324d40a3ccefb84093e3c8133f4f89c}


Definition at line 798 of file htmllex.\-c.



References agxbfree(), lexstate\-\_\-t\-::error, lexstate\-\_\-t\-::lb, and lexstate\-\_\-t\-::warn.



Referenced by parse\-H\-T\-M\-L().

\index{htmllex.\-c@{htmllex.\-c}!htmlerror@{htmlerror}}
\index{htmlerror@{htmlerror}!htmllex.c@{htmllex.\-c}}
\subsubsection[{htmlerror}]{\setlength{\rightskip}{0pt plus 5cm}void htmlerror (
\begin{DoxyParamCaption}
\item[{const char $\ast$}]{msg}
\end{DoxyParamCaption}
)}\label{htmllex_8c_a9290d48ab88f77ae23d8954e3cb0a245}


Definition at line 64 of file htmllex.\-c.



References agerr(), A\-G\-E\-R\-R, lexstate\-\_\-t\-::error, and htmllineno().



Referenced by if(), and switch().

\index{htmllex.\-c@{htmllex.\-c}!htmllex@{htmllex}}
\index{htmllex@{htmllex}!htmllex.c@{htmllex.\-c}}
\subsubsection[{htmllex}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} htmllex (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{htmllex_8c_a8d0954bda8c8d81ae168bbe2d5633169}


Definition at line 1000 of file htmllex.\-c.



References agerr(), A\-G\-E\-R\-R, agxblen, agxbuse, lexstate\-\_\-t\-::currtok, lexstate\-\_\-t\-::currtoklen, lexstate\-\_\-t\-::error, htmllineno(), lexstate\-\_\-t\-::lb, lexstate\-\_\-t\-::mode, lexstate\-\_\-t\-::prevtok, lexstate\-\_\-t\-::prevtoklen, lexstate\-\_\-t\-::ptr, T\-\_\-error, lexstate\-\_\-t\-::tok, and X\-M\-L\-\_\-\-S\-T\-A\-T\-U\-S\-\_\-\-E\-R\-R\-O\-R.

\index{htmllex.\-c@{htmllex.\-c}!htmllineno@{htmllineno}}
\index{htmllineno@{htmllineno}!htmllex.c@{htmllex.\-c}}
\subsubsection[{htmllineno}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} htmllineno (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{htmllex_8c_a649b8384e3abc5b2b71e5577d230e2ed}


Definition at line 876 of file htmllex.\-c.



Referenced by htmlerror(), and htmllex().

\index{htmllex.\-c@{htmllex.\-c}!init\-H\-T\-M\-Llexer@{init\-H\-T\-M\-Llexer}}
\index{init\-H\-T\-M\-Llexer@{init\-H\-T\-M\-Llexer}!htmllex.c@{htmllex.\-c}}
\subsubsection[{init\-H\-T\-M\-Llexer}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} init\-H\-T\-M\-Llexer (
\begin{DoxyParamCaption}
\item[{char $\ast$}]{src, }
\item[{{\bf agxbuf} $\ast$}]{xb, }
\item[{{\bf htmlenv\-\_\-t} $\ast$}]{env}
\end{DoxyParamCaption}
)}\label{htmllex_8c_aa7b7d1f783aad5df2d7e7a74a87da428}


Definition at line 768 of file htmllex.\-c.



References agerr(), A\-G\-W\-A\-R\-N, agxbinit(), charset\-To\-Str(), lexstate\-\_\-t\-::currtoklen, lexstate\-\_\-t\-::error, htmlenv\-\_\-t\-::g, G\-D\-\_\-charset, G\-D\-\_\-gvc, lexstate\-\_\-t\-::in\-Cell, lexstate\-\_\-t\-::lb, lexstate\-\_\-t\-::mode, N\-U\-L\-L, lexstate\-\_\-t\-::prevtoklen, lexstate\-\_\-t\-::ptr, S\-M\-A\-L\-L\-B\-U\-F, lexstate\-\_\-t\-::warn, and lexstate\-\_\-t\-::xb.



Referenced by parse\-H\-T\-M\-L().

