Commit Graph

45 Commits (7325b798b45c3ab1b9a984e87b4d82169fa43e17)

Author SHA1 Message Date
Christian Costa 7325b798b4 d3dxof: Move list type and list nb elements into the parse context. 2013-06-03 11:56:09 +02:00
Christian Costa f39547f5a8 d3dxof: Uncomment some traces and use better name for some variables. 2013-06-03 11:56:00 +02:00
Christian Costa e7c3b03531 d3dxof: Cleanup separators handling and allow multi-semicolons + single comma separator. 2013-05-22 11:25:44 +02:00
Christian Costa a180e5ed00 d3dxof: Get rid of go_to_next_definition. 2013-04-30 12:32:47 +02:00
Christian Costa 1bd5bfebae d3dxof: Only parse templates for object files, but with RegisterTemplates parse the whole file. 2013-04-30 12:32:41 +02:00
Christian Costa 37d037749d d3dxof: Avoid dealing with remaining byte until next token or eof, check_TOKEN handles them fine. 2013-04-30 12:29:33 +02:00
Christian Costa 6668a64145 d3dxof: Get rid of is_template_available. 2013-04-29 20:30:54 +02:00
Christian Costa 1b8b629445 d3dxof: Introduce TOKEN_NONE and TOKEN_ERROR to differentiate end of file from error. 2013-04-29 20:30:54 +02:00
Andrew Talbot 1af3862186 d3dxof: Avoid signed-unsigned integer comparisons. 2013-01-04 11:59:23 +01:00
Christian Costa 67488dec09 d3dxof: Do not allow separator to terminate the string. Only the double quote can do that. 2012-03-13 10:54:02 +01:00
Christian Costa b9353b73ae d3dxof: Check the right offset before dereferencing next byte. 2012-03-08 19:22:49 +01:00
Christian Costa 6ee15adf4d d3dxof: Empty arrays can have the semicolon at the end or not so handle both cases and add tests for them.
This fixes a regression introduced by commit 07931f73f0.
2012-02-27 14:15:25 +01:00
Christian Costa 07931f73f0 d3dxof: Fix parsing of empty array + tests. 2012-02-20 11:44:51 +01:00
Christian Costa 46d4bec269 d3dxof: Decompress all MSZIP chunks of the compressed file and update file format description. 2012-02-17 18:06:46 +01:00
Christian Costa d581f1bf7d d3dxof: Enable retrieving a particular member in GetData + tests. 2012-02-15 16:27:11 +01:00
Christian Costa bb4c210888 d3dxof: Use buffer start followed by offset when accessing data. 2012-01-25 20:39:48 +01:00
André Hentschel b5ba054ce8 Assorted header comment cleanup. 2012-01-04 19:35:13 +01:00
Francois Gouget 8ca8267cab d3dxof: Fix the spelling of the children structure fields and constants. 2011-08-03 14:15:48 +02:00
Frédéric Delanoy f932abf326 dlls: Assorted spelling fixes. 2011-08-01 18:26:27 +02:00
Marcus Meissner 5ba1f867a1 d3dxof: Check returns of read_bytes (Coverity). 2011-06-16 21:04:44 +02:00
Francois Gouget bb658848c0 d3dxof: Make read_bytes() static. 2011-06-13 11:32:54 +02:00
Dylan Smith 80705f5a91 d3dxof: Factor out parse template loops into a function. 2011-06-09 13:27:24 +02:00
Dylan Smith 18740e8623 d3dxof: Factor out duplicated code for parsing X file header. 2011-06-09 13:27:21 +02:00
Dylan Smith 0857d2b26b d3dxof: Remove assumption of 4 bytes pointers for LPSTR value. 2011-05-20 10:34:52 +02:00
Dylan Smith 7cf7421e7a d3dxof: Initialize binary member variable of xobjects. 2011-04-21 16:53:43 +02:00
Dylan Smith 10fbf5f542 d3dxof: Avoid overflowing temp buffers for large tokens. 2011-04-21 16:53:43 +02:00
Dylan Smith 555fe78766 d3dxof: Add missing checks for remaining bytes during parsing. 2011-04-21 16:53:43 +02:00
Michael Curran 7d5099e4fc d3dxof: Changed is_string function to accept spaces. 2011-04-11 19:31:39 +02:00
Michael Curran 3d9ea480a0 d3dxof: Adjusted to allow for parsing of optional template elements. 2011-04-11 19:31:39 +02:00
Christian Costa f2fe2f7e84 d3dxof: Increase MAX_SUBOBJECTS and do the corresponding checks at the right place. 2010-03-23 12:19:49 +01:00
Christian Costa 4d79c26306 d3dxof: Do not expect a separator when there is no element. 2010-02-01 12:48:55 +01:00
Christian Costa 65b7bdcef9 d3dxof: Add other debug channel for parsing. 2010-02-01 12:48:50 +01:00
Christian Costa 39772f9749 d3dxof: Enable referencing objects defined in current top-level object. 2009-12-31 12:12:17 +01:00
Christian Costa 24d6c0a90d d3dxof: Get rid of cur_subobject. 2009-12-31 12:12:17 +01:00
Christian Costa b9561c9cf9 d3dxof: Properly initialize nb_childs. 2009-10-23 12:23:28 +02:00
Jeff Zaroyko 8846f8ac30 d3dxof: Remove unused variable. 2009-10-16 13:36:48 +02:00
Christian Costa 8dc455bc63 d3dxof: Accept longer string size. 2009-04-22 12:56:05 +02:00
Christian Costa 30140d0186 d3dxof: Remove limitation on data buffer size. 2009-03-25 11:09:05 +01:00
Christian Costa df48d6f578 d3dxof: Use offsets to reference data instead of pointers so data buffer can be resized. 2009-03-12 13:09:53 +01:00
Christian Costa db30aa149e d3dxof: Make is_keyword handle end of file correctly. 2009-02-10 14:41:40 +01:00
Christian Costa 868f63935c d3dxof: Fix dead code. 2009-01-30 11:43:48 +01:00
Christian Costa 75ac489ea4 d3dxof: Avoid accessing template/object buffer directly. 2009-01-12 13:19:03 +01:00
Andrew Talbot 7a326f9405 d3dxof: Declare a function static. 2009-01-09 14:21:26 +01:00
Francois Gouget e30bb829b3 d3dxof: Reorder some functions to avoid forward declarations. 2009-01-07 14:40:38 +01:00
Christian Costa eb4eda2757 d3dxof: Move X files parsing into a separate file. 2008-12-31 14:07:23 +01:00