diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:57:20 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1997-12-17 18:57:20 -0200 |
| commit | 8b5b42563c317f83318a0386551f0f0252e387dc (patch) | |
| tree | 9912482d5c702a18a8204e19fd38e9c42b9a3755 | |
| parent | 502343b40230dfb00efc37bdbaa5c5576f3a5aa5 (diff) | |
| download | lua-8b5b42563c317f83318a0386551f0f0252e387dc.tar.gz lua-8b5b42563c317f83318a0386551f0f0252e387dc.tar.bz2 lua-8b5b42563c317f83318a0386551f0f0252e387dc.zip | |
"lua_dobuffer" (is not official, but its there...)
| -rw-r--r-- | ldo.c | 13 |
1 files changed, 12 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: ldo.c,v 1.14 1997/12/09 13:35:19 roberto Exp roberto $ | 2 | ** $Id: ldo.c,v 1.15 1997/12/15 16:17:20 roberto Exp roberto $ |
| 3 | ** Stack and Call structure of Lua | 3 | ** Stack and Call structure of Lua |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -405,3 +405,14 @@ int lua_dostring (char *str) | |||
| 405 | return status; | 405 | return status; |
| 406 | } | 406 | } |
| 407 | 407 | ||
| 408 | |||
| 409 | #if 0 | ||
| 410 | int lua_dobuffer (char *buff, int size) | ||
| 411 | { | ||
| 412 | int status; | ||
| 413 | ZIO z; | ||
| 414 | luaZ_mopen(&z, buff, size); | ||
| 415 | status = do_main(&z, "(buffer)", 1); | ||
| 416 | return status; | ||
| 417 | } | ||
| 418 | #endif | ||
