aboutsummaryrefslogtreecommitdiffstats
path: root/src/xml.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* src/xml.c (init_libxml2_functions) [WINDOWSNT]: Remove unused local variable.Juanma Barranquero2012-04-071-2/+0
|
* Fix typo that broke non-Windows builds.Paul Eggert2012-04-071-1/+1
| | | | * xml.c (libxml2_loaded_p) [!!WINDOWSNT]: 'inine' -> 'inline'.
* Support building on MS-Windows with libxml2.Eli Zaretskii2012-04-071-14/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | src/makefile.w32-in (OBJ2): Add xml.$(O). (GLOBAL_SOURCES): Add xml.c. ($(BLD)/xml.$(O)): New dependency list. src/xml.c (DEF_XML2_FN, LOAD_XML2_FN) [WINDOWSNT]: New macros. (fn_htmlReadMemory, fn_xmlReadMemory, fn_xmlDocGetRootElement) (fn_xmlFreeDoc, fn_xmlCleanupParser, fn_xmlCheckVersion) [!WINDOWSNT]: New macros. (init_libxml2_functions, libxml2_loaded_p): New functions. (parse_region): Call fn_xmlCheckVersion instead of using the macro LIBXML_TEST_VERSION. Call libxml2 functions via the fn_* macros. (xml_cleanup_parser): New function, export for fn_xmlCleanupParser. Calls xmlCleanupParser only if libxml2 was loaded (or statically linked in). (Flibxml_parse_html_region, Flibxml_parse_xml_region): Call init_libxml2_functions before calling libxml2 functions. (syms_of_xml) <Qlibxml2_dll>: DEFSYM it. src/emacs.c: Don't include libxml/parser.h. (shut_down_emacs): Call xml_cleanup_parser, instead of calling xmlCleanupParser directly. src/ lisp.h [HAVE_LIBXML2]: Add prototype for xml_cleanup_parser. nt/configure.bat: Support building with libxml2. nt/INSTALL: nt/README.W32: Add information about libxml2. lisp/term/w32-win.el (dynamic-library-alist): Add libxml2 DLLs. lib-src/makefile.w32-in (obj): Add xml.o.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* * xml.c (parse_region): Make the parsing work for non-comment-starting XML ↵Lars Magne Ingebrigtsen2011-09-101-3/+9
| | | | | | files again. Fixes: debbugs:9144
* Fix up xmlCleanupParser sequence.Lars Magne Ingebrigtsen2011-09-031-1/+0
| | | | | | | * xml.c (parse_region): Don't call xmlCleanupParser after parsing, since this reportedly can destroy thread storage. * emacs.c (shut_down_emacs): Call xmlCleanupParser on shutdown.
* * src/xml.c: Fix Lisp_Object/int mixup.Stefan Monnier2011-07-241-2/+2
|
* * xml.c (parse_region): Remove unused localPaul Eggert2011-07-231-1/+0
| | | | that was recently introduced.
* * xml.c (parse_region): Make sure we always return a tree.Lars Magne Ingebrigtsen2011-07-201-1/+2
|
* * xml.c (parse_region): If a document contains only comments, return that, too.HAMANO Kiyoto2011-07-201-3/+15
|
* * xml.c (make_dom): Return comments, too.Lars Magne Ingebrigtsen2011-07-201-0/+8
|
* * src/xml.c (parse_region): Avoid creating spurious whiespace nodes.T.V. Raman2011-04-081-1/+1
| | | | See http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00200.html
* * xml.c (make_dom): Now static.Paul Eggert2011-03-181-1/+2
|
* * xml.c: conform to C89 pointer rulesPaul Eggert2011-02-061-6/+7
|
* Use SSDATA when the context wants char *.Paul Eggert2011-01-301-1/+1
| | | | | | | | | | * alloc.c, buffer.c, bytecode.c, callproc.c, dired.c: * dispnew.c, doc.c, editfns.c, emacs.c, fileio.c, filelock.c: * fns.c, font.c, frame.c, image.c, indent.c, keyboard.c: * lread.c, minibuf.c, print.c, process.c, search.c, widget.c: * xdisp.c, xfaces.c, xfns.c, xml.c, xselect.c, xterm.c: Use SSDATA (not SDATA) when the context of the expression wants char * (not unsigned char *).
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-1/+1
|
* Add 2011 to remaining FSF/AIST copyright years.Glenn Morris2011-01-151-1/+1
|
* Return CDATA sections (like <style>foo</style>) as text nodes.Lars Magne Ingebrigtsen2010-12-061-2/+3
| | | | Also ignore blank HTML nodes.
* Clean up trailing whitespace.Lars Magne Ingebrigtsen2010-10-021-2/+2
|
* xml.c: Rework the functions to take regions instead of strings,Lars Magne Ingebrigtsen2010-10-021-24/+36
| | | | | and rename the functions to reflect clearly that they come from the libxml package.
* * src/xml.c (parse_string): Use const.Dan Nicolaescu2010-09-301-1/+1
|
* Rename libxml2 functions, and make parse tree format consistent with xml.el.Chong Yidong2010-09-211-62/+67
| | | | | | | | | * xml.c: Switch to GNU indentation. (make_dom): Change parse tree format to match xml.el. (Fxml_parse_html_string_internal): Rename from html-parse-string. (Fxml_parse_string_internal): Rename from xml-parse-string. * configure.in: Announce whether libxml2 is linked to.
* * xml.c (parse_string): Renamed to parse_string(), since that'sLars Magne Ingebrigtsen2010-09-141-4/+4
| | | | | what it does. (parse_string): Return nil when the document can't be parsed.
* * xml.c (Fxml_parse_string, Fxml_parse_string): Revert lastAndreas Schwab2010-09-141-10/+8
| | | | change. Don't make first argument optional. Doc fix.
* * xml.c (Fxml_parse_string, Fhtml_parse_string): Fix up the parametersLars Magne Ingebrigtsen2010-09-141-2/+4
| | | | | | for the doc string. From Leo <sdl.web@gmail.com> (tiny change)
* * xml.c (Fhtml_parse_string, Fxml_parse_string): Mention BASE-URL.Lars Magne Ingebrigtsen2010-09-121-2/+6
|
* Remove some trailing white space.Lars Magne Ingebrigtsen2010-09-101-7/+7
|
* Add support for the libxml2 library.Lars Magne Ingebrigtsen2010-09-101-0/+137
This adds the html-parse-string and xml-parse-string functions in the new file src/xml.c, as well as autoconf detection of the library.