diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xml.c | 8 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 29f410cad86..807b46c1052 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-09-14 Lars Magne Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * xml.c (parse_string): Renamed to parse_string(), since that's | ||
| 4 | what it does. | ||
| 5 | (parse_string): Return nil when the document can't be parsed. | ||
| 6 | |||
| 1 | 2010-09-14 Jan Djärv <jan.h.d@swipnet.se> | 7 | 2010-09-14 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 8 | ||
| 3 | * xterm.c (get_current_vm_state): New function. | 9 | * xterm.c (get_current_vm_state): New function. |
| @@ -69,11 +69,11 @@ Lisp_Object make_dom (xmlNode *node) | |||
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | static Lisp_Object | 71 | static Lisp_Object |
| 72 | parse_buffer (Lisp_Object string, Lisp_Object base_url, int htmlp) | 72 | parse_string (Lisp_Object string, Lisp_Object base_url, int htmlp) |
| 73 | { | 73 | { |
| 74 | xmlDoc *doc; | 74 | xmlDoc *doc; |
| 75 | xmlNode *node; | 75 | xmlNode *node; |
| 76 | Lisp_Object result; | 76 | Lisp_Object result = Qnil; |
| 77 | int ibeg, iend; | 77 | int ibeg, iend; |
| 78 | char *burl = ""; | 78 | char *burl = ""; |
| 79 | 79 | ||
| @@ -114,7 +114,7 @@ If BASE-URL is non-nil, it will be used to expand relative URLs in | |||
| 114 | the HTML document. */) | 114 | the HTML document. */) |
| 115 | (Lisp_Object string, Lisp_Object base_url) | 115 | (Lisp_Object string, Lisp_Object base_url) |
| 116 | { | 116 | { |
| 117 | return parse_buffer (string, base_url, 1); | 117 | return parse_string (string, base_url, 1); |
| 118 | } | 118 | } |
| 119 | 119 | ||
| 120 | DEFUN ("xml-parse-string", Fxml_parse_string, Sxml_parse_string, | 120 | DEFUN ("xml-parse-string", Fxml_parse_string, Sxml_parse_string, |
| @@ -124,7 +124,7 @@ If BASE-URL is non-nil, it will be used to expand relative URLs in | |||
| 124 | the XML document. */) | 124 | the XML document. */) |
| 125 | (Lisp_Object string, Lisp_Object base_url) | 125 | (Lisp_Object string, Lisp_Object base_url) |
| 126 | { | 126 | { |
| 127 | return parse_buffer (string, base_url, 0); | 127 | return parse_string (string, base_url, 0); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| 130 | 130 | ||