Project

Profile

Help

Revision 55b80284

Added by O'Neil Delpratt 5 months ago

Saxon/C added memory debugging and bug fixes

View differences:

src/main/c/Saxon.C.API/XdmValue.h
19 19
#include "SaxonCXPath.h"
20 20

  
21 21

  
22

  
22 23
/*! <code>XdmValue</code>. Value in the XDM data model. A value is a sequence of zero or more items,
23 24
 * each item being either an atomic value or a node. This class is a wrapper of the the XdmValue object created in Java.
24 25
 * <p/>
......
30 31
class XdmNode;
31 32

  
32 33

  
34

  
33 35
typedef enum eXdmType { XDM_VALUE = 1, XDM_ITEM = 2, XDM_NODE = 3, XDM_ATOMIC_VALUE = 4, XDM_FUNCTION_ITEM = 5 } XDM_TYPE;
34 36

  
35 37
typedef enum saxonTypeEnum
......
54 56
        initialize();
55 57
    }
56 58

  
59
    /*void * operator new(size_t size)
60
    {
57 61

  
58
	/**
62
        void * p = ::new XdmValue();
63
        //void * p = malloc(size); will also work fine
64
        std::cerr<< "new called on XdmValue size= " << size << " p="<<p<<std::endl;
65
        return p;
66
    }*/
67

  
68

  
69
    /**
59 70
	 * A copy constructor.
60 71
	 * @param other - Xdmvalue
61 72
	 */

Also available in: Unified diff