/[escript]/branches/windows_from_1456_trunk_1580_merged_in/paso/src/Common.h
ViewVC logotype

Diff of /branches/windows_from_1456_trunk_1580_merged_in/paso/src/Common.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1586 by phornby, Thu Jun 5 04:43:56 2008 UTC revision 1587 by phornby, Thu Jun 5 05:50:20 2008 UTC
# Line 143  typedef int err_t; Line 143  typedef int err_t;
143      #define _DEBUG      #define _DEBUG
144    #endif    #endif
145    
   
   // Do this to stop people using these on Windows.  
   #ifdef PyObject_NEW  
   # undef PyObject_NEW  
   # define PyObject_NEW PyObject_New  
   #endif  
   
   #ifdef PyObject_DEL  
   # undef PyObject_DEL  
   # define PyObject_DEL PyObject_Del  
   #endif  
   
146    #define TMPMEMALLOC(_LENGTH_,_TYPE_) (_TYPE_*)  PyMem_Malloc(((size_t)(_LENGTH_))*sizeof(_TYPE_))    #define TMPMEMALLOC(_LENGTH_,_TYPE_) (_TYPE_*)  PyMem_Malloc(((size_t)(_LENGTH_))*sizeof(_TYPE_))
147    #define TMPMEMFREE(_PTR_) if ((void *)(_PTR_) != NULL ) { PyMem_Free(_PTR_); (_PTR_) = NULL; }    #define TMPMEMFREE(_PTR_) if ((void *)(_PTR_) != NULL ) { PyMem_Free(_PTR_); (_PTR_) = NULL; }
148    #define MEMALLOC(_LENGTH_,_TYPE_) (_TYPE_*)  PyMem_Malloc(((size_t)(_LENGTH_))*sizeof(_TYPE_))    #define MEMALLOC(_LENGTH_,_TYPE_) (_TYPE_*)  PyMem_Malloc(((size_t)(_LENGTH_))*sizeof(_TYPE_))

Legend:
Removed from v.1586  
changed lines
  Added in v.1587

  ViewVC Help
Powered by ViewVC 1.1.26