summary refs log tree commit diff stats
path: root/pgp
diff options
context:
space:
mode:
authorAndrew Yu <andrew@andrewyu.org>2023-06-21 22:25:54 +0800
committerAutomatic Merge <andrew+automerge@andrewyu.org>2023-07-15 00:31:15 +0800
commit1a0fd426b79d4451fb96a8d2845fe4d062a79f96 (patch)
treea54beeff5e1cf3c7ad8f74d49db7b2778b18986e /pgp
parent2c10b022ab909df137be1e3dc979c82a4ccdd726 (diff)
downloadwww-1a0fd426b79d4451fb96a8d2845fe4d062a79f96.tar.gz
Add missing <hr /> for the last post, on microblog
Diffstat (limited to 'pgp')
0 files changed, 0 insertions, 0 deletions
nx-snapshots/blame/src/structdump.h?id=d97a65137382daf2f896a947ba680c095f7ab664'>^
f7c3c4ca ^



87434eaa ^




f7c3c4ca ^
87434eaa ^
8ce6b560 ^

















c5fef0d4 ^
8ce6b560 ^
87434eaa ^





c5fef0d4 ^

f7c3c4ca ^



87434eaa ^




f7c3c4ca ^
87434eaa ^
8ce6b560 ^




























87434eaa ^









f7c3c4ca ^



87434eaa ^




f7c3c4ca ^
87434eaa ^
8ce6b560 ^
c5fef0d4 ^










87434eaa ^


c5fef0d4 ^
f7c3c4ca ^



87434eaa ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159









                                                                       
            
                  

















                                                            





                                                                              



                                                                  




                                                      
            
                  

















                                                            
                                          
                                          





                                                                           

                                                                   



                                                                  




                                                      
            
                  




























                                                            









                                                                             



                                                                  




                                                    
            
                  
                                                          










                                       


                                                                             
                                                                      



                                                                


                         
/*
 *
 * Some macros to dump out formatted struct's via the trace file.  -KED
 *
 */
#ifndef STRUCTDUMP_H
#define STRUCTDUMP_H

/* usage: DUMPSTRUCT_LINK(link_ptr, "message"); */
#define   DUMPSTRUCT_LINK(L,X) \
if ((L)) { \
CTRACE(tfp, "\n" \
            "KED:     link_ptr=0x%08x  sizeof=%d  ["X"]\n" \
            "link       struct {\n"      \
            "           *lname=0x%08x\n" \
            "            lname=|%s|\n"   \
            "          *target=0x%08x\n" \
            "           target=|%s|\n"   \
            "        *hightext=0x%08x\n" \
            "         hightext=|%s|\n"   \
            "       *hightext2=0x%08x\n" \
            "        hightext2=|%s|\n"   \
            " hightext2_offset=%d\n"     \
            "      inUnderline=%1x\n"    \
            "               lx=%d\n"     \
            "               ly=%d\n"     \
            "             type=%d\n"     \
            "    anchor_number=%d\n"     \
            "  anchor_line_num=%d\n"     \
            "            *form=0x%08x\n" \
            "}\n", \
            (L), sizeof(*((L))), \
            (L)->lname, (L)->lname, (L)->target, (L)->target, \
            (L)->hightext, (L)->hightext, (L)->hightext2, (L)->hightext2, \
            (L)->hightext2_offset, (L)->inUnderline, (L)->lx, (L)->ly, \
            (L)->type, (L)->anchor_number, (L)->anchor_line_num, (L)->form); \
}else{ \
CTRACE(tfp, "\n" \
            "KED:     link_ptr=0x00000000  (NULL)     ["X"]\n"); \
} \
CTRACE_FLUSH(tfp);


/* usage: DUMPSTRUCT_ANCHOR(anchor_ptr, "message"); */
#define   DUMPSTRUCT_ANCHOR(A,X) \
if ((A)) { \
CTRACE(tfp, "\n" \
            "KED:   anchor_ptr=0x%08x  sizeof=%d  ["X"]\n" \
            "TextAnchor struct {\n"      \
            "            *next=0x%08x\n" \
            "           number=%d\n"     \
            "            start=%d\n"     \
            "         line_pos=%d\n"     \
            "           extent=%d\n"     \
            "         line_num=%d\n"     \
            "        *hightext=0x%08x\n" \
            "         hightext=|%s|\n"   \
            "       *hightext2=0x%08x\n" \
            "        hightext2=|%s|\n"   \
            "  hightext2offset=%d\n"     \
            "        link_type=%d\n"     \
            "     *input_field=0x%08x\n" \
            "      input_field=|%s|\n"   \
            "      show_anchor=%1x\n"    \
            "      inUnderline=%1x\n"    \
            "   expansion_anch=%1x\n"    \
            "          *anchor=0x%08x\n" \
            "}\n", \
            (A), sizeof(*((A))), \
            (A)->next, (A)->number, (A)->start, (A)->line_pos, \
            (A)->extent, (A)->line_num, \
            (A)->hightext, (A)->hightext, (A)->hightext2, (A)->hightext2, \
            (A)->hightext2offset, (A)->link_type, \
            (A)->input_field, (A)->input_field, (A)->show_anchor, \
            (A)->inUnderline, (A)->expansion_anch, (A)->anchor); \
}else{ \
CTRACE(tfp, "\n" \
            "KED:   anchor_ptr=0x00000000  (NULL)     ["X"]\n"); \
} \
CTRACE_FLUSH(tfp);


/* usage: DUMPSTRUCT_FORM(forminfo_ptr, "message"); */
#define   DUMPSTRUCT_FORMINFO(F,X) \
if ((F)) { \
CTRACE(tfp, "\n" \
            "KED: forminfo_ptr=0x%08x  sizeof=%d  ["X"]\n" \
            "FormInfo   struct {\n"      \
            "            *name=0x%08x\n" \
            "             name=|%s|\n"   \
            "           number=%d\n"     \
            "             type=%d\n"     \
            "           *value=0x%08x\n" \
            "            value=|%s|\n"   \
            "      *orig_value=0x%08x\n" \
            "       orig_value=|%s|\n"   \
            "             size=%d\n"     \
            "        maxlength=%d\n"     \
            "            group=%d\n"     \
            "        num_value=%d\n"     \
            "           hrange=%d\n"     \
            "           lrange=%d\n"     \
            "     *select_list=0x%08x\n" \
            "    submit_action=|%s|\n"   \
            "    submit_method=%d\n"     \
            "   submit_enctype=|%s|\n"   \
            "     submit_title=|%s|\n"   \
            "         no_cache=%1x\n"    \
            "  cp_submit_value=|%s|\n"   \
            "orig_submit_value=|%s|\n"   \
            "           size_l=%d\n"     \
            "         disabled=%d\n"     \
            "          name_cs=%d\n"     \
            "         value_cs=%d\n"     \
            "        accept_cs=|%s|\n"   \
            "}\n", \
            (F), sizeof(*((F))), \
            (F)->name, (F)->name, (F)->number, (F)->type, \
            (F)->value, (F)->value, (F)->orig_value, (F)->orig_value, \
            (F)->size, (F)->maxlength, (F)->group, (F)->num_value, \
            (F)->hrange, (F)->lrange, (F)->select_list, (F)->submit_action, \
            (F)->submit_method, (F)->submit_enctype, (F)->submit_title, \
            (F)->no_cache, (F)->cp_submit_value, (F)->orig_submit_value, \
            (F)->size_l, (F)->disabled, (F)->name_cs, (F)->value_cs, \
            (F)->accept_cs); \
}else{ \
CTRACE(tfp, "\n" \
            "KED: forminfo_ptr=0x00000000  (NULL)     ["X"]\n"); \
} \
CTRACE_FLUSH(tfp);


/* usage: DUMPSTRUCT_LINE(htline_ptr, "message"); */
#define   DUMPSTRUCT_LINE(L,X) \
if ((L)) { \
CTRACE(tfp, "\n" \
            "KED: htline_ptr=0x%08x  sizeof=%d  ["X"]\n" \
            "HTLine  struct {\n"      \
            "         *next=0x%08x\n" \
            "         *prev=0x%08x\n" \
            "        offset=%d\n"     \
            "          size=%d\n"     \
            "   split_after=%1x\n"    \
            "        bullet=%1x\n"    \
            "expansion_line=%1x\n"    \
            "w/o U_C_S def\n"         \
            "        data[]=0x%08x\n" \
            "          data=|%s|\n"   \
            "}\n", \
            (L), sizeof(*((L))), \
            (L)->next, (L)->prev, (L)->offset, (L)->size, (L)->split_after, \
            (L)->bullet, (L)->expansion_line, (L)->data, (L)->data); \
}else{ \
CTRACE(tfp, "\n" \
            "KED: htline_ptr=0x00000000  (NULL)     ["X"]\n"); \
} \
CTRACE_FLUSH(tfp);

#endif /* STRUCTDUMP_H */