Commit Graph

296 Commits

Author SHA1 Message Date
Nikolay Sivov b190a72bfe xmllite/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 23:50:15 +09:00
Alistair Leslie-Hughes 3e9b4c1a17 xmllite/tests: Fix memory leak (valgrind).
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 16:39:17 +09:00
Nikolay Sivov dc72103a1d xmllite: Don't use HRESULT codes for BOOL retval (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 00:25:34 +09:00
Hans Leidekker d1658260a2 xmllite: Implement CreateXmlWriterOutputWithEncodingCodePage. 2015-08-06 21:42:19 +09:00
Nikolay Sivov aadd9ff159 xmllite/writer: Implement WriteEndDocument(). 2015-05-20 17:28:58 +09:00
Vincent Povirk 8615365945 xmllite: Fix reader_cmp for multiple characters. 2015-02-23 15:25:55 +09:00
Vincent Povirk fd5a8a9db8 xmllite: Length is optional in IXmlReader::GetQualifiedName. 2015-01-23 11:08:15 +01:00
André Hentschel b91084a992 xmllite/tests: Clarify ok() condition (PVS-Studio). 2014-11-11 14:21:37 +09:00
Francois Gouget 0dd5cb1cef Assorted spelling fixes. 2014-09-29 10:36:36 +02:00
Gerald Pfeifer a8975f7dff xmllite: Remove unused function reader_get_len. 2014-08-11 23:55:17 +02:00
Nikolay Sivov bfceaa4f39 xmllite/writer: Implement WriteFullEndElement(). 2014-06-17 13:03:18 +02:00
Nikolay Sivov af46bab594 xmllite/writer: Maintain a stack of written elements to write end tags.
Xmllite helps in a way that user doesn't have to specify closing tag
name (like it has to in case of MXWriter). So when closing current level
element qname is used for a closing tag; later this stack will also hold
namespace definitions that element is carrying to check if nested
element uses defined prefix.
2014-06-16 09:31:40 +02:00
Nikolay Sivov f43a6d46da xmllite/writer: Initial implementation of WriteElementString(). 2014-05-21 12:07:37 +02:00
Nikolay Sivov 2177403b8e xmllite/writer: Initial implementation of WriteStartElement(). 2014-05-21 12:07:35 +02:00
Nikolay Sivov 086a1e3709 xmllite/writer: Implement ByteOrderMark property. 2014-05-20 21:26:55 +02:00
Nikolay Sivov 9a2177ff53 xmllite/writer: Implement OmitXmlDeclaration property. 2014-05-20 21:26:55 +02:00
Nikolay Sivov 81d2516449 xmllite/writer: Fix Flush() behaviour on partial writes. 2014-05-16 10:53:29 +02:00
Nikolay Sivov caeecfa223 xmllite/writer: Implement Flush() method. 2014-05-15 19:05:01 +02:00
Nikolay Sivov a0f67c3695 xmllite/writer: Initial support for starting a document. 2014-05-15 19:05:00 +02:00
Nikolay Sivov 71ab66efa0 xmllite/writer: Initial support of output buffer creation. 2014-05-15 19:04:59 +02:00
Nikolay Sivov 0ae578b71c xmllite/reader: Create reader input with same IMalloc as reader. 2014-05-15 19:04:58 +02:00
Nikolay Sivov d2737dde80 xmllite/writer: Implement GetProperty(). 2014-05-14 11:25:15 +02:00
Nikolay Sivov 9080329e4e xmllite/writer: Implement SetOutput() for writer. 2014-05-13 16:59:00 +02:00
Nikolay Sivov e58070ab83 xmllite: Support external IMalloc for writer. 2014-05-13 16:58:57 +02:00
Nikolay Sivov ac8a24aa26 xmllite: Implement CreateXmlWriterOutputWithEncodingName(). 2014-03-21 11:17:51 +01:00
Dmitry Timoshkov 529d9ea922 xmllite: Also clear the attr pointer in reader_clear_attrs. 2014-02-22 08:40:44 -06:00
Dmitry Timoshkov f41f8af021 xmllite/tests: Add a test for parsing an empty element after XML declaration. 2014-02-20 15:15:45 +01:00
Dmitry Timoshkov d73750f086 xmllite: Add an import library. 2014-02-18 10:48:28 +01:00
Dmitry Timoshkov 5425cb3413 xmllite: Don't fail the whole parsing process because of unsupported 'xmlns' attribute. 2014-02-17 11:16:42 +01:00
Dmitry Timoshkov f78b4f305d xmllite: Reader should set starting string offsets when encoding is being parsed. 2014-02-14 13:49:24 +01:00
Dmitry Timoshkov 493e406bbc xmllite/tests: Add a test for names and values parsed from an XML declaration. 2014-02-14 13:49:13 +01:00
Dmitry Timoshkov 09f371920f xmllite: Don't fail if standalone declaration is missing. 2014-02-14 13:49:01 +01:00
Dmitry Timoshkov 376eff51e0 xmllite: Don't fail if encoding declaration is missing. 2014-02-14 13:48:57 +01:00
Dmitry Timoshkov b02ea57e04 xmllite/tests: Add a test for short variant of xml declaration. 2014-02-10 10:43:46 +01:00
Dmitry Timoshkov ce894b9fc6 xmllite/tests: There is no need to initialize OLE. 2014-02-10 10:43:42 +01:00
Dmitry Timoshkov 42e681e31d xmllite/tests: Fix stack corruption in 64-bit builds. 2014-02-10 10:43:11 +01:00
Frédéric Delanoy 8610af58fe xmllite/tests: Use common wine_dbgstr_guid implementation from test.h. 2014-01-29 14:50:55 +01:00
Frédéric Delanoy e5b689b71e xmllite/tests: Use BOOL type where appropriate. 2014-01-07 10:42:08 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Dmitry Timoshkov 07e7f40dc9 xmllite: Constify pointers in arrays that hold const data. 2014-01-01 11:44:25 +01:00
Dmitry Timoshkov 1be348ea51 xmllite: Use wine_dbg_sprintf instead of a static buffer. 2014-01-01 11:44:21 +01:00
Frédéric Delanoy 78cf65abb1 xmllite: Constify some character strings. 2013-12-19 17:09:19 +01:00
Francois Gouget ee28dd80ea Assorted spelling fixes. 2013-11-01 10:54:32 +01:00
Marcus Meissner 468be8b9d2 xmllite: Annotate fallthrough case (Coverity). 2013-10-28 10:39:35 +01:00
Nikolay Sivov 619ceae967 xmllite: Support resuming and value reporting for whitespace nodes in Misc. 2013-10-14 10:49:53 +02:00
Frédéric Delanoy 77a26de975 xmllite: Use BOOL type where appropriate. 2013-10-10 10:44:35 +02:00
Nikolay Sivov 587398259e xmllite: Correct allocated destination buffer size. 2013-10-09 19:28:16 +02:00
Nikolay Sivov feda40bbaa xmllite: Fix overwriting of dest buffer when pushing more data to it. 2013-10-09 19:28:11 +02:00
Nikolay Sivov ae341b9bd7 xmllite: Use buffer offset instead of pointers. 2013-10-09 17:48:26 +02:00
Nikolay Sivov ece36f17d0 xmllite: Fix node type for whitespace text nodes in Content. 2013-09-30 20:34:52 +02:00
Nikolay Sivov 249b45786f xmllite: Reset resume state when text node is parsed. 2013-09-30 20:34:52 +02:00
Nikolay Sivov c75726ba76 xmllite: Support predefined xml entities. 2013-08-20 13:01:00 +02:00
Nikolay Sivov a04064b886 xmllite: Improve attribute value parsing. 2013-08-19 12:53:21 +02:00
Nikolay Sivov e51ab3c03a xmllite: Support reporting of a local name and value for attributes. 2013-08-19 12:53:21 +02:00
Nikolay Sivov 53f72826a2 xmllite: Initial implementation of attribute parsing. 2013-07-30 19:12:04 +02:00
Nikolay Sivov 80e70a8271 xmllite: Handle nesting depth limit better. 2013-07-24 11:11:38 -05:00
Nikolay Sivov 40c72e47ab xmllite: Clear attributes on node change, improve tracing. 2013-07-24 11:11:32 -05:00
Nikolay Sivov be8d73d456 xmllite: Report attribute as non-default for now. 2013-07-22 17:15:59 +02:00
Nikolay Sivov d315e438a2 xmllite: Implement IsEmptyElement(). 2013-07-22 17:15:59 +02:00
Nikolay Sivov f02b2225ee xmllite: Initial support for CharData (or Text) nodes. 2013-07-22 17:15:59 +02:00
Nikolay Sivov 5a1a745570 xmllite: Store prefix for start tag and return it. 2013-07-22 17:15:59 +02:00
Nikolay Sivov 9997ef3fbc xmllite: It's acceptable to have NULL length pointer in GetLocalName(). 2013-06-12 12:09:00 +02:00
Nikolay Sivov caa452e958 xmllite: Set PI target value just after it's parsed. 2013-05-31 19:16:04 +02:00
Marcus Meissner e8e485d448 xmllite: Do not leave start uninitialized (Coverity). 2013-05-09 19:24:20 +02:00
Marcus Meissner 51d96dac70 xmllite: Free elem in error paths (Coverity). 2013-05-09 19:24:19 +02:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Nikolay Sivov 2bdaffd879 xmllite: Partially implement value normalization for CDATA sections. 2013-03-26 12:09:59 +01:00
Nikolay Sivov b1d7517ab1 xmllite: Implement ReadValueChunk(). 2013-03-14 14:55:47 +01:00
Nikolay Sivov e5a48b2d75 xmllite: Fix a test failure on Windows 8. 2013-03-11 10:45:47 +01:00
Nikolay Sivov 88d7b66be2 xmllite: Make another read attempt if we don't have enough data initially. 2013-03-11 10:45:43 +01:00
Nikolay Sivov 9377514583 xmllite: Support resuming to comments and PIs while on Content part. 2013-03-11 10:45:38 +01:00
Nikolay Sivov 4d1a65c1ba xmllite: Support CDATA nodes. 2013-03-11 10:45:33 +01:00
Nikolay Sivov c38c471b64 xmllite: Actually resume comment and PI parsing while on Misc part. 2013-03-11 10:45:27 +01:00
Nikolay Sivov c87a85cce3 xmllite: Support resuming for start tag. 2013-03-11 10:45:20 +01:00
Nikolay Sivov d1c52fe168 xmllite: Support pending input reads for PI nodes. 2013-03-11 10:45:14 +01:00
Andrew Talbot 2cc28bc7ae xmllite: Avoid signed-unsigned integer comparisons. 2013-03-08 11:00:36 +01:00
Nikolay Sivov 0a7d802ef3 xmllite: Basic test for chunk value read vs full value read. 2013-02-11 11:46:12 +01:00
Nikolay Sivov b97dd9b0e2 xmllite: Store start data pointer for comments. 2013-02-11 11:46:11 +01:00
Nikolay Sivov 8954671cdc xmllite: Fail to set input for external IXmlReaderInput. 2013-01-28 14:04:07 +01:00
Nikolay Sivov 9d664b2217 xmllite: Handle E_PENDING from stream for comment nodes. 2013-01-28 14:04:03 +01:00
Nikolay Sivov 6ab47275aa xmllite: Complete content parsing with implemented parts and stubs. 2013-01-23 12:48:51 +01:00
Nikolay Sivov fad7e7a011 xmllite: Implement end tag parsing. 2013-01-22 12:13:27 +01:00
Nikolay Sivov 1ae300d753 xmllite: Handle empty elements and transition to content/misc part, update depth on push. 2013-01-21 12:51:23 +01:00
Nikolay Sivov 77735419eb xmllite: Add a name stack for elements. 2013-01-21 12:51:22 +01:00
Nikolay Sivov 61b4673827 xmllite: Initial support for start tag parsing. 2013-01-18 13:28:38 +01:00
Nikolay Sivov e7c58fca12 xmllite: Initial implementation of DTD external id parsing. 2013-01-16 12:22:27 +01:00
Nikolay Sivov fc114a9b15 xmllite: Support whitespace nodes reporting. 2013-01-14 17:35:26 +01:00
Nikolay Sivov 617a70f6c7 xmllite: Add a stub function for DTD parsing. 2013-01-14 17:35:26 +01:00
Nikolay Sivov 430bde34f3 xmllite: Explicitly set value and names to empty for xml decl node. 2013-01-08 19:09:22 +01:00
Nikolay Sivov e79b2b3fc4 xmllite: Report value for PI nodes. 2013-01-08 19:09:16 +01:00
Nikolay Sivov 57148ae964 xmllite: Report node value for comment nodes. 2013-01-08 19:09:10 +01:00
Nikolay Sivov 0d715c2024 xmllite: Support name reporting for comments and PIs. 2013-01-07 13:38:08 +01:00
Nikolay Sivov 4c0f142e92 xmllite: Support streams starting with comments, simplify tests. 2013-01-07 13:38:07 +01:00
Nikolay Sivov 65bcdb2c80 xmllite: Implement PI parsing. 2013-01-07 13:38:00 +01:00
Francois Gouget f963f93964 Assorted spelling fixes. 2013-01-07 11:10:40 +01:00
Nikolay Sivov 5c2005ea14 xmllite: Implement decoding new input chunk from stream, use it for comment parsing. 2012-12-28 20:32:30 +01:00
Marcus Meissner bc5d953f7e xmllite: Remove duplicated statement (Coverity). 2012-12-28 11:26:19 +01:00
Nikolay Sivov beffac006c xmllite: Shrink buffer when enough data processed. 2012-12-26 18:23:04 +01:00
Frédéric Delanoy 2952db6403 xmllite: Avoid dead initialization (clang). 2012-12-20 12:01:33 +01:00
Nikolay Sivov f2eb6d018f xmllite: Remove dead code. 2012-12-19 14:38:58 +01:00
Nikolay Sivov c085b8d930 xmllite: Support comment nodes. 2012-12-19 14:38:58 +01:00
Nikolay Sivov 61483a581e xmllite: Track internal parser state to select expected node type. 2012-12-19 14:38:57 +01:00
Nikolay Sivov 201b1c2aba xmllite: Fix reported node type for attributes. 2012-12-06 14:20:10 +01:00
Nikolay Sivov f6e6b835b6 xmllite: Implement attribute iteration methods. 2012-12-06 14:19:53 +01:00
Nikolay Sivov 0dce2e6d9a xmllite: Initial support for attribute list. 2012-12-04 16:54:40 +01:00
Nikolay Sivov c23ce5976e xmllite: Fix equal sign parsing. 2012-11-28 20:14:44 +01:00
Nikolay Sivov 8b8fb88e4b xmllite: Support standalone declaration. 2012-11-28 20:14:44 +01:00
Nikolay Sivov 8e2bc1eb1b xmllite: Implement encoding declaration parsing. 2012-11-27 16:58:54 +01:00
Nikolay Sivov acb56b0796 xmllite: Add partial support for xml declaration parsing. 2012-11-26 11:56:28 +01:00
Nikolay Sivov eddd7fcf29 xmllite: Implement initial encoding switching. 2012-11-26 11:56:18 +01:00
Andrew Talbot 40300b24cc xmllite: Void functions should not return a value. 2012-11-26 11:55:32 +01:00
Nikolay Sivov dc2fe2a4be xmllite: Store remaining reader input parameters. 2012-11-20 11:55:16 +01:00
Nikolay Sivov befbc8f57d xmllite: Implement GetNodeType() for reader. 2012-11-20 11:55:11 +01:00
Nikolay Sivov d693790175 xmllite: Initial support for reader input encoding detection. 2012-11-20 11:55:05 +01:00
Nikolay Sivov 67c07ff42a xmllite: Store reader input impl pointer in reader structure. 2012-11-19 16:35:21 +01:00
Nikolay Sivov 6f7624f5d9 xmllite: Keep stream reference in reader input instead of reader itself. 2012-11-19 16:35:20 +01:00
Nikolay Sivov 522ae3ca0e xmllite: Add stub for reader input buffer. 2012-11-19 16:35:20 +01:00
Nikolay Sivov a2213cdbd7 xmllite: Use application defined IMalloc for reader input. 2012-11-19 16:35:19 +01:00
Nikolay Sivov c88cdc6e38 xmllite: Support application defined IMalloc for reader. 2012-11-19 16:35:18 +01:00
Nikolay Sivov ae0b830cf1 xmllite: Store DTD processing mode in reader. 2012-08-29 11:46:43 +02:00
Thomas Faber 4cd00f2b5e xmllite/tests: Fix build with MSVC. 2012-03-26 12:41:28 +02:00
Frédéric Delanoy 760faf01a9 tests: Assorted spelling fixes. 2011-08-04 18:27:37 +02:00
Alistair Leslie-Hughes b32ed46bda xmllite: Implement CreateXmlWriter. 2011-07-14 15:56:51 +02:00
Michael Stefaniuc 337e71d4f3 xmllite: COM cleanup in reader.c. 2011-03-28 17:08:54 +02:00
Austin English ea0e7d6421 xmllite/tests: Don't check test results inside if(0) (LLVM/Clang). 2011-02-09 09:27:21 -06:00
Michael Stefaniuc a36f51f357 xmllite/tests: Use an iface instead of a vtbl pointer in testinput. 2010-12-29 11:59:38 +01:00
Alexandre Julliard 730f01801f tests: Make some variables static. 2010-10-01 13:41:42 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Nikolay Sivov 6b912966a9 xmllite/tests: Fix node type names array, indices are sparse. 2010-01-27 18:46:09 +01:00
Nikolay Sivov 2c9633f676 xmllite/tests: Fix a typo in macro. 2010-01-27 18:46:08 +01:00
Nikolay Sivov b109c5c680 xmllite: Reset state to XmlReadState_Initial on input reset, update tests to run on new versions. 2010-01-26 12:09:22 +01:00
Nikolay Sivov 5864234051 xmllite: Don't release reader input reference on failure, as newer versions do. 2010-01-26 12:09:14 +01:00
Nikolay Sivov 07e2730c0e xmllite/tests: Add test for XML declaration parsing. 2010-01-26 12:09:08 +01:00
Nikolay Sivov 02da36631e xmllite: Initial support for just created reader state. 2010-01-25 13:27:57 +01:00
Nikolay Sivov 7b7011e595 xmllite: Implement a query through IXmlReaderInput for underlying stream interface,. 2010-01-25 13:27:51 +01:00
Paul Vriens 307b9fb687 xmllite/tests: Remove some tests that make Vista SP0 crash. 2010-01-22 13:07:34 +01:00
Nikolay Sivov 89092c928a xmllite: Basic input object creation on IXmlReader::SetInput(). 2010-01-22 13:07:24 +01:00
Nikolay Sivov 4e3283fdd2 xmllite: Add IXmlReaderInput stub implementation. 2010-01-22 13:06:40 +01:00
Nikolay Sivov 5c1f0dbae0 xmllite/tests: Test query for supported interface sequence while creating IXmlReaderInput instance. 2010-01-22 13:05:40 +01:00
Nikolay Sivov f9c51f8de9 xmllite: Add stub implementation of IXmlReader interface. 2010-01-19 12:43:30 +01:00
Nikolay Sivov 80a546cad5 xmllite/tests: Add basic test structure for IXmlReader. 2010-01-19 12:43:25 +01:00
Christian Costa 2f4423e41b xmllite: Add stubbed dll for xmllite. 2009-04-21 15:40:03 +02:00