\hypertarget{lua_8c}{
\section{lua.c File Reference}
\label{lua_8c}\index{lua.c@{lua.c}}
}
{\tt \#include $<$signal.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
{\tt \#include \char`\"{}lauxlib.h\char`\"{}}\par
{\tt \#include \char`\"{}lualib.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structSmain}{Smain}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lua_8c_09f0a4e06f4ea52525adbd7eb990ec1b}{lua\_\-c}
\item 
\#define \hyperlink{lua_8c_d66390105aebd9aabbe20e56ba072f2a}{notail}(x)~\{if ((x)\mbox{[}2\mbox{]} != '$\backslash$0') return -1;\}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static void \hyperlink{lua_8c_6da2ce581018529235ae1da1e32c7919}{lstop} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structlua__Debug}{lua\_\-Debug} $\ast$ar)
\item 
static void \hyperlink{lua_8c_cbccdc65e78da44329f7ee6be03cf0bd}{laction} (int i)
\item 
static void \hyperlink{lua_8c_0edd37fe65f6a8b1e530370f6e6402f3}{print\_\-usage} (void)
\item 
static void \hyperlink{lua_8c_d0f0975de65acf5a5edf0953299b3747}{l\_\-message} (const char $\ast$pname, const char $\ast$msg)
\item 
static int \hyperlink{lua_8c_037f0feafa76682f422cd7e2fb387f44}{report} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int status)
\item 
static int \hyperlink{lua_8c_8db81089117260e8931fbfc9631bd229}{traceback} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{lua_8c_449fbad850382cbf367d54111762bae5}{docall} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int narg, int clear)
\item 
static void \hyperlink{lua_8c_2e0d36c06cdd7fbacb264c67367d3b01}{print\_\-version} (void)
\item 
static int \hyperlink{lua_8c_107bcee9b66d6ccbb0d3e432fde0464a}{getargs} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, char $\ast$$\ast$argv, int n)
\item 
static int \hyperlink{lua_8c_9708ea7bd36bee3c2d952cdd787246cc}{dofile} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$name)
\item 
static int \hyperlink{lua_8c_e8312476ab6a3db74a9a5b1a981d023f}{dostring} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$s, const char $\ast$name)
\item 
static int \hyperlink{lua_8c_d256d556c3f941b29351d92606e67753}{dolibrary} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$name)
\item 
static const char $\ast$ \hyperlink{lua_8c_f30330b1ce029ad490faaeab255cf52d}{get\_\-prompt} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int firstline)
\item 
static int \hyperlink{lua_8c_fcb03dd7d7d29972ed50628d7bfdac14}{incomplete} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int status)
\item 
static int \hyperlink{lua_8c_83a7cb21b34095ca93f2a2a863f58fda}{pushline} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int firstline)
\item 
static int \hyperlink{lua_8c_d7e840f79b193c164616ed9748e68ec6}{loadline} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static void \hyperlink{lua_8c_f20a0db09eef58099abe45e6f41acd0c}{dotty} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{lua_8c_eaa44c3d4d4a068db8b190777d1cb976}{handle\_\-script} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, char $\ast$$\ast$argv, int n)
\item 
static int \hyperlink{lua_8c_14fc1e0e5c5a30c5f52904188514c81a}{collectargs} (char $\ast$$\ast$argv, int $\ast$pi, int $\ast$pv, int $\ast$pe)
\item 
static int \hyperlink{lua_8c_95a376c847572def6b3f78d33a7bc881}{runargs} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, char $\ast$$\ast$argv, int n)
\item 
static int \hyperlink{lua_8c_5d9d02779b2853fbef2aa54e2f8e017e}{handle\_\-luainit} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
static int \hyperlink{lua_8c_a0f8bc082ef913cb0a4df437bf5f5019}{pmain} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L})
\item 
int \hyperlink{lua_8c_3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\end{CompactItemize}
\subsection*{Variables}
\begin{CompactItemize}
\item 
static \hyperlink{structlua__State}{lua\_\-State} $\ast$ \hyperlink{lua_8c_f2f256e94f7ca1748abb736e9b311cc4}{globalL} = NULL
\item 
static const char $\ast$ \hyperlink{lua_8c_d785d8a8f8ff378aa21eb1fa7a6085df}{progname} = LUA\_\-PROGNAME
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lua_8c_09f0a4e06f4ea52525adbd7eb990ec1b}{
\index{lua.c@{lua.c}!lua\_\-c@{lua\_\-c}}
\index{lua\_\-c@{lua\_\-c}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lua\_\-c}}
\label{lua_8c_09f0a4e06f4ea52525adbd7eb990ec1b}


\hypertarget{lua_8c_d66390105aebd9aabbe20e56ba072f2a}{
\index{lua.c@{lua.c}!notail@{notail}}
\index{notail@{notail}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define notail(x)~\{if ((x)\mbox{[}2\mbox{]} != '$\backslash$0') return -1;\}}}
\label{lua_8c_d66390105aebd9aabbe20e56ba072f2a}




\subsection{Function Documentation}
\hypertarget{lua_8c_14fc1e0e5c5a30c5f52904188514c81a}{
\index{lua.c@{lua.c}!collectargs@{collectargs}}
\index{collectargs@{collectargs}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int collectargs (char $\ast$$\ast$ {\em argv}, \/  int $\ast$ {\em pi}, \/  int $\ast$ {\em pv}, \/  int $\ast$ {\em pe})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_14fc1e0e5c5a30c5f52904188514c81a}


\hypertarget{lua_8c_449fbad850382cbf367d54111762bae5}{
\index{lua.c@{lua.c}!docall@{docall}}
\index{docall@{docall}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int docall ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em narg}, \/  int {\em clear})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_449fbad850382cbf367d54111762bae5}


\hypertarget{lua_8c_9708ea7bd36bee3c2d952cdd787246cc}{
\index{lua.c@{lua.c}!dofile@{dofile}}
\index{dofile@{dofile}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int dofile ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em name})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_9708ea7bd36bee3c2d952cdd787246cc}


\hypertarget{lua_8c_d256d556c3f941b29351d92606e67753}{
\index{lua.c@{lua.c}!dolibrary@{dolibrary}}
\index{dolibrary@{dolibrary}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int dolibrary ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em name})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_d256d556c3f941b29351d92606e67753}


\hypertarget{lua_8c_e8312476ab6a3db74a9a5b1a981d023f}{
\index{lua.c@{lua.c}!dostring@{dostring}}
\index{dostring@{dostring}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int dostring ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em s}, \/  const char $\ast$ {\em name})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_e8312476ab6a3db74a9a5b1a981d023f}


\hypertarget{lua_8c_f20a0db09eef58099abe45e6f41acd0c}{
\index{lua.c@{lua.c}!dotty@{dotty}}
\index{dotty@{dotty}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void dotty ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_f20a0db09eef58099abe45e6f41acd0c}


\hypertarget{lua_8c_f30330b1ce029ad490faaeab255cf52d}{
\index{lua.c@{lua.c}!get\_\-prompt@{get\_\-prompt}}
\index{get\_\-prompt@{get\_\-prompt}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static const char$\ast$ get\_\-prompt ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em firstline})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_f30330b1ce029ad490faaeab255cf52d}


\hypertarget{lua_8c_107bcee9b66d6ccbb0d3e432fde0464a}{
\index{lua.c@{lua.c}!getargs@{getargs}}
\index{getargs@{getargs}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int getargs ({\bf lua\_\-State} $\ast$ {\em L}, \/  char $\ast$$\ast$ {\em argv}, \/  int {\em n})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_107bcee9b66d6ccbb0d3e432fde0464a}


\hypertarget{lua_8c_5d9d02779b2853fbef2aa54e2f8e017e}{
\index{lua.c@{lua.c}!handle\_\-luainit@{handle\_\-luainit}}
\index{handle\_\-luainit@{handle\_\-luainit}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int handle\_\-luainit ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_5d9d02779b2853fbef2aa54e2f8e017e}


\hypertarget{lua_8c_eaa44c3d4d4a068db8b190777d1cb976}{
\index{lua.c@{lua.c}!handle\_\-script@{handle\_\-script}}
\index{handle\_\-script@{handle\_\-script}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int handle\_\-script ({\bf lua\_\-State} $\ast$ {\em L}, \/  char $\ast$$\ast$ {\em argv}, \/  int {\em n})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_eaa44c3d4d4a068db8b190777d1cb976}


\hypertarget{lua_8c_fcb03dd7d7d29972ed50628d7bfdac14}{
\index{lua.c@{lua.c}!incomplete@{incomplete}}
\index{incomplete@{incomplete}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int incomplete ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em status})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_fcb03dd7d7d29972ed50628d7bfdac14}


\hypertarget{lua_8c_d0f0975de65acf5a5edf0953299b3747}{
\index{lua.c@{lua.c}!l\_\-message@{l\_\-message}}
\index{l\_\-message@{l\_\-message}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void l\_\-message (const char $\ast$ {\em pname}, \/  const char $\ast$ {\em msg})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_d0f0975de65acf5a5edf0953299b3747}


\hypertarget{lua_8c_cbccdc65e78da44329f7ee6be03cf0bd}{
\index{lua.c@{lua.c}!laction@{laction}}
\index{laction@{laction}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void laction (int {\em i})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_cbccdc65e78da44329f7ee6be03cf0bd}


\hypertarget{lua_8c_d7e840f79b193c164616ed9748e68ec6}{
\index{lua.c@{lua.c}!loadline@{loadline}}
\index{loadline@{loadline}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int loadline ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_d7e840f79b193c164616ed9748e68ec6}


\hypertarget{lua_8c_6da2ce581018529235ae1da1e32c7919}{
\index{lua.c@{lua.c}!lstop@{lstop}}
\index{lstop@{lstop}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void lstop ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf lua\_\-Debug} $\ast$ {\em ar})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_6da2ce581018529235ae1da1e32c7919}


\hypertarget{lua_8c_3c04138a5bfe5d72780bb7e82a18e627}{
\index{lua.c@{lua.c}!main@{main}}
\index{main@{main}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{lua_8c_3c04138a5bfe5d72780bb7e82a18e627}


\hypertarget{lua_8c_a0f8bc082ef913cb0a4df437bf5f5019}{
\index{lua.c@{lua.c}!pmain@{pmain}}
\index{pmain@{pmain}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int pmain ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_a0f8bc082ef913cb0a4df437bf5f5019}


\hypertarget{lua_8c_0edd37fe65f6a8b1e530370f6e6402f3}{
\index{lua.c@{lua.c}!print\_\-usage@{print\_\-usage}}
\index{print\_\-usage@{print\_\-usage}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void print\_\-usage (void)\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_0edd37fe65f6a8b1e530370f6e6402f3}


\hypertarget{lua_8c_2e0d36c06cdd7fbacb264c67367d3b01}{
\index{lua.c@{lua.c}!print\_\-version@{print\_\-version}}
\index{print\_\-version@{print\_\-version}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void print\_\-version (void)\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_2e0d36c06cdd7fbacb264c67367d3b01}


\hypertarget{lua_8c_83a7cb21b34095ca93f2a2a863f58fda}{
\index{lua.c@{lua.c}!pushline@{pushline}}
\index{pushline@{pushline}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int pushline ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em firstline})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_83a7cb21b34095ca93f2a2a863f58fda}


\hypertarget{lua_8c_037f0feafa76682f422cd7e2fb387f44}{
\index{lua.c@{lua.c}!report@{report}}
\index{report@{report}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int report ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em status})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_037f0feafa76682f422cd7e2fb387f44}


\hypertarget{lua_8c_95a376c847572def6b3f78d33a7bc881}{
\index{lua.c@{lua.c}!runargs@{runargs}}
\index{runargs@{runargs}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int runargs ({\bf lua\_\-State} $\ast$ {\em L}, \/  char $\ast$$\ast$ {\em argv}, \/  int {\em n})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_95a376c847572def6b3f78d33a7bc881}


\hypertarget{lua_8c_8db81089117260e8931fbfc9631bd229}{
\index{lua.c@{lua.c}!traceback@{traceback}}
\index{traceback@{traceback}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int traceback ({\bf lua\_\-State} $\ast$ {\em L})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_8db81089117260e8931fbfc9631bd229}




\subsection{Variable Documentation}
\hypertarget{lua_8c_f2f256e94f7ca1748abb736e9b311cc4}{
\index{lua.c@{lua.c}!globalL@{globalL}}
\index{globalL@{globalL}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf lua\_\-State}$\ast$ {\bf globalL} = NULL\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_f2f256e94f7ca1748abb736e9b311cc4}


\hypertarget{lua_8c_d785d8a8f8ff378aa21eb1fa7a6085df}{
\index{lua.c@{lua.c}!progname@{progname}}
\index{progname@{progname}!lua.c@{lua.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}const char$\ast$ {\bf progname} = LUA\_\-PROGNAME\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lua_8c_d785d8a8f8ff378aa21eb1fa7a6085df}


