Annotation of embedaddon/pcre/sljit/sljitConfig.h, revision 1.1.1.1

1.1       misho       1: /*
                      2:  *    Stack-less Just-In-Time compiler
                      3:  *
                      4:  *    Copyright 2009-2010 Zoltan Herczeg (hzmester@freemail.hu). All rights reserved.
                      5:  *
                      6:  * Redistribution and use in source and binary forms, with or without modification, are
                      7:  * permitted provided that the following conditions are met:
                      8:  *
                      9:  *   1. Redistributions of source code must retain the above copyright notice, this list of
                     10:  *      conditions and the following disclaimer.
                     11:  *
                     12:  *   2. Redistributions in binary form must reproduce the above copyright notice, this list
                     13:  *      of conditions and the following disclaimer in the documentation and/or other materials
                     14:  *      provided with the distribution.
                     15:  *
                     16:  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) AND CONTRIBUTORS ``AS IS'' AND ANY
                     17:  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     18:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
                     19:  * SHALL THE COPYRIGHT HOLDER(S) OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
                     20:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
                     21:  * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
                     22:  * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
                     23:  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
                     24:  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     25:  */
                     26: 
                     27: #ifndef _SLJIT_CONFIG_H_
                     28: #define _SLJIT_CONFIG_H_
                     29: 
                     30: /* --------------------------------------------------------------------- */
                     31: /*  Architecture                                                         */
                     32: /* --------------------------------------------------------------------- */
                     33: 
                     34: /* Architecture selection */
                     35: /* #define SLJIT_CONFIG_X86_32 1 */
                     36: /* #define SLJIT_CONFIG_X86_64 1 */
                     37: /* #define SLJIT_CONFIG_ARM_V5 1 */
                     38: /* #define SLJIT_CONFIG_ARM_V7 1 */
                     39: /* #define SLJIT_CONFIG_ARM_THUMB2 1 */
                     40: /* #define SLJIT_CONFIG_PPC_32 1 */
                     41: /* #define SLJIT_CONFIG_PPC_64 1 */
                     42: /* #define SLJIT_CONFIG_MIPS_32 1 */
                     43: 
                     44: /* #define SLJIT_CONFIG_AUTO 1 */
                     45: /* #define SLJIT_CONFIG_UNSUPPORTED 1 */
                     46: 
                     47: /* --------------------------------------------------------------------- */
                     48: /*  Utilities                                                            */
                     49: /* --------------------------------------------------------------------- */
                     50: 
                     51: /* Useful for thread-safe compiling of global functions. */
                     52: #ifndef SLJIT_UTIL_GLOBAL_LOCK
                     53: /* Enabled by default */
                     54: #define SLJIT_UTIL_GLOBAL_LOCK 1
                     55: #endif
                     56: 
                     57: /* Implements a stack like data structure (by using mmap / VirtualAlloc). */
                     58: #ifndef SLJIT_UTIL_STACK
                     59: /* Enabled by default */
                     60: #define SLJIT_UTIL_STACK 1
                     61: #endif
                     62: 
                     63: /* --------------------------------------------------------------------- */
                     64: /*  Configuration                                                        */
                     65: /* --------------------------------------------------------------------- */
                     66: 
                     67: /* If SLJIT_STD_MACROS_DEFINED is not defined, the application should
                     68:    define SLJIT_MALLOC, SLJIT_FREE, SLJIT_MEMMOVE, and NULL. */
                     69: #ifndef SLJIT_STD_MACROS_DEFINED
                     70: /* Disabled by default. */
                     71: #define SLJIT_STD_MACROS_DEFINED 0
                     72: #endif
                     73: 
                     74: /* Executable code allocation:
                     75:    If SLJIT_EXECUTABLE_ALLOCATOR is not defined, the application should
                     76:    define both SLJIT_MALLOC_EXEC and SLJIT_FREE_EXEC. */
                     77: #ifndef SLJIT_EXECUTABLE_ALLOCATOR
                     78: /* Enabled by default. */
                     79: #define SLJIT_EXECUTABLE_ALLOCATOR 1
                     80: #endif
                     81: 
                     82: /* Debug checks (assertions, etc.). */
                     83: #ifndef SLJIT_DEBUG
                     84: /* Enabled by default */
                     85: #define SLJIT_DEBUG 1
                     86: #endif
                     87: 
                     88: /* Verbose operations */
                     89: #ifndef SLJIT_VERBOSE
                     90: /* Enabled by default */
                     91: #define SLJIT_VERBOSE 1
                     92: #endif
                     93: 
                     94: /* See the beginning of sljitConfigInternal.h */
                     95: 
                     96: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>