2017-04-17 22:40:39 -04:00
|
|
|
/*
|
2020-01-12 10:50:37 -06:00
|
|
|
* Copyright (c) 2020 Calvin Rose
|
2017-07-01 21:51:16 -04:00
|
|
|
*
|
2017-04-17 22:40:39 -04:00
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
2017-07-01 21:51:16 -04:00
|
|
|
*
|
2017-04-17 22:40:39 -04:00
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
2017-07-01 21:51:16 -04:00
|
|
|
*
|
2017-04-17 22:40:39 -04:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
* IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2018-09-05 22:18:42 -04:00
|
|
|
#ifndef JANET_SYMCACHE_H_defined
|
|
|
|
#define JANET_SYMCACHE_H_defined
|
2017-04-15 16:05:59 -04:00
|
|
|
|
2019-01-24 00:15:58 -05:00
|
|
|
#ifndef JANET_AMALG
|
2019-12-30 19:06:15 -05:00
|
|
|
#include "features.h"
|
2019-02-18 20:13:35 -05:00
|
|
|
#include <janet.h>
|
2019-01-24 00:15:58 -05:00
|
|
|
#endif
|
2017-04-15 16:05:59 -04:00
|
|
|
|
2017-11-27 14:03:34 -05:00
|
|
|
/* Initialize the cache (allocate cache memory) */
|
2018-09-05 22:18:42 -04:00
|
|
|
void janet_symcache_init(void);
|
|
|
|
void janet_symcache_deinit(void);
|
|
|
|
void janet_symbol_deinit(const uint8_t *sym);
|
2017-09-09 14:39:51 -04:00
|
|
|
|
2017-11-01 17:53:43 -04:00
|
|
|
#endif
|