~ubuntu-branches/ubuntu/lucid/libxml-libxml-perl/lucid

« back to all changes in this revision

Viewing changes to dom.c

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2009-05-31 14:36:13 UTC
  • mfrom: (4.1.7 jaunty)
  • Revision ID: james.westby@ubuntu.com-20090531143613-xxpnwmrz62kwtejq
Tags: 1.69.ds-2
* Remove Florian Ragwitz from Uploaders (closes: #523275).
* Set Standards-Version to 3.8.1 (no changes).
* Remove duplicate fields from debian/control.
* Minimize debian/rules, bump quilt and debhelper build dependencies.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: dom.c 694 2007-11-12 09:06:59Z pajas $ */
2
 
#include <libxml/tree.h>
3
 
#include <libxml/encoding.h>
4
 
#include <libxml/xmlerror.h>
5
 
#include <libxml/xmlmemory.h>
6
 
#include <libxml/parser.h>
7
 
#include <libxml/parserInternals.h>
8
 
#include <libxml/xmlIO.h>
9
 
#include <libxml/xpath.h>
10
 
#include <libxml/xpathInternals.h>
11
 
#include <libxml/globals.h>
12
 
#include <stdio.h>
 
1
/* $Id: dom.c 747 2008-11-03 14:29:15Z pajas $ */
 
2
 
 
3
#include "dom.h"
 
4
 
13
5
 
14
6
/* #define warn(string) fprintf(stderr, string) */
15
7
 
661
653
 
662
654
    if ( !(domTestHierarchy(self, newChild)
663
655
           && domTestDocument(self, newChild))){
664
 
        xs_warn("HIERARCHY_REQUEST_ERR\n"); 
665
 
        xmlGenericError(xmlGenericErrorContext,"HIERARCHY_REQUEST_ERR\n");
 
656
        croak("appendChild: HIERARCHY_REQUEST_ERR\n"); 
666
657
        return NULL;
667
658
    }
668
659
 
755
746
 
756
747
    if ( !(domTestHierarchy(self, new)
757
748
           && domTestDocument(self, new))){
758
 
        xs_warn("HIERARCHY_REQUEST_ERR\n"); 
759
 
        xmlGenericError(xmlGenericErrorContext,"HIERARCHY_REQUEST_ERR\n");
 
749
        croak("replaceChild: HIERARCHY_REQUEST_ERR\n");
760
750
        return NULL;
761
751
    }
762
752
    
815
805
   
816
806
    if ( !(domTestHierarchy( self, newChild )
817
807
           && domTestDocument( self, newChild ))) {
818
 
        xmlGenericError(xmlGenericErrorContext,"HIERARCHY_REQUEST_ERR\n");
 
808
        croak("insertBefore/insertAfter: HIERARCHY_REQUEST_ERR\n");
819
809
        return NULL;
820
810
    }
821
811
 
880
870
         * wrong node type
881
871
         * new node is parent of itself
882
872
         */
883
 
        xmlGenericError(xmlGenericErrorContext,"HIERARCHY_REQUEST_ERR\n");
 
873
        croak("replaceNode: HIERARCHY_REQUEST_ERR\n");
884
874
        return NULL;
885
875
    }
886
876