Deleted Added
full compact
b_print.c (325335) b_print.c (326663)
1/* crypto/bio/b_print.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 371 unchanged lines hidden (view full) ---

380 if (!fmtint(sbuffer, buffer, &currlen, maxlen,
381 value, 16, min, max, flags | DP_F_NUM))
382 return 0;
383 break;
384 case 'n': /* XXX */
385 if (cflags == DP_C_SHORT) {
386 short int *num;
387 num = va_arg(args, short int *);
1/* crypto/bio/b_print.c */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *

--- 371 unchanged lines hidden (view full) ---

380 if (!fmtint(sbuffer, buffer, &currlen, maxlen,
381 value, 16, min, max, flags | DP_F_NUM))
382 return 0;
383 break;
384 case 'n': /* XXX */
385 if (cflags == DP_C_SHORT) {
386 short int *num;
387 num = va_arg(args, short int *);
388 *num = currlen;
388 *num = (short int)currlen;
389 } else if (cflags == DP_C_LONG) { /* XXX */
390 long int *num;
391 num = va_arg(args, long int *);
392 *num = (long int)currlen;
393 } else if (cflags == DP_C_LLONG) { /* XXX */
394 LLONG *num;
395 num = va_arg(args, LLONG *);
396 *num = (LLONG) currlen;

--- 100 unchanged lines hidden (view full) ---

497 int caps = 0;
498
499 if (max < 0)
500 max = 0;
501 uvalue = value;
502 if (!(flags & DP_F_UNSIGNED)) {
503 if (value < 0) {
504 signvalue = '-';
389 } else if (cflags == DP_C_LONG) { /* XXX */
390 long int *num;
391 num = va_arg(args, long int *);
392 *num = (long int)currlen;
393 } else if (cflags == DP_C_LLONG) { /* XXX */
394 LLONG *num;
395 num = va_arg(args, LLONG *);
396 *num = (LLONG) currlen;

--- 100 unchanged lines hidden (view full) ---

497 int caps = 0;
498
499 if (max < 0)
500 max = 0;
501 uvalue = value;
502 if (!(flags & DP_F_UNSIGNED)) {
503 if (value < 0) {
504 signvalue = '-';
505 uvalue = -(unsigned LLONG)value;
505 uvalue = 0 - (unsigned LLONG)value;
506 } else if (flags & DP_F_PLUS)
507 signvalue = '+';
508 else if (flags & DP_F_SPACE)
509 signvalue = ' ';
510 }
511 if (flags & DP_F_NUM) {
512 if (base == 8)
513 prefix = "0";

--- 356 unchanged lines hidden ---
506 } else if (flags & DP_F_PLUS)
507 signvalue = '+';
508 else if (flags & DP_F_SPACE)
509 signvalue = ' ';
510 }
511 if (flags & DP_F_NUM) {
512 if (base == 8)
513 prefix = "0";

--- 356 unchanged lines hidden ---