\hypertarget{lundump_8c}{
\section{lundump.c File Reference}
\label{lundump_8c}\index{lundump.c@{lundump.c}}
}
{\tt \#include $<$string.h$>$}\par
{\tt \#include \char`\"{}lua.h\char`\"{}}\par
{\tt \#include \char`\"{}ldebug.h\char`\"{}}\par
{\tt \#include \char`\"{}ldo.h\char`\"{}}\par
{\tt \#include \char`\"{}lfunc.h\char`\"{}}\par
{\tt \#include \char`\"{}lmem.h\char`\"{}}\par
{\tt \#include \char`\"{}lobject.h\char`\"{}}\par
{\tt \#include \char`\"{}lstring.h\char`\"{}}\par
{\tt \#include \char`\"{}lundump.h\char`\"{}}\par
{\tt \#include \char`\"{}lzio.h\char`\"{}}\par
\subsection*{Classes}
\begin{CompactItemize}
\item 
struct \hyperlink{structLoadState}{LoadState}
\end{CompactItemize}
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lundump_8c_a480de4ebd1ff43b613879e98ab2bcd8}{lundump\_\-c}
\item 
\#define \hyperlink{lundump_8c_bf0b3947b59218777a8e928a10be205b}{LUA\_\-CORE}
\item 
\#define \hyperlink{lundump_8c_4e4650e55b2d21a312140695013a3202}{IF}(c, s)~if (c) error(S,s)
\item 
\#define \hyperlink{lundump_8c_6bc8dda3c8a6f76b700ab3fdb166b936}{LoadMem}(S, b, n, size)~LoadBlock(S,b,(n)$\ast$(size))
\item 
\#define \hyperlink{lundump_8c_7392e7066dadd80aa9df1a4aa3d38f0e}{LoadByte}(S)~(\hyperlink{llimits_8h_e1fe9ac10d9803bd1d7bdf30b18bad68}{lu\_\-byte})LoadChar(S)
\item 
\#define \hyperlink{lundump_8c_556b2b40a69c0b870ca1c3b46643a4f9}{LoadVar}(S, x)~LoadMem(S,\&x,1,sizeof(x))
\item 
\#define \hyperlink{lundump_8c_7e1ac37bef378cd6cee18ab26d989907}{LoadVector}(S, b, n, size)~LoadMem(S,b,n,size)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
static void \hyperlink{lundump_8c_6776ffdd5e2abf4119b1d45731e9e668}{error} (\hyperlink{structLoadState}{LoadState} $\ast$S, const char $\ast$why)
\item 
static void \hyperlink{lundump_8c_7a5d13b3653a25432f167162f585ffa4}{LoadBlock} (\hyperlink{structLoadState}{LoadState} $\ast$S, void $\ast$b, size\_\-t size)
\item 
static int \hyperlink{lundump_8c_e2477dfb5eca861aef787f5f628b8902}{LoadChar} (\hyperlink{structLoadState}{LoadState} $\ast$S)
\item 
static int \hyperlink{lundump_8c_9f0e8462baca39c1599c55689ab68d49}{LoadInt} (\hyperlink{structLoadState}{LoadState} $\ast$S)
\item 
static \hyperlink{lua_8h_f0a6ed3b852d680769cfc410a0672172}{lua\_\-Number} \hyperlink{lundump_8c_373560dc80f918430160b6aefdd690af}{LoadNumber} (\hyperlink{structLoadState}{LoadState} $\ast$S)
\item 
static \hyperlink{unionTString}{TString} $\ast$ \hyperlink{lundump_8c_bfe7dabe70bd14e27d54d3cedc6cb70a}{LoadString} (\hyperlink{structLoadState}{LoadState} $\ast$S)
\item 
static void \hyperlink{lundump_8c_df31b58c8223f0aaed42909670403b2d}{LoadCode} (\hyperlink{structLoadState}{LoadState} $\ast$S, \hyperlink{structProto}{Proto} $\ast$f)
\item 
static \hyperlink{structProto}{Proto} $\ast$ \hyperlink{lundump_8c_a2ec0217055b726cb4173c8205bb9cdb}{LoadFunction} (\hyperlink{structLoadState}{LoadState} $\ast$S, \hyperlink{unionTString}{TString} $\ast$p)
\item 
static void \hyperlink{lundump_8c_1854dcefef99e90599873a480c49da5f}{LoadConstants} (\hyperlink{structLoadState}{LoadState} $\ast$S, \hyperlink{structProto}{Proto} $\ast$f)
\item 
static void \hyperlink{lundump_8c_89f9807f8a7395e26b0bce7b7f208d20}{LoadDebug} (\hyperlink{structLoadState}{LoadState} $\ast$S, \hyperlink{structProto}{Proto} $\ast$f)
\item 
static void \hyperlink{lundump_8c_070311f1203a7633e63ee83a444c5168}{LoadHeader} (\hyperlink{structLoadState}{LoadState} $\ast$S)
\item 
\hyperlink{structProto}{Proto} $\ast$ \hyperlink{lundump_8c_f58d6792fec8dc3f927f24d09f25f139}{luaU\_\-undump} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, \hyperlink{structZio}{ZIO} $\ast$Z, \hyperlink{structMbuffer}{Mbuffer} $\ast$buff, const char $\ast$name)
\item 
void \hyperlink{lundump_8c_aeba247a0bfe01de552d811a58322579}{luaU\_\-header} (char $\ast$h)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lundump_8c_4e4650e55b2d21a312140695013a3202}{
\index{lundump.c@{lundump.c}!IF@{IF}}
\index{IF@{IF}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define IF(c, \/  s)~if (c) error(S,s)}}
\label{lundump_8c_4e4650e55b2d21a312140695013a3202}


\hypertarget{lundump_8c_7392e7066dadd80aa9df1a4aa3d38f0e}{
\index{lundump.c@{lundump.c}!LoadByte@{LoadByte}}
\index{LoadByte@{LoadByte}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LoadByte(S)~({\bf lu\_\-byte})LoadChar(S)}}
\label{lundump_8c_7392e7066dadd80aa9df1a4aa3d38f0e}


\hypertarget{lundump_8c_6bc8dda3c8a6f76b700ab3fdb166b936}{
\index{lundump.c@{lundump.c}!LoadMem@{LoadMem}}
\index{LoadMem@{LoadMem}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LoadMem(S, \/  b, \/  n, \/  size)~LoadBlock(S,b,(n)$\ast$(size))}}
\label{lundump_8c_6bc8dda3c8a6f76b700ab3fdb166b936}


\hypertarget{lundump_8c_556b2b40a69c0b870ca1c3b46643a4f9}{
\index{lundump.c@{lundump.c}!LoadVar@{LoadVar}}
\index{LoadVar@{LoadVar}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LoadVar(S, \/  x)~LoadMem(S,\&x,1,sizeof(x))}}
\label{lundump_8c_556b2b40a69c0b870ca1c3b46643a4f9}


\hypertarget{lundump_8c_7e1ac37bef378cd6cee18ab26d989907}{
\index{lundump.c@{lundump.c}!LoadVector@{LoadVector}}
\index{LoadVector@{LoadVector}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LoadVector(S, \/  b, \/  n, \/  size)~LoadMem(S,b,n,size)}}
\label{lundump_8c_7e1ac37bef378cd6cee18ab26d989907}


\hypertarget{lundump_8c_bf0b3947b59218777a8e928a10be205b}{
\index{lundump.c@{lundump.c}!LUA\_\-CORE@{LUA\_\-CORE}}
\index{LUA\_\-CORE@{LUA\_\-CORE}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define LUA\_\-CORE}}
\label{lundump_8c_bf0b3947b59218777a8e928a10be205b}


\hypertarget{lundump_8c_a480de4ebd1ff43b613879e98ab2bcd8}{
\index{lundump.c@{lundump.c}!lundump\_\-c@{lundump\_\-c}}
\index{lundump\_\-c@{lundump\_\-c}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define lundump\_\-c}}
\label{lundump_8c_a480de4ebd1ff43b613879e98ab2bcd8}




\subsection{Function Documentation}
\hypertarget{lundump_8c_6776ffdd5e2abf4119b1d45731e9e668}{
\index{lundump.c@{lundump.c}!error@{error}}
\index{error@{error}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void error ({\bf LoadState} $\ast$ {\em S}, \/  const char $\ast$ {\em why})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_6776ffdd5e2abf4119b1d45731e9e668}


\hypertarget{lundump_8c_7a5d13b3653a25432f167162f585ffa4}{
\index{lundump.c@{lundump.c}!LoadBlock@{LoadBlock}}
\index{LoadBlock@{LoadBlock}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void LoadBlock ({\bf LoadState} $\ast$ {\em S}, \/  void $\ast$ {\em b}, \/  size\_\-t {\em size})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_7a5d13b3653a25432f167162f585ffa4}


\hypertarget{lundump_8c_e2477dfb5eca861aef787f5f628b8902}{
\index{lundump.c@{lundump.c}!LoadChar@{LoadChar}}
\index{LoadChar@{LoadChar}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int LoadChar ({\bf LoadState} $\ast$ {\em S})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_e2477dfb5eca861aef787f5f628b8902}


\hypertarget{lundump_8c_df31b58c8223f0aaed42909670403b2d}{
\index{lundump.c@{lundump.c}!LoadCode@{LoadCode}}
\index{LoadCode@{LoadCode}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void LoadCode ({\bf LoadState} $\ast$ {\em S}, \/  {\bf Proto} $\ast$ {\em f})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_df31b58c8223f0aaed42909670403b2d}


\hypertarget{lundump_8c_1854dcefef99e90599873a480c49da5f}{
\index{lundump.c@{lundump.c}!LoadConstants@{LoadConstants}}
\index{LoadConstants@{LoadConstants}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void LoadConstants ({\bf LoadState} $\ast$ {\em S}, \/  {\bf Proto} $\ast$ {\em f})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_1854dcefef99e90599873a480c49da5f}


\hypertarget{lundump_8c_89f9807f8a7395e26b0bce7b7f208d20}{
\index{lundump.c@{lundump.c}!LoadDebug@{LoadDebug}}
\index{LoadDebug@{LoadDebug}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void LoadDebug ({\bf LoadState} $\ast$ {\em S}, \/  {\bf Proto} $\ast$ {\em f})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_89f9807f8a7395e26b0bce7b7f208d20}


\hypertarget{lundump_8c_a2ec0217055b726cb4173c8205bb9cdb}{
\index{lundump.c@{lundump.c}!LoadFunction@{LoadFunction}}
\index{LoadFunction@{LoadFunction}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf Proto} $\ast$ LoadFunction ({\bf LoadState} $\ast$ {\em S}, \/  {\bf TString} $\ast$ {\em p})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_a2ec0217055b726cb4173c8205bb9cdb}


\hypertarget{lundump_8c_070311f1203a7633e63ee83a444c5168}{
\index{lundump.c@{lundump.c}!LoadHeader@{LoadHeader}}
\index{LoadHeader@{LoadHeader}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static void LoadHeader ({\bf LoadState} $\ast$ {\em S})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_070311f1203a7633e63ee83a444c5168}


\hypertarget{lundump_8c_9f0e8462baca39c1599c55689ab68d49}{
\index{lundump.c@{lundump.c}!LoadInt@{LoadInt}}
\index{LoadInt@{LoadInt}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static int LoadInt ({\bf LoadState} $\ast$ {\em S})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_9f0e8462baca39c1599c55689ab68d49}


\hypertarget{lundump_8c_373560dc80f918430160b6aefdd690af}{
\index{lundump.c@{lundump.c}!LoadNumber@{LoadNumber}}
\index{LoadNumber@{LoadNumber}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf lua\_\-Number} LoadNumber ({\bf LoadState} $\ast$ {\em S})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_373560dc80f918430160b6aefdd690af}


\hypertarget{lundump_8c_bfe7dabe70bd14e27d54d3cedc6cb70a}{
\index{lundump.c@{lundump.c}!LoadString@{LoadString}}
\index{LoadString@{LoadString}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}static {\bf TString}$\ast$ LoadString ({\bf LoadState} $\ast$ {\em S})\hspace{0.3cm}{\tt  \mbox{[}static\mbox{]}}}}
\label{lundump_8c_bfe7dabe70bd14e27d54d3cedc6cb70a}


\hypertarget{lundump_8c_aeba247a0bfe01de552d811a58322579}{
\index{lundump.c@{lundump.c}!luaU\_\-header@{luaU\_\-header}}
\index{luaU\_\-header@{luaU\_\-header}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void luaU\_\-header (char $\ast$ {\em h})}}
\label{lundump_8c_aeba247a0bfe01de552d811a58322579}


\hypertarget{lundump_8c_f58d6792fec8dc3f927f24d09f25f139}{
\index{lundump.c@{lundump.c}!luaU\_\-undump@{luaU\_\-undump}}
\index{luaU\_\-undump@{luaU\_\-undump}!lundump.c@{lundump.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf Proto}$\ast$ luaU\_\-undump ({\bf lua\_\-State} $\ast$ {\em L}, \/  {\bf ZIO} $\ast$ {\em Z}, \/  {\bf Mbuffer} $\ast$ {\em buff}, \/  const char $\ast$ {\em name})}}
\label{lundump_8c_f58d6792fec8dc3f927f24d09f25f139}


