| OLD | NEW |
| 1 /* | 1 /* |
| 2 * xmlIO.c : implementation of the I/O interfaces used by the parser | 2 * xmlIO.c : implementation of the I/O interfaces used by the parser |
| 3 * | 3 * |
| 4 * See Copyright for the status of this software. | 4 * See Copyright for the status of this software. |
| 5 * | 5 * |
| 6 * daniel@veillard.com | 6 * daniel@veillard.com |
| 7 * | 7 * |
| 8 * 14 Nov 2000 ht - for VMS, truncated name of long functions to under 32 char | 8 * 14 Nov 2000 ht - for VMS, truncated name of long functions to under 32 char |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 1656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1667 buff->size = new_size; | 1667 buff->size = new_size; |
| 1668 buff->zbuff = tmp_ptr; | 1668 buff->zbuff = tmp_ptr; |
| 1669 buff->zctrl.next_out = tmp_ptr + cur_used; | 1669 buff->zctrl.next_out = tmp_ptr + cur_used; |
| 1670 buff->zctrl.avail_out = new_size - cur_used; | 1670 buff->zctrl.avail_out = new_size - cur_used; |
| 1671 } | 1671 } |
| 1672 else { | 1672 else { |
| 1673 xmlChar msg[500]; | 1673 xmlChar msg[500]; |
| 1674 xmlStrPrintf(msg, 500, | 1674 xmlStrPrintf(msg, 500, |
| 1675 "xmlZMemBuffExtend: %s %lu bytes.\n", | 1675 "xmlZMemBuffExtend: %s %lu bytes.\n", |
| 1676 "Allocation failure extending output buffer to", | 1676 "Allocation failure extending output buffer to", |
| 1677 » » new_size ); | 1677 » » (unsigned long) new_size ); |
| 1678 xmlIOErr(XML_IO_WRITE, (const char *) msg); | 1678 xmlIOErr(XML_IO_WRITE, (const char *) msg); |
| 1679 } | 1679 } |
| 1680 | 1680 |
| 1681 return ( rc ); | 1681 return ( rc ); |
| 1682 } | 1682 } |
| 1683 | 1683 |
| 1684 /** | 1684 /** |
| 1685 * xmlZMemBuffAppend | 1685 * xmlZMemBuffAppend |
| 1686 * @buff: Buffer used to compress and consolidate data | 1686 * @buff: Buffer used to compress and consolidate data |
| 1687 * @src: Uncompressed source content to append to buffer | 1687 * @src: Uncompressed source content to append to buffer |
| (...skipping 2489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4177 } | 4177 } |
| 4178 } | 4178 } |
| 4179 input = xmlDefaultExternalEntityLoader((const char *) resource, ID, ctxt); | 4179 input = xmlDefaultExternalEntityLoader((const char *) resource, ID, ctxt); |
| 4180 if (resource != (xmlChar *) URL) | 4180 if (resource != (xmlChar *) URL) |
| 4181 xmlFree(resource); | 4181 xmlFree(resource); |
| 4182 return(input); | 4182 return(input); |
| 4183 } | 4183 } |
| 4184 | 4184 |
| 4185 #define bottom_xmlIO | 4185 #define bottom_xmlIO |
| 4186 #include "elfgcchack.h" | 4186 #include "elfgcchack.h" |
| OLD | NEW |