Home | History | Annotate | Download | only in hexdump

Lines Matching defs:pr

66 static inline void print(PR *, u_char *);
73 PR *pr;
87 for (pr = fu->nextpr; pr; address += pr->bcnt,
88 bp += pr->bcnt, pr = pr->nextpr) {
90 !(pr->flags & (F_TEXT|F_BPAD)))
91 bpad(pr);
92 if (cnt == 1 && pr->nospace) {
93 savech = *pr->nospace;
94 *pr->nospace = '\0';
96 print(pr, bp);
97 if (cnt == 1 && pr->nospace)
98 *pr->nospace = savech;
111 for (pr = endfu->nextpr; pr; pr = pr->nextpr)
112 switch(pr->flags) {
114 (void)printf(pr->fmt, (int64_t)eaddress);
117 (void)printf("%s", pr->fmt);
124 print(PR *pr, u_char *bp)
135 switch(pr->flags) {
137 (void)printf(pr->fmt, (int64_t)address);
140 (void)printf(pr->fmt, "");
143 conv_c(pr, bp);
146 (void)printf(pr->fmt, *bp);
149 switch(pr->bcnt) {
152 (void)printf(pr->fmt, f4);
156 (void)printf(pr->fmt, f8);
161 switch(pr->bcnt) {
163 (void)printf(pr->fmt, (int64_t)*bp);
167 (void)printf(pr->fmt, (int64_t)s2);
171 (void)printf(pr->fmt, (int64_t)s4);
175 (void)printf(pr->fmt, (int64_t)s8);
180 (void)printf(pr->fmt, isprint(*bp) ? *bp : '.');
183 (void)printf(pr->fmt, (char *)bp);
186 (void)printf("%s", pr->fmt);
189 conv_u(pr, bp);
192 switch(pr->bcnt) {
194 (void)printf(pr->fmt, (uint64_t)*bp);
198 (void)printf(pr->fmt, (uint64_t)u2);
202 (void)printf(pr->fmt, (uint64_t)u4);
206 (void)printf(pr->fmt, (uint64_t)u8);
214 bpad(PR *pr)
223 pr->flags = F_BPAD;
224 pr->cchar[0] = 's';
225 pr->cchar[1] = '\0';
226 for (p1 = pr->fmt; *p1 != '%'; ++p1);