/[pcre]/code/trunk/sljit/sljitConfigInternal.h
ViewVC logotype

Diff of /code/trunk/sljit/sljitConfigInternal.h

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

revision 751 by zherczeg, Sun Nov 6 08:05:33 2011 UTC revision 752 by zherczeg, Sat Nov 19 15:28:29 2011 UTC
# Line 119  Line 119 
119    
120  #if !(defined SLJIT_STD_MACROS_DEFINED && SLJIT_STD_MACROS_DEFINED)  #if !(defined SLJIT_STD_MACROS_DEFINED && SLJIT_STD_MACROS_DEFINED)
121    
122    /* These libraries are needed for the macros below. */
123  #include <stdlib.h>  #include <stdlib.h>
124  #include <string.h>  #include <string.h>
125    
126  /* General libraries:  #endif /* STD_MACROS_DEFINED */
127    
128    /* General macros:
129     Note: SLJIT is designed to be independent from them as possible.     Note: SLJIT is designed to be independent from them as possible.
130    
131     In release mode (SLJIT_DEBUG is not defined) only the following macros are needed: */     In release mode (SLJIT_DEBUG is not defined) only the following macros are needed:
132    */
133    
134  /* General allocation. */  #ifndef SLJIT_MALLOC
135  #define SLJIT_MALLOC(size) malloc(size)  #define SLJIT_MALLOC(size) malloc(size)
136  #define SLJIT_MALLOC_ZEROED(size) calloc((size), 1)  #endif
137    
138    #ifndef SLJIT_FREE
139  #define SLJIT_FREE(ptr) free(ptr)  #define SLJIT_FREE(ptr) free(ptr)
140    #endif
141    
142    #ifndef SLJIT_MEMMOVE
143  #define SLJIT_MEMMOVE(dest, src, len) memmove(dest, src, len)  #define SLJIT_MEMMOVE(dest, src, len) memmove(dest, src, len)
144    #endif
145    
146  #endif /* STD_MACROS_DEFINED */  #ifndef SLJIT_ZEROMEM
147    #define SLJIT_ZEROMEM(dest, len) memset(dest, 0, len)
148    #endif
149    
150  #if !defined(SLJIT_LIKELY) && !defined(SLJIT_UNLIKELY)  #if !defined(SLJIT_LIKELY) && !defined(SLJIT_UNLIKELY)
151    

Legend:
Removed from v.751  
changed lines
  Added in v.752

  ViewVC Help
Powered by ViewVC 1.1.5