g__fmt.c (187808) | g__fmt.c (219557) |
---|---|
1/**************************************************************** 2 3The author of this software is David M. Gay. 4 5Copyright (C) 1998 by Lucent Technologies 6All Rights Reserved 7 8Permission to use, copy, modify, and distribute this software and --- 42 unchanged lines hidden (view full) --- 51 size_t dlen = strlen(decimalpoint); 52#else 53 char *decimalpoint; 54 static char *decimalpoint_cache; 55 static size_t dlen; 56 if (!(s0 = decimalpoint_cache)) { 57 s0 = localeconv()->decimal_point; 58 dlen = strlen(s0); | 1/**************************************************************** 2 3The author of this software is David M. Gay. 4 5Copyright (C) 1998 by Lucent Technologies 6All Rights Reserved 7 8Permission to use, copy, modify, and distribute this software and --- 42 unchanged lines hidden (view full) --- 51 size_t dlen = strlen(decimalpoint); 52#else 53 char *decimalpoint; 54 static char *decimalpoint_cache; 55 static size_t dlen; 56 if (!(s0 = decimalpoint_cache)) { 57 s0 = localeconv()->decimal_point; 58 dlen = strlen(s0); |
59 if ((decimalpoint_cache = (char*)malloc(strlen(s0) + 1))) { | 59 if ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) { |
60 strcpy(decimalpoint_cache, s0); 61 s0 = decimalpoint_cache; 62 } 63 } 64 decimalpoint = s0; 65#endif 66#else 67#define dlen 0 --- 80 unchanged lines hidden --- | 60 strcpy(decimalpoint_cache, s0); 61 s0 = decimalpoint_cache; 62 } 63 } 64 decimalpoint = s0; 65#endif 66#else 67#define dlen 0 --- 80 unchanged lines hidden --- |