Lines Matching full:pr

53 static void print(PR *, u_char *);
61 PR *pr; in display() local
75 for (pr = fu->nextpr; pr; address += pr->bcnt, in display()
76 bp += pr->bcnt, pr = pr->nextpr) { in display()
78 !(pr->flags & (F_TEXT|F_BPAD))) in display()
79 bpad(pr); in display()
80 if (cnt == 1 && pr->nospace) { in display()
81 savech = *pr->nospace; in display()
82 *pr->nospace = '\0'; in display()
84 print(pr, bp); in display()
85 if (cnt == 1 && pr->nospace) in display()
86 *pr->nospace = savech; in display()
99 for (pr = endfu->nextpr; pr; pr = pr->nextpr) in display()
100 switch(pr->flags) { in display()
102 (void)printf(pr->fmt, (quad_t)eaddress); in display()
105 (void)printf("%s", pr->fmt); in display()
112 print(PR *pr, u_char *bp) in print() argument
124 switch(pr->flags) { in print()
126 (void)printf(pr->fmt, (quad_t)address); in print()
129 (void)printf(pr->fmt, ""); in print()
132 conv_c(pr, bp, eaddress ? eaddress - address : in print()
136 (void)printf(pr->fmt, *bp); in print()
139 switch(pr->bcnt) { in print()
142 (void)printf(pr->fmt, f4); in print()
146 (void)printf(pr->fmt, f8); in print()
149 if (pr->bcnt == sizeof(long double)) { in print()
151 (void)printf(pr->fmt, ldbl); in print()
157 switch(pr->bcnt) { in print()
159 (void)printf(pr->fmt, (quad_t)(signed char)*bp); in print()
163 (void)printf(pr->fmt, (quad_t)s2); in print()
167 (void)printf(pr->fmt, (quad_t)s4); in print()
171 (void)printf(pr->fmt, s8); in print()
176 (void)printf(pr->fmt, isprint(*bp) ? *bp : '.'); in print()
179 (void)printf(pr->fmt, (char *)bp); in print()
182 (void)printf("%s", pr->fmt); in print()
185 conv_u(pr, bp); in print()
188 switch(pr->bcnt) { in print()
190 (void)printf(pr->fmt, (u_quad_t)*bp); in print()
194 (void)printf(pr->fmt, (u_quad_t)u2); in print()
198 (void)printf(pr->fmt, (u_quad_t)u4); in print()
202 (void)printf(pr->fmt, u8); in print()
210 bpad(PR *pr) in bpad() argument
219 pr->flags = F_BPAD; in bpad()
220 pr->cchar[0] = 's'; in bpad()
221 pr->cchar[1] = '\0'; in bpad()
222 for (p1 = pr->fmt; *p1 != '%'; ++p1); in bpad()