*** Original/src/c/debugXSL	Thu Nov 29 01:09:43 2001
--- RISCOS/c/debugXSL	Thu Nov 29 22:27:01 2001
***************
*** 324,330 ****
   * 
   * Returns the last template node found, if any
   */
! xsltTemplatePtr getTemplate(){
    return rootCopy;
  }
  
--- 324,330 ----
   *
   * Returns the last template node found, if any
   */
! xsltTemplatePtr getTemplate(void) {
    return rootCopy;
  }
  
***************
*** 539,545 ****
      else
        xsltGenericError(xsltGenericErrorContext, "\n");
    }else{
!     long depth = atoi(arg);
      if (depth >=0 ){
        callPoint = xslGetCall(depth + 1);
        if (callPoint && callPoint->info) {
--- 539,545 ----
      else
        xsltGenericError(xsltGenericErrorContext, "\n");
    }else{
!     long depth = atol((char *)arg);
      if (depth >=0 ){
        callPoint = xslGetCall(depth + 1);
        if (callPoint && callPoint->info) {
***************
*** 642,648 ****
      int result = -1, nameIndex;
  
      for (nameIndex = 0; matchList[nameIndex]; nameIndex++) {
!         if (!strcmp(name, matchList[nameIndex])) {
              result = nameIndex;
              break;
          }
--- 642,648 ----
      int result = -1, nameIndex;
  
      for (nameIndex = 0; matchList[nameIndex]; nameIndex++) {
!         if (!strcmp((char *)name, (char *)matchList[nameIndex])) {
              result = nameIndex;
              break;
          }
***************
*** 882,891 ****
      selectNormalIO();
  
      if (templ == NULL){
!       tempDoc = xmlNewDoc("1.0");
        if (!tempDoc)
  	return;
!       tempNode = xmlNewNode(NULL,"xsldbg_default_node");
        if (!tempNode){
  	xmlFreeDoc(tempDoc);
  	return;
--- 882,891 ----
      selectNormalIO();
  
      if (templ == NULL){
!       tempDoc = xmlNewDoc((xmlChar *)"1.0");
        if (!tempDoc)
  	return;
!       tempNode = xmlNewNode(NULL,(xmlChar *)"xsldbg_default_node");
        if (!tempNode){
  	xmlFreeDoc(tempDoc);
  	return;
***************
*** 894,903 ****
        templ = tempNode;
      }
      if (node == NULL){
!       tempDoc = xmlNewDoc("1.0");
        if (!tempDoc)
  	return;
!       tempNode = xmlNewNode(NULL,"xsldbg_default_node");
        if (!tempNode){
  	xmlFreeDoc(tempDoc);
  	return;
--- 894,903 ----
        templ = tempNode;
      }
      if (node == NULL){
!       tempDoc = xmlNewDoc((xmlChar *)"1.0");
        if (!tempDoc)
  	return;
!       tempNode = xmlNewNode(NULL,(xmlChar *)"xsldbg_default_node");
        if (!tempNode){
  	xmlFreeDoc(tempDoc);
  	return;
