Rizin
unix-like reverse engineering framework and cli tools
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <stdbool.h>
#include <errno.h>
Go to the source code of this file.
Classes | |
struct | s_strbuf_t |
struct | Output |
struct | SppState |
struct | SppBuf |
struct | Tag |
struct | Arg |
struct | Proc |
struct | spp_t |
Macros | |
#define | VERSION "1.2.0" |
#define | S_API |
#define | MAXIFL 128 |
#define | DLL_LOCAL __attribute__ ((visibility ("hidden"))) |
#define | GET_ARG(x, y, i) if (y[i][2]) x = y[i] + 2; else x = y[++i] |
#define | DEFAULT_PROC(x) |
#define | ARG_CALLBACK(x) int x (char *arg) |
#define | TAG_CALLBACK(x) int x (SppState *state, Output *out, char *buf) |
#define | PUT_CALLBACK(x) int x (Output *out, char *buf) |
#define | IS_SPACE(x) ((x==' ')||(x=='\t')||(x=='\r')||(x=='\n')) |
#define | D if (0) |
#define | HAVE_FORK 1 |
Typedefs | |
typedef struct s_strbuf_t | SStrBuf |
typedef struct SppState | SppState |
typedef struct SppBuf | SppBuf |
typedef struct Tag | SppTag |
typedef struct Arg | SppArg |
typedef struct Proc | SppProc |
typedef struct spp_t | Spp |
Functions | |
S_API int | spp_file (const char *file, Output *out) |
S_API int | spp_run (char *buf, Output *out) |
S_API void | spp_eval (char *buf, Output *out) |
S_API void | spp_proc_eval (SppProc *p, char *buf, Output *out) |
S_API void | spp_io (FILE *in, Output *out) |
S_API void | spp_proc_list (void) |
S_API void | spp_proc_list_kw (void) |
S_API void | spp_proc_set (SppProc *p, const char *arg, int fail) |
S_API Spp * | spp_new (SppProc *proc) |
S_API char * | spp_parse (Spp *s, const char *input) |
S_API void | spp_free (Spp *s) |
#define DEFAULT_PROC | ( | x | ) |
#define DLL_LOCAL __attribute__ ((visibility ("hidden"))) |
typedef struct s_strbuf_t SStrBuf |
Definition at line 109 of file spp.c.
References out, proc, and spp_proc_eval().
Referenced by main(), rz_asm_rasm_assemble(), and spp_io().
Definition at line 272 of file spp.c.
References D, benchmark::FILE, in, out, and spp_io().
Referenced by main(), and TAG_CALLBACK().
Definition at line 224 of file spp.c.
References Proc::buf, calloc(), D, do_fputs(), in, SppBuf::lbuf, SppBuf::lbuf_s, SppState::lineno, lines(), Proc::multiline, out, proc, spp_eval(), and Proc::state.
Referenced by main(), and spp_file().
Definition at line 113 of file spp.c.
References Proc::buf, D, delta, do_fputs(), free(), SppBuf::lbuf, SppBuf::lbuf_n, lbuf_strcat(), NULL, out, p, printf(), proc, s, spp_run(), spp_run_str(), strdup(), Proc::tag_begin, Proc::tag_post, Proc::tag_pre, and Proc::token.
Referenced by spp_eval(), and spp_eval_str().
S_API void spp_proc_list | ( | void | ) |
S_API void spp_proc_list_kw | ( | void | ) |
Definition at line 298 of file spp.c.
References D, Proc::default_echo, SppState::echo, fail, found, i, SppState::ifl, SppState::lineno, MAXIFL, Proc::name, p, printf(), proc, procs, Proc::state, make_dist_html::tags, and Proc::tags.
Referenced by main(), and rz_asm_rasm_assemble().
Definition at line 11 of file spp.c.
References buflen, Proc::chop, D, i, SppState::ifl, IS_SPACE, MAXIFL, out, proc, Proc::state, make_dist_html::tags, and Proc::token.
Referenced by spp_proc_eval(), and spp_run_str().