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 |