Changeset 96052 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- Aug 5, 2022 10:48:48 AM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 152851
- Location:
- trunk/src/VBox/Runtime/common/string
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/nocrt-strtok.cpp
r96045 r96052 29 29 * Header Files * 30 30 *********************************************************************************************************************************/ 31 #include "internal/ iprt.h"31 #include "internal/nocrt.h" 32 32 #include <iprt/string.h> 33 33 … … 36 36 char *RT_NOCRT(strtok)(char *psz, const char *pszDelimiters) 37 37 { 38 static char *s_pszState = NULL; /** @todo make this a TLS variable. */ 39 return RT_NOCRT(strtok_r)(psz, pszDelimiters, &s_pszState); 38 PRTNOCRTTHREADDATA pNoCrtData = rtNoCrtThreadDataGet(); 39 if (pNoCrtData) 40 return RT_NOCRT(strtok_r)(psz, pszDelimiters, &pNoCrtData->pszStrToken); 41 42 static char *s_pszFallback = NULL; 43 return RT_NOCRT(strtok_r)(psz, pszDelimiters, &s_pszFallback); 40 44 } 41 45 RT_ALIAS_AND_EXPORT_NOCRT_SYMBOL(strtok);
Note:
See TracChangeset
for help on using the changeset viewer.