[xml] 2.4.14: valid.c grammar mistake and const



Hiya,

A tiny patch for valid.c. children is the plural of child (yeah, we all
hate English). Later on, in xmlValidGetValidElements the name variable
is declared as an xmlChar *, but has a const xmlChar * value assigned
to it (line 4991); that means that a qualifier is being removed and throws a
serious error on the compiler here.

*** Original.c.valid    Fri Feb  8 13:59:01 2002
--- RISCOS.c.valid      Sat Feb  9 03:23:42 2002
***************
*** 4349,4355 ****
                    }
                    if (cont == NULL) {
                        VERROR(ctxt->userData,
!              "Element %s is not declared in %s list of possible childs\n",
                               name, elem->name);
                        ret = 0;
                    }
--- 4349,4355 ----
                    }
                    if (cont == NULL) {
                        VERROR(ctxt->userData,
!              "Element %s is not declared in %s list of possible children\n",
                               name, elem->name);
                        ret = 0;
                    }
***************
*** 4935,4941 ****
      int nb_valid_elements = 0;
      const xmlChar *elements[256];
      int nb_elements = 0, i;
!     xmlChar *name;

      xmlNode *ref_node;
      xmlNode *parent;
--- 4935,4941 ----
      int nb_valid_elements = 0;
      const xmlChar *elements[256];
      int nb_elements = 0, i;
!     const xmlChar *name;

      xmlNode *ref_node;
      xmlNode *parent;

-- 
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
    Trying to send you messages, but choking on goodbye.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]