rizin/subprojects/rzspp/p/pod.h
Riccardo Schirone 6f40dfe493
Move remaining things from shlr/ to meson subprojects (#2126)
* Move binrz meson directives to binrz/ dir

* Move rizin-shell-parser to a subproject

* Move bochs to a meson subproject

* Move rzqnx to meson subproject

* Move winkd to a meson subproject

* Move rzar to a meson subproject

* Move rzw32dbg_wrap to a meson subproject

* Move ptrace-wrap to a meson subproject

* Move rzgdb to a meson subproject

* Rename w32dbg_wrap to rzw32dbg_wrap

* Update CODEOWNERS

* Remove old references to shlr

* Move shlr/heap stuff in core and remove shlr/arm

* Move spp to a meson subproject

* Remove last references to shlr

* Remove use_webui option

* Move include files directives to librz/include/meson.build

* Move librz meson directives into librz/meson.build

* Handle d/ directories inside the specific module meson.build

* Move plugins listing to specific module meson.build

* Move rzheap to its own subproject

* Fix js linter and licenses

* Use meson.override_dependency for all rz_ modules
2021-12-22 09:20:39 +08:00

52 lines
901 B
C

/* CPP */
static TAG_CALLBACK(pod_default) {
out_printf (out, "DEFAULT: (%s)\n", buf);
return 0;
}
static TAG_CALLBACK(pod_cut) {
out_printf (out, "\n");
state->echo[state->ifl] = 0;
return 0;
}
static TAG_CALLBACK(pod_head1) {
state->echo[state->ifl] = 1;
out_printf (out, "\n");
if (!buf) {
return 0;
}
out_printf (out, "%s\n", buf);
int i, len = strlen (buf);
for (i = 0; i < len; i++) {
out_printf (out, "%c", '=');
}
out_printf (out, "\n");
return 0;
}
static struct Tag pod_tags[] = {
{ "head1", pod_head1 },
{ "cut", pod_cut },
{ NULL, pod_default },
{ NULL }
};
static struct Arg pod_args[] = {
{ NULL }
};
DLL_LOCAL struct Proc pod_proc = {
.name = "pod",
.tags = (struct Tag **)pod_tags,
.args = (struct Arg **)pod_args,
.token = " ",
.eof = NULL,
.tag_pre = "=",
.tag_post = "\n",
.multiline = NULL,
.default_echo = 0,
.chop = 0,
.tag_begin = 1,
};