From 48cec90c3f1e81daec3d216ddf4db1ea1e2a8341 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Tue, 9 Apr 2013 13:43:24 +0000 Subject: Added Expat and LuaExpat, XML parsing now available in the API. FS #336 Windows version only, Linux to be fixed soon. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1374 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/LuaExpat/lxplib.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 source/LuaExpat/lxplib.h (limited to 'source/LuaExpat/lxplib.h') diff --git a/source/LuaExpat/lxplib.h b/source/LuaExpat/lxplib.h new file mode 100644 index 000000000..9c0be4f78 --- /dev/null +++ b/source/LuaExpat/lxplib.h @@ -0,0 +1,24 @@ +/* +** See Copyright Notice in license.html +*/ + +#define ParserType "Expat" + +#define StartCdataKey "StartCdataSection" +#define EndCdataKey "EndCdataSection" +#define CharDataKey "CharacterData" +#define CommentKey "Comment" +#define DefaultKey "Default" +#define DefaultExpandKey "DefaultExpand" +#define StartElementKey "StartElement" +#define EndElementKey "EndElement" +#define ExternalEntityKey "ExternalEntityRef" +#define StartNamespaceDeclKey "StartNamespaceDecl" +#define EndNamespaceDeclKey "EndNamespaceDecl" +#define NotationDeclKey "NotationDecl" +#define NotStandaloneKey "NotStandalone" +#define ProcessingInstructionKey "ProcessingInstruction" +#define UnparsedEntityDeclKey "UnparsedEntityDecl" +#define StartDoctypeDeclKey "StartDoctypeDecl" + +int luaopen_lxp (lua_State *L); -- cgit v1.2.3