Created
October 4, 2013 00:07
-
-
Save mnicolella/6819047 to your computer and use it in GitHub Desktop.
if using Local_Private_Memory, let's not uselessly store the result pointer in a static variable that can get stomped on across threads
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| return sign ? -dval(&rv) : dval(&rv); | |
| } | |
| #ifndef Local_Private_Memory | |
| #ifndef MULTIPLE_THREADS | |
| static char *dtoa_result; | |
| #endif | |
| #endif | |
| static char * | |
| #ifdef KR_headers | |
| rv_alloc(KRm1 i) KRm2 int i; | |
| ----------------------------------------------------------------------------------------- | |
| *r = k; | |
| return | |
| #ifndef Local_Private_Memory | |
| #ifndef MULTIPLE_THREADS | |
| dtoa_result = | |
| #endif | |
| #endif | |
| (char *)(r+1); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment