1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
4 // Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 // ---------------------------------------------------------------------------
6 // SquirrelJME is under the Mozilla Public License Version 2.0.
7 // See license.mkd for licensing and copyright information.
8 // -------------------------------------------------------------------------*/
11 * Various list utilities, this is mostly to reduce the amount of duplicate
12 * code which also has the benefit of reducing the program size.
17 #ifndef SQUIRRELJME_LISTUTIL_H
18 #define SQUIRRELJME_LISTUTIL_H
20 #include "sjme/list.h"
21 #include "sjme/stream.h"
25 #ifndef SJME_CXX_IS_EXTERNED
26 #define SJME_CXX_IS_EXTERNED
27 #define SJME_CXX_SQUIRRELJME_LISTUTIL_H
30 #endif /* #ifdef SJME_CXX_IS_EXTERNED */
31 #endif /* #ifdef __cplusplus */
33 /*--------------------------------------------------------------------------*/
35 sjme_errorCode
sjme_listUtil_binListInt(
36 sjme_attrInNotNull sjme_alloc_pool
* inPool
,
37 sjme_attrOutNotNull sjme_list_sjme_jint
** outList
,
38 sjme_attrInNotNull sjme_stream_input inputStream
);
40 sjme_errorCode
sjme_listUtil_binListUtf(
41 sjme_attrInNotNull sjme_alloc_pool
* inPool
,
42 sjme_attrOutNotNull sjme_list_sjme_lpstr
** outList
,
43 sjme_attrInNotNull sjme_stream_input inputStream
);
45 /*--------------------------------------------------------------------------*/
49 #ifdef SJME_CXX_SQUIRRELJME_LISTUTIL_H
51 #undef SJME_CXX_SQUIRRELJME_LISTUTIL_H
52 #undef SJME_CXX_IS_EXTERNED
53 #endif /* #ifdef SJME_CXX_SQUIRRELJME_LISTUTIL_H */
54 #endif /* #ifdef __cplusplus */
56 #endif /* SQUIRRELJME_LISTUTIL_H */