Hash :
98ad363a
Author :
Thomas de Grivel
Date :
2024-02-20T14:51:11
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 38 39 40 41 42
/* c3
* Copyright 2022,2023 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 LIBC3_C3_MAIN_H
#define LIBC3_C3_MAIN_H
#include "types.h"
#define C3_EXT ".c3"
extern const s_str g_c3_base_binary;
extern const s_str g_c3_base_octal;
extern const s_str g_c3_base_decimal;
extern const s_str g_c3_base_hexadecimal;
extern const s_str g_c3_bases_hexadecimal[2];
extern const char *g_c3_license;
extern sw g_c3_exit_code;
/* Stack-allocation compatible functions, call c3_clean after use. */
s_env * c3_init (s_env *env, int argc, char **argv);
void c3_clean (s_env *env);
/* Observers. */
s_str * c3_getenv (const s_str *name, s_str *dest);
/* Special operators. */
s_tag * c3_if_then_else (const s_tag *cond, const s_tag *then,
const s_tag *else_, s_tag *dest);
/* debug */
void c3_break (void);
#endif /* LIBC3_C3_MAIN_H */