7 * This private header provides declarations which are to be shared by
8 * the argwrap.c and argvwrap.c implementations.
11 * Written by Keith Marshall <keithmarshall@users.sourceforge.net>
12 * Copyright (C) 2013, MinGW.org Project <http://mingw.org>
15 * Permission is hereby granted, free of charge, to any person obtaining a
16 * copy of this software and associated documentation files (the "Software"),
17 * to deal in the Software without restriction, including without limitation
18 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
19 * and/or sell copies of the Software, and to permit persons to whom the
20 * Software is furnished to do so, subject to the following conditions:
22 * The above copyright notice and this permission notice shall be
23 * included in all copies or substantial portions of the Software.
25 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
29 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
30 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
31 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
33 * Except as contained in this notice, the name(s) of the above copyright
34 * holders and contributors shall not be used in advertising or otherwise
35 * to promote the sale, use or other dealings in this Software without
36 * prior written authorization.
48 # define BEGIN_C_DECLS extern "C" {
49 # define END_C_DECLS }
51 # define BEGIN_C_DECLS
58 void __attribute__((__always_inline__)) *inline_malloc( size_t request )
60 /* In some, if not all versions of MSVCRT, Microsoft's implementation of
61 * malloc() neglects to set errno appropriately on failure; this locally
62 * implemented wrapper works around this deficiency.
65 if( (allotted = malloc( request )) == NULL )
69 #define malloc( request ) inline_malloc( request )
71 extern const char *argwrap( char *, const char *, size_t );
75 #endif /* !defined ARGWRAP_H: $RCSfile$: end of file */