16 D fprintf (stderr,
"SPP_RUN(%s)\n",
buf);
36 for (
i = 0;
tags[
i].callback;
i++) {
37 D fprintf (stderr,
"NAME=(%s)\n", tok);
49 fprintf (stderr,
"Nested conditionals parsing error.\n");
79 fprintf (stderr,
"Out of memory.\n");
103 fprintf (
out->fout,
"%s",
str);
149 D printf (
"==> 0.0 (%s)\n", ptr);
156 D printf (
"==> 0 (%s)\n", ptr);
173 D fprintf (stderr,
"strcpy(%s)(%s)\n", ptrr,
s);
178 D fprintf (stderr,
"strcat(%s)(%s)\n", ptrr,
p);
181 D fprintf (stderr,
"CONTINUE (%s)\n",
buf);
202 D printf (
"==> 2 (%s)\n", ptr);
204 D printf (
" ==> 2.1: run(%s)\n", ptr);
207 if (
buf[0] ==
'\n' && printed) {
231 fprintf (stderr,
"Out of memory.\n");
238 if (!fgets (
buf,
sizeof (
buf) - 1,
in)) {
241 if (feof (
in))
break;
243 if (!memcmp (
buf,
"#!", 2)) {
244 if (!fgets (
buf,
sizeof (
buf) - 1,
in) || feof (
in)) {
253 D fprintf (stderr,
"Multiline detected!\n");
254 if (!fgets (eol, 1023,
in)) {
274 D fprintf (stderr,
"SPP-FILE(%s)\n",
file);
280 fprintf (stderr,
"Cannot find '%s'\n",
file);
286 for (
i = 0;
tags[
i].name;
i++) {
312 fprintf (stderr,
"Invalid preprocessor name '%s'\n",
arg);
333 vfprintf (
out->fout,
str, ap);
337 tmp[
sizeof (
tmp) - 1] = 0;
348 p->state.echo[
i] =
p->default_echo;
static RzBinSourceLineInfo * lines(RzBinFile *bf)
const lzma_allocator const uint8_t * in
const lzma_allocator const uint8_t size_t uint8_t * out
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
RZ_API const KEY_TYPE bool * found
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * realloc(void *ptr, size_t size)
void * calloc(size_t number, size_t size)
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")
RZ_API RZ_OWN char * rz_strbuf_drain(RzStrBuf *sb)
RZ_API char * rz_strbuf_get(RzStrBuf *sb)
RZ_API bool rz_strbuf_append(RzStrBuf *sb, const char *s)
RZ_API RzStrBuf * rz_strbuf_new(const char *s)
RZ_API void rz_strbuf_free(RzStrBuf *sb)
RZ_API void rz_strbuf_init(RzStrBuf *sb)
S_API void spp_eval(char *buf, Output *out)
S_API void spp_proc_list()
S_API void spp_proc_list_kw()
S_API char * spp_eval_str(SppProc *p, const char *code)
S_API int spp_run(char *buf, Output *out)
S_API void spp_proc_set(SppProc *p, const char *arg, int fail)
static void spp_proc_init(SppProc *p)
S_API int spp_file(const char *file, Output *out)
void lbuf_strcat(SppBuf *dst, char *src)
void out_printf(Output *out, char *str,...)
S_API void spp_proc_eval(SppProc *proc, char *buf, Output *out)
int do_fputs(Output *out, char *str)
S_API void spp_io(FILE *in, Output *out)
static char * spp_run_str(char *buf, int *rv)