Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/X11
File: Xalloca.h
/*
[0] Fix | Delete
[1] Fix | Delete
Copyright 1995, 1998 The Open Group
[2] Fix | Delete
[3] Fix | Delete
Permission to use, copy, modify, distribute, and sell this software and its
[4] Fix | Delete
documentation for any purpose is hereby granted without fee, provided that
[5] Fix | Delete
the above copyright notice appear in all copies and that both that
[6] Fix | Delete
copyright notice and this permission notice appear in supporting
[7] Fix | Delete
documentation.
[8] Fix | Delete
[9] Fix | Delete
The above copyright notice and this permission notice shall be
[10] Fix | Delete
included in all copies or substantial portions of the Software.
[11] Fix | Delete
[12] Fix | Delete
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
[13] Fix | Delete
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
[14] Fix | Delete
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
[15] Fix | Delete
IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
[16] Fix | Delete
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
[17] Fix | Delete
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
[18] Fix | Delete
OTHER DEALINGS IN THE SOFTWARE.
[19] Fix | Delete
[20] Fix | Delete
Except as contained in this notice, the name of The Open Group shall
[21] Fix | Delete
not be used in advertising or otherwise to promote the sale, use or
[22] Fix | Delete
other dealings in this Software without prior written authorization
[23] Fix | Delete
from The Open Group.
[24] Fix | Delete
[25] Fix | Delete
*/
[26] Fix | Delete
/*
[27] Fix | Delete
* The purpose of this header is to define the macros ALLOCATE_LOCAL and
[28] Fix | Delete
* DEALLOCATE_LOCAL appropriately for the platform being compiled on.
[29] Fix | Delete
* These macros are used to make fast, function-local memory allocations.
[30] Fix | Delete
* Their characteristics are as follows:
[31] Fix | Delete
*
[32] Fix | Delete
* void *ALLOCATE_LOCAL(size_t size)
[33] Fix | Delete
* Returns a pointer to size bytes of memory, or NULL if the allocation
[34] Fix | Delete
* failed. The memory must be freed with DEALLOCATE_LOCAL before the
[35] Fix | Delete
* function that made the allocation returns. You should not ask for
[36] Fix | Delete
* large blocks of memory with this function, since on many platforms
[37] Fix | Delete
* the memory comes from the stack, which may have limited size.
[38] Fix | Delete
*
[39] Fix | Delete
* void DEALLOCATE_LOCAL(void *)
[40] Fix | Delete
* Frees the memory allocated by ALLOCATE_LOCAL. Omission of this
[41] Fix | Delete
* step may be harmless on some platforms, but will result in
[42] Fix | Delete
* memory leaks or worse on others.
[43] Fix | Delete
*
[44] Fix | Delete
* Before including this file, you should define two macros,
[45] Fix | Delete
* ALLOCATE_LOCAL_FALLBACK and DEALLOCATE_LOCAL_FALLBACK, that have the
[46] Fix | Delete
* same characteristics as ALLOCATE_LOCAL and DEALLOCATE_LOCAL. The
[47] Fix | Delete
* header uses the fallbacks if it doesn't know a "better" way to define
[48] Fix | Delete
* ALLOCATE_LOCAL and DEALLOCATE_LOCAL. Typical usage would be:
[49] Fix | Delete
*
[50] Fix | Delete
* #define ALLOCATE_LOCAL_FALLBACK(_size) malloc(_size)
[51] Fix | Delete
* #define DEALLOCATE_LOCAL_FALLBACK(_ptr) free(_ptr)
[52] Fix | Delete
* #include "Xalloca.h"
[53] Fix | Delete
*/
[54] Fix | Delete
[55] Fix | Delete
#ifndef XALLOCA_H
[56] Fix | Delete
#define XALLOCA_H 1
[57] Fix | Delete
[58] Fix | Delete
#ifndef INCLUDE_ALLOCA_H
[59] Fix | Delete
/* Need to add more here to match Imake *.cf's */
[60] Fix | Delete
# if defined(HAVE_ALLOCA_H) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
[61] Fix | Delete
# define INCLUDE_ALLOCA_H
[62] Fix | Delete
# endif
[63] Fix | Delete
#endif
[64] Fix | Delete
[65] Fix | Delete
#ifdef INCLUDE_ALLOCA_H
[66] Fix | Delete
# include <alloca.h>
[67] Fix | Delete
#endif
[68] Fix | Delete
[69] Fix | Delete
#ifndef NO_ALLOCA
[70] Fix | Delete
/*
[71] Fix | Delete
* os-dependent definition of local allocation and deallocation
[72] Fix | Delete
* If you want something other than (DE)ALLOCATE_LOCAL_FALLBACK
[73] Fix | Delete
* for ALLOCATE/DEALLOCATE_LOCAL then you add that in here.
[74] Fix | Delete
*/
[75] Fix | Delete
[76] Fix | Delete
[77] Fix | Delete
# ifdef __GNUC__
[78] Fix | Delete
# ifndef alloca
[79] Fix | Delete
# define alloca __builtin_alloca
[80] Fix | Delete
# endif /* !alloca */
[81] Fix | Delete
# define ALLOCATE_LOCAL(size) alloca((size_t)(size))
[82] Fix | Delete
# else /* ! __GNUC__ */
[83] Fix | Delete
[84] Fix | Delete
/*
[85] Fix | Delete
* warning: old mips alloca (pre 2.10) is unusable, new one is built in
[86] Fix | Delete
* Test is easy, the new one is named __builtin_alloca and comes
[87] Fix | Delete
* from alloca.h which #defines alloca.
[88] Fix | Delete
*/
[89] Fix | Delete
# if defined(__sun) || defined(alloca)
[90] Fix | Delete
/*
[91] Fix | Delete
* Some System V boxes extract alloca.o from /lib/libPW.a; if you
[92] Fix | Delete
* decide that you don't want to use alloca, you might want to fix it here.
[93] Fix | Delete
*/
[94] Fix | Delete
/* alloca might be a macro taking one arg (hi, Sun!), so give it one. */
[95] Fix | Delete
# if !defined(__cplusplus)
[96] Fix | Delete
# define __Xnullarg /* as nothing */
[97] Fix | Delete
extern void *alloca(__Xnullarg);
[98] Fix | Delete
# endif
[99] Fix | Delete
# define ALLOCATE_LOCAL(size) alloca((size_t)(size))
[100] Fix | Delete
# endif /* who does alloca */
[101] Fix | Delete
# endif /* __GNUC__ */
[102] Fix | Delete
[103] Fix | Delete
#endif /* NO_ALLOCA */
[104] Fix | Delete
[105] Fix | Delete
#if !defined(ALLOCATE_LOCAL)
[106] Fix | Delete
# if defined(ALLOCATE_LOCAL_FALLBACK) && defined(DEALLOCATE_LOCAL_FALLBACK)
[107] Fix | Delete
# define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK(_size)
[108] Fix | Delete
# define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK(_ptr)
[109] Fix | Delete
# else /* no fallbacks supplied; error */
[110] Fix | Delete
# define ALLOCATE_LOCAL(_size) ALLOCATE_LOCAL_FALLBACK undefined!
[111] Fix | Delete
# define DEALLOCATE_LOCAL(_ptr) DEALLOCATE_LOCAL_FALLBACK undefined!
[112] Fix | Delete
# endif /* defined(ALLOCATE_LOCAL_FALLBACK && DEALLOCATE_LOCAL_FALLBACK) */
[113] Fix | Delete
#else
[114] Fix | Delete
# if !defined(DEALLOCATE_LOCAL)
[115] Fix | Delete
# define DEALLOCATE_LOCAL(_ptr) do {} while(0)
[116] Fix | Delete
# endif
[117] Fix | Delete
#endif /* defined(ALLOCATE_LOCAL) */
[118] Fix | Delete
[119] Fix | Delete
#endif /* XALLOCA_H */
[120] Fix | Delete
[121] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function