Parser.XML: Reduce number of errors thrown from autoconvert().
Merge commit '722771973bd' into patches/lyslyskom22891031 * commit '722771973bd': (6177 commits) Verify that callablep responses are aligned with reality. ...
Merge commit '2470270f500c728d10b8895314d8d8b07016e37b' into grubba/typechecker-automap * commit '2470270f500c728d10b8895314d8d8b07016e37b': (18681 commits) Removed the old typechecker. ...
Merge remote-tracking branch 'origin/master' into new_utf8
Merge remote-tracking branch 'origin/8.1' into gobject-introspection
Avoid sending function name to get_all_args
Remove HAVE_CONFIG_H checks.
Merge commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e' into patches/pike63 * commit '75c9d1806f1a69ca21c27a2c2fe1b4a6ea38e77e': (19587 commits) ...
Add more FALLTHRU directives where needed
Fix spelling of FALLTHRU directive The non-standard spelling "FALL_THROUGH" is not recognized by gcc 7.3. Also, the comment must not contain any other text, or be placed inside braces.
Merge remote-tracking branch 'origin/8.1' into peter/travis
Clena up stack in create
Build [Parser.XML.Simple]: Removed redundant declaration. Fixes compilation issues on NT.
One more o_range -> o_range2 conversion.
Bugfix decoding of UTF-8 encoded BOM.
VERBOSE_XMLDEBUG works again.
Build [Parser]: Compilefix for issue with Pike 7.8 precompiler. This is actually pretty ugly, ideas welcome.
Build [Parser.XML]: Use correct storage class.
Build [Parser]: Fixed issue with Pike 8.0 precompiler. The symbol Simple_Context_program_fun_num had the wrong storage class due to DEFAULT_CMOD_STORAGE having been set to empty by global.h. Thanks to Marcus Comstedt for the report. Fixes [LysLysKOM 21699014].
Removed PTRDIFF_T_TO_LONG
SIMPLE_TOO_FEW_ARGS_ERROR should be SIMPLE_WRONG_NUM_ARGS_ERROR since long ago. Replaced them and tighten up argument control in places.
SIMPLE_BAD_ARG_ERROR is only kept for compatibility, but we still had 500+ uses of it.
inline is part of c99 We do have.. excessive amounts of inline, incidentally. :)
It turns out that 0 arguments is much more common than 10. Also, 0-sized mappings do not allocate any mapping data object at all. This saved 129 of 316Mb when parsing a 30Mb XML file (of the remaining memory most is gc markers when running gc)
Don't clean up stack before returning from void functions.
Removed Intel IA64 compiler specific DO_NOT_WARN.
Static:ified a lot of strings. This is more or less all instances of push_text(static data here). Left to do: make_shared_X_string(static data here). :)
Build: Survive precompilation with Pike 8.0.
Removed trailing spaces.
Parser.XML: Added fallback marker. Fixes [CID 742611].
Add some breaks as a minor optimization. CID 742607
Parser.XML: Fixed some parser bugs. Fixes [CID 742608], [CID 742609], [CID 742610] and [CID 742612].
Parser.XML: Style change. Exit a do-while(0) loop with break instead of continue to keep Coverity happy. Fixes [CID 1294688].
Removed unused defines.
Binary size: push_constant_text -> push_text when not time-critical. Especially in error handling, and code that does a lot of other string operations anyway the speed gain is not wort the 100+ bytes code size of each instance of push_constant_text This saves about 20K of code size (main pike binary), while not really changing the speed much. push_constant_text that seemed to be in at least pseudo-time-critical code was kept as they were. On a related note, push_constant_text(":") four times in a row creates four different string variables, for obvious reasons. Some of the remaining push_constant_text really should have a module/file local string variable, even though that is more bothersome to create. It might be nice to have this in .cmod files automatically.
removed some declarations of undefined static functions
Use UNUSED for the extra callback arguments (they are read directly from the stack).
Rewrite Locale.Charset to Charset
Added new block allocator. It dramatically speeds up free, when allocating many blocks and deallocation happens non linearly.
Wrap unused parameters in UNUSED(), and debug-only parameters in DEBUGUSED(), to cut down on compiler warnings. The macro also renames parameters to catch accidental use. (There are more places to clean up but I don't want to modify code that isn't compiling on my machine.)
Reinstate legacy XML parsing modes until further notice.
Remove superfluous legacy compat support prior to 7.8.
Merge remote-tracking branch 'origin/8.0' into string_alloc Conflicts: src/stralloc.c
memcmp is C89 and 4.3BSD
More consistent use of error macros.
Merge branch '8.0' into per/rdrnd
Merge branch '8.0' into gobject-introspection
Merge remote-tracking branch 'origin/7.9' into pdf
new block alloc
ammend this
Removed $Id$.
Atomic megapatch: Use svalue accessor macros everywhere.
No more foreign_idents. More pain than they are worth.
No more foreign_idents.
Fixed bug in parsing of DTD enumerations. White-space is now allowed after the '|'-separator. Rev: src/modules/Parser/xml.cmod:1.107
Made the callback for <![IGNORE[ return only the stuff between the brackets as content, like <![CDATA[ does it. Rev: src/modules/Parser/xml.cmod:1.106
Several robustness fixes related to end of file handling. Rev: src/modules/Parser/xml.cmod:1.105
Fixed missing type-check in previous commit. Rev: src/modules/Parser/xml.cmod:1.104
Added optional argument to parse(), parse_dtd(), push_string() and create() to allow for specifying a source context for the data to be parsed. The source context will be in the entry "context" in the callbackinfo mapping sent to the callback function. Updated the Autodoc mk II markup. Rev: src/modules/Parser/xml.cmod:1.103
Fixed issue with parsing of pe-references in entity declarations (LysLysKOM 17064930). Fixed some error messages. Rev: src/modules/Parser/xml.cmod:1.102
Removed an unused variable. Rev: src/modules/Parser/xml.cmod:1.101 Rev: src/post_modules/GL/auto.c.in:1.55
Use p_wchar2 instead of unsigned int. Rev: src/modules/Parser/xml.cmod:1.100
ID_STATIC -> ID_PROTECTED Rev: src/modules/Gdbm/gdbmmod.c:1.34 Rev: src/modules/Gmp/mpf.cmod:1.39 Rev: src/modules/Gmp/mpq.cmod:1.31 Rev: src/modules/Gmp/mpz_glue.c:1.181 Rev: src/modules/Math/matrix_code.h:1.20 Rev: src/modules/Math/transforms.cmod:1.15 Rev: src/modules/Mysql/mysql.c:1.114 Rev: src/modules/Parser/html.c:1.181 Rev: src/modules/Parser/xml.cmod:1.99 Rev: src/modules/SANE/sane.c:1.26 Rev: src/modules/_Charset/charsetmod.c:1.66 Rev: src/modules/_Charset/iso2022.c:1.48 Rev: src/modules/_Regexp_PCRE/pcre_glue.cmod:1.20 Rev: src/modules/_Roxen/roxen.c:1.51 Rev: src/modules/files/stat.c:1.34 Rev: src/modules/files/udp.c:1.80 Rev: src/post_modules/Nettle/nettle.cmod:1.46 Rev: src/post_modules/Nettle/nt.cmod:1.19 Rev: src/post_modules/SQLite/sqlite.cmod:1.21 Rev: src/post_modules/Shuffler/Shuffler.cmod:1.46
Added gc_trivial to some EXIT functions. Rev: src/backend.cmod:1.215 Rev: src/builtin.cmod:1.202 Rev: src/iterators.cmod:1.68 Rev: src/modules/Gmp/mpf.cmod:1.37 Rev: src/modules/Gmp/mpq.cmod:1.29 Rev: src/modules/Kerberos/kerberos.cmod:1.3 Rev: src/modules/Math/transforms.cmod:1.14 Rev: src/modules/Parser/xml.cmod:1.98 Rev: src/modules/_Regexp_PCRE/pcre_glue.cmod:1.19
Eradicated all instances of setting type to T_INT without also setting the subtype in an svalue. From now on one should either set the subtype or use the new svalue type PIKE_T_FREE (see svalue.h). Rev: src/OCPikeInterpreter.m:1.3 Rev: src/apply_low.h:1.32 Rev: src/array.c:1.198 Rev: src/array.h:1.71 Rev: src/bignum.c:1.42 Rev: src/builtin.cmod:1.193 Rev: src/builtin_functions.c:1.650 Rev: src/configure.in:1.1038 Rev: src/cpp.c:1.164 Rev: src/encode.c:1.250 Rev: src/error.c:1.151 Rev: src/interpret.c:1.385 Rev: src/interpret_functions.h:1.197 Rev: src/iterators.cmod:1.64 Rev: src/las.c:1.403 Rev: src/main.c:1.228 Rev: src/mapping.c:1.195 Rev: src/module.c:1.47 Rev: src/modules/Gmp/mpz_glue.c:1.170 Rev: src/modules/HTTPLoop/accept_and_parse.c:1.39 Rev: src/modules/HTTPLoop/requestobject.c:1.31 Rev: src/modules/Image/colortable.c:1.130 Rev: src/modules/Java/jvm.c:1.84 Rev: src/modules/Parser/html.c:1.178 Rev: src/modules/Parser/xml.cmod:1.97 Rev: src/modules/Postgres/postgres.c:1.55 Rev: src/modules/_math/math.c:1.87 Rev: src/modules/files/sendfile.c:1.78 Rev: src/modules/spider/spider.c:1.134 Rev: src/multiset.c:1.106 Rev: src/object.c:1.281 Rev: src/operators.c:1.226 Rev: src/pike_error.h:1.42 Rev: src/post_modules/Shuffler/Shuffler.cmod:1.45 Rev: src/post_modules/_ADT/circular_list.cmod:1.18 Rev: src/post_modules/_ADT/sequence.cmod:1.19 Rev: src/program.c:1.642 Rev: src/signal_handler.c:1.331 Rev: src/sscanf.c:1.170 Rev: src/svalue.c:1.234 Rev: src/svalue.h:1.149
Added lots of missing void. Rev: src/modules/Parser/xml.cmod:1.96
Fixed typo Rev: src/modules/Parser/xml.cmod:1.95
Fix for a typo Rev: src/modules/Parser/xml.cmod:1.94
Fixed support for PEReferences in the DOCTYPE internal subset. Now saves a verbatim copy of the internal subset in the attribute "internal_subset" for the DOCTYPE tag. Rev: src/modules/Parser/xml.cmod:1.93
Fixed type in forward decl. Rev: src/modules/Parser/xml.cmod:1.92
Introduced Simple.Context. Rev: src/modules/Parser/xml.cmod:1.91
Minor optimization. VERBOSE_XMLDEBUG should now work again. Rev: src/modules/Parser/xml.cmod:1.90
A few more of the same. Rev: src/modules/Parser/xml.cmod:1.89
Bugfix for obscure case. Minor optimization. Rev: src/modules/Parser/xml.cmod:1.88
Some cleanups. Rev: src/modules/Parser/xml.cmod:1.87
Parser.XML.Simple is now a PIKECLASS. Rev: src/modules/Parser/xml.cmod:1.86
Made a cmod out of xml.c. Rev: src/modules/Parser/Makefile.in:1.11 Rev: src/modules/Parser/xml.c:1.85(DEAD) Rev: src/modules/Parser/xml.cmod:1.85