Lines Matching refs:wstr
310 wchar_t *wstr = NULL; in __mingw_sformat() local
676 if ((wstr = (wchar_t *) *pstr) == NULL) in __mingw_sformat()
684 wstr = (wchar_t *) get_va_nth (argp, npos); in __mingw_sformat()
686 wstr = va_arg (arg, wchar_t *); in __mingw_sformat()
687 if (!wstr) in __mingw_sformat()
702 && wstr == ((wchar_t *) *pstr + str_sz)) in __mingw_sformat()
706 while ((wstr = (wchar_t *) realloc (*pstr, new_sz * sizeof (wchar_t))) == NULL in __mingw_sformat()
709 if (!wstr) in __mingw_sformat()
714 *pstr = (char *) wstr; in __mingw_sformat()
715 wstr += str_sz; in __mingw_sformat()
721 n = mbrtowc ((flags & IS_SUPPRESSED) == 0 ? wstr : NULL, buf, 1, &cstate); in __mingw_sformat()
743 ++wstr; in __mingw_sformat()
749 optimize_alloc (pstr, (char *) wstr, str_sz * sizeof (wchar_t)); in __mingw_sformat()
848 if ((wstr = (wchar_t *) *pstr) == NULL) in __mingw_sformat()
856 wstr = (wchar_t *) get_va_nth (argp, npos); in __mingw_sformat()
858 wstr = va_arg (arg, wchar_t *); in __mingw_sformat()
859 if (!wstr) in __mingw_sformat()
881 n = mbrtowc ((flags & IS_SUPPRESSED) == 0 ? wstr : NULL, buf, 1, &cstate); in __mingw_sformat()
901 ++wstr; in __mingw_sformat()
906 && wstr == ((wchar_t *) *pstr + str_sz)) in __mingw_sformat()
909 while ((wstr = (wchar_t *) realloc (*pstr, new_sz * sizeof (wchar_t))) == NULL in __mingw_sformat()
912 if (!wstr) in __mingw_sformat()
922 *pstr = (char *) wstr; in __mingw_sformat()
923 wstr += str_sz; in __mingw_sformat()
931 *wstr++ = 0; in __mingw_sformat()
932 optimize_alloc (pstr, (char *) wstr, str_sz * sizeof (wchar_t)); in __mingw_sformat()
1381 if ((wstr = (wchar_t *) *pstr) == NULL) in __mingw_sformat()
1389 wstr = (wchar_t *) get_va_nth (argp, npos); in __mingw_sformat()
1391 wstr = va_arg (arg, wchar_t *); in __mingw_sformat()
1392 if (!wstr) in __mingw_sformat()
1485 n = mbrtowc (wstr, buf, 1, &cstate); in __mingw_sformat()
1494 ++wstr; in __mingw_sformat()
1495 if ((flags & IS_ALLOC_USED) != 0 && wstr == ((wchar_t *) *pstr + str_sz)) in __mingw_sformat()
1498 while ((wstr = (wchar_t *) realloc (*pstr, new_sz * sizeof (wchar_t))) == NULL in __mingw_sformat()
1501 if (!wstr) in __mingw_sformat()
1513 *pstr = (char *) wstr; in __mingw_sformat()
1514 wstr += str_sz; in __mingw_sformat()
1536 *wstr++ = 0; in __mingw_sformat()
1537 optimize_alloc (pstr, (char *) wstr, str_sz * sizeof (wchar_t)); in __mingw_sformat()