diff options
author | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1993-12-17 16:41:19 -0200 |
---|---|---|
committer | Waldemar Celes <celes@tecgraf.puc-rio.br> | 1993-12-17 16:41:19 -0200 |
commit | 75ed5043820e07eeb6405e42ac3c9cbad990466d (patch) | |
tree | 110ddb8c2a870c2c8ae41a5e6b31534e0d603e42 | |
parent | 1923c7d620ba392ee2ca7ba9dc4b2df7839d0050 (diff) | |
download | lua-75ed5043820e07eeb6405e42ac3c9cbad990466d.tar.gz lua-75ed5043820e07eeb6405e42ac3c9cbad990466d.tar.bz2 lua-75ed5043820e07eeb6405e42ac3c9cbad990466d.zip |
Provide function to realise the input/output function and debugger
facilities.
-rw-r--r-- | inout.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2,12 +2,10 @@ | |||
2 | ** inout.c | 2 | ** inout.c |
3 | ** Provide function to realise the input/output function and debugger | 3 | ** Provide function to realise the input/output function and debugger |
4 | ** facilities. | 4 | ** facilities. |
5 | ** | ||
6 | ** Waldemar Celes Filho | ||
7 | ** TeCGraf - PUC-Rio | ||
8 | ** 11 May 93 | ||
9 | */ | 5 | */ |
10 | 6 | ||
7 | char *rcs_inout="$Id: $"; | ||
8 | |||
11 | #include <stdio.h> | 9 | #include <stdio.h> |
12 | #include <string.h> | 10 | #include <string.h> |
13 | 11 | ||
@@ -96,6 +94,7 @@ void lua_closefile (void) | |||
96 | { | 94 | { |
97 | if (fp != NULL) | 95 | if (fp != NULL) |
98 | { | 96 | { |
97 | lua_delfile(); | ||
99 | fclose (fp); | 98 | fclose (fp); |
100 | fp = NULL; | 99 | fp = NULL; |
101 | } | 100 | } |
@@ -119,6 +118,14 @@ int lua_openstring (char *s) | |||
119 | } | 118 | } |
120 | 119 | ||
121 | /* | 120 | /* |
121 | ** Function to close an opened string | ||
122 | */ | ||
123 | void lua_closestring (void) | ||
124 | { | ||
125 | lua_delfile(); | ||
126 | } | ||
127 | |||
128 | /* | ||
122 | ** Call user function to handle error messages, if registred. Or report error | 129 | ** Call user function to handle error messages, if registred. Or report error |
123 | ** using standard function (fprintf). | 130 | ** using standard function (fprintf). |
124 | */ | 131 | */ |