Lines Matching refs:ptr
36 #define XMLWRITER_FROM_OBJECT(ptr, object) \ argument
39 ptr = obj->ptr; \
40 if (!ptr) { \
55 if (intern->ptr) { in xmlwriter_object_dtor()
56 xmlFreeTextWriter(intern->ptr); in xmlwriter_object_dtor()
57 intern->ptr = NULL; in xmlwriter_object_dtor()
204 xmlTextWriterPtr ptr; in ZEND_GET_MODULE() local
213 XMLWRITER_FROM_OBJECT(ptr, self); in ZEND_GET_MODULE()
219 if (ptr) { in ZEND_GET_MODULE()
220 retval = internal_function(ptr, (xmlChar *) name); in ZEND_GET_MODULE()
231 xmlTextWriterPtr ptr; in php_xmlwriter_end() local
238 XMLWRITER_FROM_OBJECT(ptr, self); in php_xmlwriter_end()
240 if (ptr) { in php_xmlwriter_end()
241 retval = internal_function(ptr); in php_xmlwriter_end()
253 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
261 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
263 if (ptr) { in PHP_FUNCTION()
264 retval = xmlTextWriterSetIndent(ptr, indent); in PHP_FUNCTION()
298 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
308 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
312 if (ptr) { in PHP_FUNCTION()
313 retval = xmlTextWriterStartAttributeNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
326 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
336 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
340 if (ptr) { in PHP_FUNCTION()
341 retval = xmlTextWriterWriteAttribute(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
354 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
364 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
368 if (ptr) { in PHP_FUNCTION()
369 …retval = xmlTextWriterWriteAttributeNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri, (x… in PHP_FUNCTION()
389 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
399 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
403 if (ptr) { in PHP_FUNCTION()
404 retval = xmlTextWriterStartElementNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
432 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
442 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
446 if (ptr) { in PHP_FUNCTION()
448 retval = xmlTextWriterStartElement(ptr, (xmlChar *)name); in PHP_FUNCTION()
452 xmlTextWriterEndElement(ptr); in PHP_FUNCTION()
457 retval = xmlTextWriterWriteElement(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
471 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
481 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
485 if (ptr) { in PHP_FUNCTION()
487 retval = xmlTextWriterStartElementNS(ptr,(xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
491 retval = xmlTextWriterEndElement(ptr); in PHP_FUNCTION()
496 …retval = xmlTextWriterWriteElementNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri, (xml… in PHP_FUNCTION()
524 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
534 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
538 if (ptr) { in PHP_FUNCTION()
539 retval = xmlTextWriterWritePI(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
552 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
559 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
561 if (ptr) { in PHP_FUNCTION()
562 retval = xmlTextWriterStartCDATA(ptr); in PHP_FUNCTION()
603 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
610 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
612 if (ptr) { in PHP_FUNCTION()
613 retval = xmlTextWriterStartComment(ptr); in PHP_FUNCTION()
640 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
649 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
651 if (ptr) { in PHP_FUNCTION()
652 retval = xmlTextWriterStartDocument(ptr, version, enc, alone); in PHP_FUNCTION()
672 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
681 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
683 if (ptr) { in PHP_FUNCTION()
684 retval = xmlTextWriterStartDTD(ptr, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid); in PHP_FUNCTION()
704 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
713 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
715 if (ptr) { in PHP_FUNCTION()
716 …retval = xmlTextWriterWriteDTD(ptr, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid, (xmlChar … in PHP_FUNCTION()
743 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
753 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
757 if (ptr) { in PHP_FUNCTION()
758 retval = xmlTextWriterWriteDTDElement(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
785 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
795 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
799 if (ptr) { in PHP_FUNCTION()
800 retval = xmlTextWriterWriteDTDAttlist(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
813 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
823 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
827 if (ptr) { in PHP_FUNCTION()
828 retval = xmlTextWriterStartDTDEntity(ptr, isparm, (xmlChar *)name); in PHP_FUNCTION()
848 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
863 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
867 if (ptr) { in PHP_FUNCTION()
868 …retval = xmlTextWriterWriteDTDEntity(ptr, pe, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid,… in PHP_FUNCTION()
882 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
909 ptr = xmlNewTextWriterFilename(valid_file, 0); in PHP_FUNCTION()
911 if (!ptr) { in PHP_FUNCTION()
916 if (ze_obj->ptr) { in PHP_FUNCTION()
917 xmlFreeTextWriter(ze_obj->ptr); in PHP_FUNCTION()
922 ze_obj->ptr = ptr; in PHP_FUNCTION()
927 ze_obj->ptr = ptr; in PHP_FUNCTION()
937 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
958 ptr = xmlNewTextWriterMemory(buffer, 0); in PHP_FUNCTION()
959 if (! ptr) { in PHP_FUNCTION()
965 if (ze_obj->ptr) { in PHP_FUNCTION()
966 xmlFreeTextWriter(ze_obj->ptr); in PHP_FUNCTION()
971 ze_obj->ptr = ptr; in PHP_FUNCTION()
976 ze_obj->ptr = ptr; in PHP_FUNCTION()
986 xmlTextWriterPtr ptr; in php_xmlwriter_flush() local
995 XMLWRITER_FROM_OBJECT(ptr, self); in php_xmlwriter_flush()
997 if (ptr) { in php_xmlwriter_flush()
1002 output_bytes = xmlTextWriterFlush(ptr); in php_xmlwriter_flush()