Commits

ma...@9ae0c189-cd1f-4510-a509-f4891f5cf20d  committed cceab6d

Merge changes with phish's and correct his 2 space tabs (grr! :-)

  • Participants
  • Parent commits 4b95b31

Comments (0)

Files changed (3)

     warn(buffer);
 }
 
-xmlParserCtxtPtr
-LibXML_get_context(SV * self)
-{
-    SV ** ctxt_sv;
-    ctxt_sv = hv_fetch((HV *)SvRV(self), "_context", 8, 0);
-    if (!ctxt_sv) {
-        croak("cannot fetch context!");
-    }
-    return (xmlParserCtxtPtr)SvIV((SV*)SvRV(*ctxt_sv));
-}
-
 int
 LibXML_read_perl (SV * ioref, char * buffer, int len)
 {
 
 xmlNodePtr
 domSetOwnerDocument( xmlNodePtr self, xmlDocPtr newDoc ) {
-  if ( newDoc == NULL ) {
-    return NULL;
-  }
+    if ( newDoc == NULL ) {
+        return NULL;
+    }
 
-  if ( self!= NULL ) {
-    xmlNodePtr pNode = self->children;
+    if ( self != NULL ) {
+        xmlNodePtr pNode = self->children;
 
-    self->doc = newDoc;
-    while ( pNode != NULL ) {
-      domSetOwnerDocument( pNode, newDoc );
-      pNode = pNode->next;
+        self->doc = newDoc;
+        while ( pNode != NULL ) {
+            domSetOwnerDocument( pNode, newDoc );
+            pNode = pNode->next;
+        }
     }
-   }
 
-  return self;
+    return self;
 }
 
 xmlNodeSetPtr
 domGetElementsByTagName( xmlNodePtr self, xmlChar* name );
+
 xmlNodePtr
 domSetOwnerDocument( xmlNodePtr self, xmlDocPtr doc );