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()
207 xmlTextWriterPtr ptr; in ZEND_GET_MODULE() local
216 XMLWRITER_FROM_OBJECT(ptr, self); in ZEND_GET_MODULE()
222 if (ptr) { in ZEND_GET_MODULE()
223 retval = internal_function(ptr, (xmlChar *) name); in ZEND_GET_MODULE()
234 xmlTextWriterPtr ptr; in php_xmlwriter_end() local
241 XMLWRITER_FROM_OBJECT(ptr, self); in php_xmlwriter_end()
243 if (ptr) { in php_xmlwriter_end()
244 retval = internal_function(ptr); in php_xmlwriter_end()
256 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
264 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
266 if (ptr) { in PHP_FUNCTION()
267 retval = xmlTextWriterSetIndent(ptr, indent); in PHP_FUNCTION()
301 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
311 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
315 if (ptr) { in PHP_FUNCTION()
316 retval = xmlTextWriterStartAttributeNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
329 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
339 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
343 if (ptr) { in PHP_FUNCTION()
344 retval = xmlTextWriterWriteAttribute(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
357 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
367 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
371 if (ptr) { in PHP_FUNCTION()
372 …retval = xmlTextWriterWriteAttributeNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri, (x… in PHP_FUNCTION()
392 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
402 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
406 if (ptr) { in PHP_FUNCTION()
407 retval = xmlTextWriterStartElementNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
435 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
445 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
449 if (ptr) { in PHP_FUNCTION()
451 retval = xmlTextWriterStartElement(ptr, (xmlChar *)name); in PHP_FUNCTION()
455 retval = xmlTextWriterEndElement(ptr); in PHP_FUNCTION()
460 retval = xmlTextWriterWriteElement(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
474 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
484 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
488 if (ptr) { in PHP_FUNCTION()
490 retval = xmlTextWriterStartElementNS(ptr,(xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri); in PHP_FUNCTION()
494 retval = xmlTextWriterEndElement(ptr); in PHP_FUNCTION()
499 …retval = xmlTextWriterWriteElementNS(ptr, (xmlChar *)prefix, (xmlChar *)name, (xmlChar *)uri, (xml… in PHP_FUNCTION()
527 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
537 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
541 if (ptr) { in PHP_FUNCTION()
542 retval = xmlTextWriterWritePI(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
555 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
562 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
564 if (ptr) { in PHP_FUNCTION()
565 retval = xmlTextWriterStartCDATA(ptr); in PHP_FUNCTION()
606 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
613 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
615 if (ptr) { in PHP_FUNCTION()
616 retval = xmlTextWriterStartComment(ptr); in PHP_FUNCTION()
643 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
652 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
654 if (ptr) { in PHP_FUNCTION()
655 retval = xmlTextWriterStartDocument(ptr, version, enc, alone); in PHP_FUNCTION()
675 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
684 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
686 if (ptr) { in PHP_FUNCTION()
687 retval = xmlTextWriterStartDTD(ptr, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid); in PHP_FUNCTION()
707 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
716 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
718 if (ptr) { in PHP_FUNCTION()
719 …retval = xmlTextWriterWriteDTD(ptr, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid, (xmlChar … in PHP_FUNCTION()
746 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
756 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
760 if (ptr) { in PHP_FUNCTION()
761 retval = xmlTextWriterWriteDTDElement(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
788 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
798 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
802 if (ptr) { in PHP_FUNCTION()
803 retval = xmlTextWriterWriteDTDAttlist(ptr, (xmlChar *)name, (xmlChar *)content); in PHP_FUNCTION()
816 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
826 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
830 if (ptr) { in PHP_FUNCTION()
831 retval = xmlTextWriterStartDTDEntity(ptr, isparm, (xmlChar *)name); in PHP_FUNCTION()
851 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
866 XMLWRITER_FROM_OBJECT(ptr, self); in PHP_FUNCTION()
870 if (ptr) { in PHP_FUNCTION()
871 …retval = xmlTextWriterWriteDTDEntity(ptr, pe, (xmlChar *)name, (xmlChar *)pubid, (xmlChar *)sysid,… in PHP_FUNCTION()
885 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
912 ptr = xmlNewTextWriterFilename(valid_file, 0); in PHP_FUNCTION()
914 if (!ptr) { in PHP_FUNCTION()
919 if (ze_obj->ptr) { in PHP_FUNCTION()
920 xmlFreeTextWriter(ze_obj->ptr); in PHP_FUNCTION()
925 ze_obj->ptr = ptr; in PHP_FUNCTION()
930 ze_obj->ptr = ptr; in PHP_FUNCTION()
940 xmlTextWriterPtr ptr; in PHP_FUNCTION() local
961 ptr = xmlNewTextWriterMemory(buffer, 0); in PHP_FUNCTION()
962 if (! ptr) { in PHP_FUNCTION()
968 if (ze_obj->ptr) { in PHP_FUNCTION()
969 xmlFreeTextWriter(ze_obj->ptr); in PHP_FUNCTION()
974 ze_obj->ptr = ptr; in PHP_FUNCTION()
979 ze_obj->ptr = ptr; in PHP_FUNCTION()
989 xmlTextWriterPtr ptr; in php_xmlwriter_flush() local
998 XMLWRITER_FROM_OBJECT(ptr, self); in php_xmlwriter_flush()
1000 if (ptr) { in php_xmlwriter_flush()
1005 output_bytes = xmlTextWriterFlush(ptr); in php_xmlwriter_flush()