aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-06-18 17:08:40 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1996-06-18 17:08:40 -0300
commit20cbca699a08b5cf2c01e8e5722ffe3521c04dd9 (patch)
tree671b0ef99f73057571c43743cbbbf7c634ae5894
parent3211a9648a0f48c5541b45234b42e532727aa7d7 (diff)
downloadlua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.tar.gz
lua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.tar.bz2
lua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.zip
"lua_dofile" has a more informative return code.
-rw-r--r--manual.tex8
1 files changed, 5 insertions, 3 deletions
diff --git a/manual.tex b/manual.tex
index f8496422..b634171b 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.16 1996/04/22 18:00:37 roberto Exp roberto $ 1% $Id: manual.tex,v 1.17 1996/04/29 18:50:08 roberto Exp roberto $
2 2
3\documentstyle[fullpage,11pt,bnf]{article} 3\documentstyle[fullpage,11pt,bnf]{article}
4 4
@@ -34,7 +34,7 @@ Waldemar Celes Filho
34\tecgraf\ --- Departamento de Inform\'atica --- PUC-Rio 34\tecgraf\ --- Departamento de Inform\'atica --- PUC-Rio
35} 35}
36 36
37\date{\small \verb$Date: 1996/04/22 18:00:37 $} 37\date{\small \verb$Date: 1996/04/29 18:50:08 $}
38 38
39\maketitle 39\maketitle
40 40
@@ -753,6 +753,8 @@ int lua_dostring (char *string);
753\end{verbatim} 753\end{verbatim}
754Both functions return an error code: 754Both functions return an error code:
7550, in case of success; non zero, in case of errors. 7550, in case of success; non zero, in case of errors.
756More specifically, \verb'lua_dofile' returns 2 if for any reason
757it could not open the file.
756The function \verb'lua_dofile', if called with argument NULL (0), 758The function \verb'lua_dofile', if called with argument NULL (0),
757executes the ``file'' {\tt stdin}. 759executes the ``file'' {\tt stdin}.
758Function \verb'lua_dofile' is also able to execute pre-compiled chunks. 760Function \verb'lua_dofile' is also able to execute pre-compiled chunks.
@@ -1301,7 +1303,7 @@ are correctly escaped when written.
1301The options \verb'c', \verb'd', \verb'E', \verb'e', \verb'f', 1303The options \verb'c', \verb'd', \verb'E', \verb'e', \verb'f',
1302\verb'g' \verb'i', \verb'o', \verb'u', \verb'X', and \verb'x' all 1304\verb'g' \verb'i', \verb'o', \verb'u', \verb'X', and \verb'x' all
1303expect a number argument, 1305expect a number argument,
1304while \verb'q' and \verb's' expects a string. 1306while \verb'q' and \verb's' expect a string.
1305 1307
1306 1308
1307\subsection{Mathematical Functions} \label{mathlib} 1309\subsection{Mathematical Functions} \label{mathlib}