diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-06-18 17:08:40 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1996-06-18 17:08:40 -0300 |
commit | 20cbca699a08b5cf2c01e8e5722ffe3521c04dd9 (patch) | |
tree | 671b0ef99f73057571c43743cbbbf7c634ae5894 | |
parent | 3211a9648a0f48c5541b45234b42e532727aa7d7 (diff) | |
download | lua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.tar.gz lua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.tar.bz2 lua-20cbca699a08b5cf2c01e8e5722ffe3521c04dd9.zip |
"lua_dofile" has a more informative return code.
-rw-r--r-- | manual.tex | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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} |
754 | Both functions return an error code: | 754 | Both functions return an error code: |
755 | 0, in case of success; non zero, in case of errors. | 755 | 0, in case of success; non zero, in case of errors. |
756 | More specifically, \verb'lua_dofile' returns 2 if for any reason | ||
757 | it could not open the file. | ||
756 | The function \verb'lua_dofile', if called with argument NULL (0), | 758 | The function \verb'lua_dofile', if called with argument NULL (0), |
757 | executes the ``file'' {\tt stdin}. | 759 | executes the ``file'' {\tt stdin}. |
758 | Function \verb'lua_dofile' is also able to execute pre-compiled chunks. | 760 | Function \verb'lua_dofile' is also able to execute pre-compiled chunks. |
@@ -1301,7 +1303,7 @@ are correctly escaped when written. | |||
1301 | The options \verb'c', \verb'd', \verb'E', \verb'e', \verb'f', | 1303 | The 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 |
1303 | expect a number argument, | 1305 | expect a number argument, |
1304 | while \verb'q' and \verb's' expects a string. | 1306 | while \verb'q' and \verb's' expect a string. |
1305 | 1307 | ||
1306 | 1308 | ||
1307 | \subsection{Mathematical Functions} \label{mathlib} | 1309 | \subsection{Mathematical Functions} \label{mathlib} |