/[enigma]/enigma/lib-src/lua/liolib.c
ViewVC logotype

Diff of /enigma/lib-src/lua/liolib.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dheck, Sun Feb 9 21:30:32 2003 UTC revision 1.2 by dheck, Fri Aug 1 18:24:21 2003 UTC
# Line 516  static int io_rename (lua_State *L) { Line 516  static int io_rename (lua_State *L) {
516    
517    
518  static int io_tmpname (lua_State *L) {  static int io_tmpname (lua_State *L) {
519    lua_pushstring(L, tmpnam(NULL));  /*  lua_pushstring(L, tmpnam(NULL));  */
520      char fname[] = "luaXXXXXX";
521      lua_pushstring(L, fname);
522    return 1;    return 1;
523  }  }
524    
# Line 666  static const struct luaL_reg iolib[] = { Line 668  static const struct luaL_reg iolib[] = {
668    {"remove",   io_remove},    {"remove",   io_remove},
669    {"rename",   io_rename},    {"rename",   io_rename},
670    {"setlocale", setloc},    {"setlocale", setloc},
671    {"tmpname",   io_tmpname}  //  {"tmpname",   io_tmpname}
672  };  };
673    
674    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26