Rizin
unix-like reverse engineering framework and cli tools
pod.h
Go to the documentation of this file.
1 /* CPP */
2 
3 static TAG_CALLBACK(pod_default) {
4  out_printf (out, "DEFAULT: (%s)\n", buf);
5  return 0;
6 }
7 
8 static TAG_CALLBACK(pod_cut) {
9  out_printf (out, "\n");
10  state->echo[state->ifl] = 0;
11  return 0;
12 }
13 
14 static TAG_CALLBACK(pod_head1) {
15  state->echo[state->ifl] = 1;
16  out_printf (out, "\n");
17  if (!buf) {
18  return 0;
19  }
20  out_printf (out, "%s\n", buf);
21  int i, len = strlen (buf);
22  for (i = 0; i < len; i++) {
23  out_printf (out, "%c", '=');
24  }
25  out_printf (out, "\n");
26  return 0;
27 }
28 
29 static struct Tag pod_tags[] = {
30  { "head1", pod_head1 },
31  { "cut", pod_cut },
32  { NULL, pod_default },
33  { NULL }
34 };
35 
36 static struct Arg pod_args[] = {
37  { NULL }
38 };
39 
41  .name = "pod",
42  .tags = (struct Tag **)pod_tags,
43  .args = (struct Arg **)pod_args,
44  .token = " ",
45  .eof = NULL,
46  .tag_pre = "=",
47  .tag_post = "\n",
48  .multiline = NULL,
49  .default_echo = 0,
50  .chop = 0,
51  .tag_begin = 1,
52 };
size_t len
Definition: 6502dis.c:15
lzma_index ** i
Definition: index.h:629
const lzma_allocator const uint8_t size_t uint8_t * out
Definition: block.h:528
#define NULL
Definition: cris-opc.c:27
voidpf void * buf
Definition: ioapi.h:138
int args
Definition: mipsasm.c:18
static struct Arg pod_args[]
Definition: pod.h:36
static TAG_CALLBACK(pod_default)
Definition: pod.h:3
static struct Tag pod_tags[]
Definition: pod.h:29
DLL_LOCAL struct Proc pod_proc
Definition: pod.h:40
void out_printf(Output *out, char *str,...) __attribute__((format(printf
#define DLL_LOCAL
Definition: spp.h:69
Definition: spp.h:121
Definition: spp.h:128
const char * name
Definition: spp.h:129
Definition: spp.h:116
Definition: dis.h:43