printf.c (96916090f488986a4ebb8e9ffa6a3b50881d5ccd) | printf.c (7fafd91d85181e946207bed18c44addc47e36c63) |
---|---|
1/* -*- linux-c -*- ------------------------------------------------------- * 2 * 3 * Copyright (C) 1991, 1992 Linus Torvalds 4 * Copyright 2007 rPath, Inc. - All Rights Reserved 5 * 6 * This file is part of the Linux kernel, and is made available under 7 * the terms of the GNU General Public License version 2. 8 * --- 42 unchanged lines hidden (view full) --- 51 int i; 52 53 /* locase = 0 or 0x20. ORing digits or letters with 'locase' 54 * produces same digits or (maybe lowercased) letters */ 55 locase = (type & SMALL); 56 if (type & LEFT) 57 type &= ~ZEROPAD; 58 if (base < 2 || base > 36) | 1/* -*- linux-c -*- ------------------------------------------------------- * 2 * 3 * Copyright (C) 1991, 1992 Linus Torvalds 4 * Copyright 2007 rPath, Inc. - All Rights Reserved 5 * 6 * This file is part of the Linux kernel, and is made available under 7 * the terms of the GNU General Public License version 2. 8 * --- 42 unchanged lines hidden (view full) --- 51 int i; 52 53 /* locase = 0 or 0x20. ORing digits or letters with 'locase' 54 * produces same digits or (maybe lowercased) letters */ 55 locase = (type & SMALL); 56 if (type & LEFT) 57 type &= ~ZEROPAD; 58 if (base < 2 || base > 36) |
59 return 0; | 59 return NULL; |
60 c = (type & ZEROPAD) ? '0' : ' '; 61 sign = 0; 62 if (type & SIGN) { 63 if (num < 0) { 64 sign = '-'; 65 num = -num; 66 size--; 67 } else if (type & PLUS) { --- 242 unchanged lines hidden --- | 60 c = (type & ZEROPAD) ? '0' : ' '; 61 sign = 0; 62 if (type & SIGN) { 63 if (num < 0) { 64 sign = '-'; 65 num = -num; 66 size--; 67 } else if (type & PLUS) { --- 242 unchanged lines hidden --- |