src/lxplib.c

changeset 32
73adc42f35ce
parent 31
ebb63b55bcc1
child 33
94f496ee93cb
equal deleted inserted replaced
31:ebb63b55bcc1 32:73adc42f35ce
585 lua_pushliteral (L, "LuaExpat is a SAX XML parser based on the Expat library"); 585 lua_pushliteral (L, "LuaExpat is a SAX XML parser based on the Expat library");
586 lua_settable (L, -3); 586 lua_settable (L, -3);
587 lua_pushliteral (L, "_VERSION"); 587 lua_pushliteral (L, "_VERSION");
588 lua_pushliteral (L, "LuaExpat 1.3.0"); 588 lua_pushliteral (L, "LuaExpat 1.3.0");
589 lua_settable (L, -3); 589 lua_settable (L, -3);
590 lua_pushliteral (L, "_EXPAT_VERSION");
591 lua_pushstring (L, XML_ExpatVersion());
592 lua_settable (L, -3);
590 } 593 }
591 594
592 int luaopen_lxp (lua_State *L) { 595 int luaopen_lxp (lua_State *L) {
593 luaL_newmetatable(L, ParserType); 596 luaL_newmetatable(L, ParserType);
594 597

mercurial