Reading of initial default boot parameters.
[SquirrelJME.git] / nanocoat / include / sjme / listUtil.h
blob92140fbe07ff382b1b5292c71930731627b02c63
1 /* -*- Mode: C; indent-tabs-mode: t; tab-width: 4 -*-
2 // ---------------------------------------------------------------------------
3 // SquirrelJME
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 // -------------------------------------------------------------------------*/
10 /**
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.
14 * @since 2024/09/06
17 #ifndef SQUIRRELJME_LISTUTIL_H
18 #define SQUIRRELJME_LISTUTIL_H
20 #include "sjme/list.h"
21 #include "sjme/stream.h"
23 /* Anti-C++. */
24 #ifdef __cplusplus
25 #ifndef SJME_CXX_IS_EXTERNED
26 #define SJME_CXX_IS_EXTERNED
27 #define SJME_CXX_SQUIRRELJME_LISTUTIL_H
28 extern "C"
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 /*--------------------------------------------------------------------------*/
47 /* Anti-C++. */
48 #ifdef __cplusplus
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 */