Hash :
4f04f8f8
Author :
Thomas de Grivel
Date :
2025-03-03T20:41:48
wip special operators
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
/* kc3
* Copyright from 2022 to 2025 kmx.io <contact@kmx.io>
*
* Permission is hereby granted to use this software granted the above
* copyright notice and this permission paragraph are included in all
* copies and substantial portions of this software.
*
* THIS SOFTWARE IS PROVIDED "AS-IS" WITHOUT ANY GUARANTEE OF
* PURPOSE AND PERFORMANCE. IN NO EVENT WHATSOEVER SHALL THE
* AUTHOR BE CONSIDERED LIABLE FOR THE USE AND PERFORMANCE OF
* THIS SOFTWARE.
*/
#ifndef LIBKC3_CALLABLE_H
#define LIBKC3_CALLABLE_H
#include "types.h"
/* Heap pointer manipulation functions. Call p_callable_clean
after use. */
void p_callable_clean (p_callable *callable);
p_callable * p_callable_init (p_callable *callable);
p_callable * p_callable_init_cast (p_callable *callable,
const s_sym * const *type,
const s_tag *tag);
p_callable * p_callable_init_copy (p_callable *callable,
p_callable *src);
/* Heap-allocation functions, call callable_delete after use. */
void callable_delete (s_callable *callable);
s_callable * callable_new (void);
s_callable * callable_new_copy (s_callable *callable);
s_callable * callable_new_ref (s_callable *callable);
/* Operators. */
s_callable * callable_set_special(s_callable *callable, bool special);
#endif /* LIBKC3_CALLABLE_H */