Commits

ph...@9ae0c189-cd1f-4510-a509-f4891f5cf20d  committed c078d3e

Modified Files:
LibXML.xs
+ compiles again *sorry*

  • Participants
  • Parent commits 0c4979b

Comments (0)

Files changed (1)

         xmlNodePtr tn;
     CODE:
         if ( self->doc != NULL && xmlString != NULL ) {
-            if ( $self->doc != NULL ) {
+            if ( self->doc != NULL ) {
                 tn = xmlNewDocText( self->doc, xmlString ); 
             }
             else {
 new( CLASS, content )
         const char * CLASS
         char * content
+    PREINIT:
+        xmlNodePtr newNode;
     CODE:
         /* we should test if this is UTF8 ... because this WILL cause
          * problems with iso encoded strings :(
 new( CLASS, content ) 
         const char * CLASS
         char * content
+    PREINIT:
+        xmlNodePtr newNode;
     CODE:
         newNode = xmlNewComment( content );
         RETVAL = make_proxy_node(newNode);
 new( CLASS , content )
         const char * CLASS
         char * content
+    PREINIT:
+        xmlNodePtr newNode;
     CODE:
         newNode = xmlNewCDataBlock( 0 , content, xmlStrlen( content ) );
         RETVAL = make_proxy_node(newNode);