-
Notifications
You must be signed in to change notification settings - Fork 138
/
api.h
64 lines (54 loc) · 1.83 KB
/
api.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
/*
* Copyright (C) 2011, Parrot Foundation.
*/
#ifndef PARROT_IMCC_API_H_GUARD
#define PARROT_IMCC_API_H_GUARD
#include "parrot/api.h"
/* HEADERIZER BEGIN: compilers/imcc/api.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
Parrot_Int imcc_compile_file_api(
Parrot_PMC interp_pmc,
Parrot_PMC compiler,
Parrot_String file,
ARGOUT(Parrot_PMC *pbc))
__attribute__nonnull__(4)
FUNC_MODIFIES(*pbc);
PARROT_EXPORT
Parrot_Int imcc_get_pasm_compreg_api(
Parrot_PMC interp_pmc,
int add_compreg,
ARGOUT(Parrot_PMC *compiler))
__attribute__nonnull__(3)
FUNC_MODIFIES(*compiler);
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
Parrot_Int imcc_get_pir_compreg_api(
Parrot_PMC interp_pmc,
int add_compreg,
ARGOUT(Parrot_PMC *compiler))
__attribute__nonnull__(3)
FUNC_MODIFIES(*compiler);
PARROT_EXPORT
PARROT_WARN_UNUSED_RESULT
Parrot_Int imcc_preprocess_file_api(
Parrot_PMC interp_pmc,
Parrot_PMC compiler,
Parrot_String file);
#define ASSERT_ARGS_imcc_compile_file_api __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(pbc))
#define ASSERT_ARGS_imcc_get_pasm_compreg_api __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(compiler))
#define ASSERT_ARGS_imcc_get_pir_compreg_api __attribute__unused__ int _ASSERT_ARGS_CHECK = (\
PARROT_ASSERT_ARG(compiler))
#define ASSERT_ARGS_imcc_preprocess_file_api __attribute__unused__ int _ASSERT_ARGS_CHECK = (0)
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */
/* HEADERIZER END: compilers/imcc/api.c */
#endif /* PARROT_IMCC_API_H_GUARD */
/*
* Local variables:
* c-file-style: "parrot"
* End:
* vim: expandtab shiftwidth=4 cinoptions='\:2=2' :
*/