Go to the source code of this file.
◆ ARG_CALLBACK() [1/2]
static ARG_CALLBACK |
( |
cpp_arg_d |
| ) |
|
|
static |
Definition at line 145 of file cpp.h.
147 char *
eq = strchr (
arg,
'=');
RZ_API int rz_sys_setenv(const char *key, const char *value)
Set an environment variable in the calling process.
References eq, and rz_sys_setenv().
◆ ARG_CALLBACK() [2/2]
static ARG_CALLBACK |
( |
cpp_arg_i |
| ) |
|
|
static |
Definition at line 140 of file cpp.h.
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
References printf().
◆ cpp_macro_add()
static void cpp_macro_add |
( |
char * |
name, |
|
|
char * |
args, |
|
|
char * |
body |
|
) |
| |
|
static |
Definition at line 63 of file cpp.h.
67 ptr = strchr (
name,
'(');
static struct cpp_macro_t cpp_macros[10]
return strdup("=SP r13\n" "=LR r14\n" "=PC r15\n" "=A0 r0\n" "=A1 r1\n" "=A2 r2\n" "=A3 r3\n" "=ZF zf\n" "=SF nf\n" "=OF vf\n" "=CF cf\n" "=SN or0\n" "gpr lr .32 56 0\n" "gpr pc .32 60 0\n" "gpr cpsr .32 64 0 ____tfiae_________________qvczn\n" "gpr or0 .32 68 0\n" "gpr tf .1 64.5 0 thumb\n" "gpr ef .1 64.9 0 endian\n" "gpr jf .1 64.24 0 java\n" "gpr qf .1 64.27 0 sticky_overflow\n" "gpr vf .1 64.28 0 overflow\n" "gpr cf .1 64.29 0 carry\n" "gpr zf .1 64.30 0 zero\n" "gpr nf .1 64.31 0 negative\n" "gpr itc .4 64.10 0 if_then_count\n" "gpr gef .4 64.16 0 great_or_equal\n" "gpr r0 .32 0 0\n" "gpr r1 .32 4 0\n" "gpr r2 .32 8 0\n" "gpr r3 .32 12 0\n" "gpr r4 .32 16 0\n" "gpr r5 .32 20 0\n" "gpr r6 .32 24 0\n" "gpr r7 .32 28 0\n" "gpr r8 .32 32 0\n" "gpr r9 .32 36 0\n" "gpr r10 .32 40 0\n" "gpr r11 .32 44 0\n" "gpr r12 .32 48 0\n" "gpr r13 .32 52 0\n" "gpr r14 .32 56 0\n" "gpr r15 .32 60 0\n" "gpr r16 .32 64 0\n" "gpr r17 .32 68 0\n")
References args, cpp_macro_t::args, cpp_macro_t::body, cpp_macros, cpp_macros_n, cpp_macro_t::name, and strdup().
Referenced by TAG_CALLBACK().
◆ PUT_CALLBACK()
static PUT_CALLBACK |
( |
cpp_fputs |
| ) |
|
|
static |
Definition at line 75 of file cpp.h.
79 fprintf (stderr,
"MACRO (%s) HIT\n",
const lzma_allocator const uint8_t size_t uint8_t * out
void out_printf(Output *out, char *str,...) __attribute__((format(printf
References cpp_macros, cpp_macros_n, i, out, and out_printf().
◆ TAG_CALLBACK() [1/10]
static TAG_CALLBACK |
( |
cpp_default |
| ) |
|
|
static |
◆ TAG_CALLBACK() [2/10]
static TAG_CALLBACK |
( |
cpp_define |
| ) |
|
|
static |
Definition at line 87 of file cpp.h.
88 char *
eq = strchr (
buf,
' ');
95 ptr = strchr (
macro + 1,
')');
97 fprintf(stderr,
"Invalid syntax\n");
101 fprintf(stderr,
"REGISTER MACRO:\n");
102 fprintf(stderr,
" name: %s\n",
buf);
103 fprintf(stderr,
" args: %s\n",
macro);
104 fprintf(stderr,
" body: %s\n", ptr+1);
static void cpp_macro_add(char *name, char *args, char *body)
References cpp_macro_add(), eq, and rz_sys_setenv().
◆ TAG_CALLBACK() [3/10]
static TAG_CALLBACK |
( |
cpp_else |
| ) |
|
|
static |
Definition at line 44 of file cpp.h.
◆ TAG_CALLBACK() [4/10]
static TAG_CALLBACK |
( |
cpp_endif |
| ) |
|
|
static |
◆ TAG_CALLBACK() [5/10]
static TAG_CALLBACK |
( |
cpp_error |
| ) |
|
|
static |
◆ TAG_CALLBACK() [6/10]
static TAG_CALLBACK |
( |
cpp_if |
| ) |
|
|
static |
Definition at line 25 of file cpp.h.
27 if (var && *var ==
'1') {
References getenv().
◆ TAG_CALLBACK() [7/10]
static TAG_CALLBACK |
( |
cpp_ifdef |
| ) |
|
|
static |
◆ TAG_CALLBACK() [8/10]
static TAG_CALLBACK |
( |
cpp_ifndef |
| ) |
|
|
static |
Definition at line 49 of file cpp.h.
References out.
◆ TAG_CALLBACK() [9/10]
static TAG_CALLBACK |
( |
cpp_include |
| ) |
|
|
static |
Definition at line 117 of file cpp.h.
S_API int spp_file(const char *file, Output *out)
References out, and spp_file().
◆ TAG_CALLBACK() [10/10]
static TAG_CALLBACK |
( |
cpp_warning |
| ) |
|
|
static |
◆ cpp_args
Initial value:= {
{ "-I", "add include directory", 1, cpp_arg_i },
{ "-D", "define value of variable", 1, cpp_arg_d },
}
Definition at line 145 of file cpp.h.
◆ cpp_macros
◆ cpp_macros_n
◆ cpp_proc
Initial value:= {
.name = "cpp",
.token = " ",
.tag_pre = "#",
.tag_post = "\n",
.multiline = "\\\n",
.default_echo = 1,
.fputs = cpp_fputs,
.chop = 0,
.tag_begin = 1,
}
static struct Arg cpp_args[]
DLL_LOCAL struct Tag cpp_tags[]
Definition at line 163 of file cpp.h.
◆ cpp_tags
Initial value:= {
{ "ifdef", cpp_ifdef },
{ "ifndef", cpp_ifndef },
{ "endif", cpp_endif },
{ "if", cpp_if },
{ "else", cpp_else },
{ "include", cpp_include },
{ "define", cpp_define },
{ "error", cpp_error },
{ "warning", cpp_warning },
}
Definition at line 124 of file cpp.h.