)]}'
{
  "commit": "babd899fcfc0571955c7b51e42a09d364432b050",
  "tree": "6c959dfc1efad8d54b27b760e3d8f7f2006d028f",
  "parents": [
    "c2840e6a38db2b407cbb2f8bd5b58a363e9c6623"
  ],
  "author": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Sat Aug 15 01:08:07 2026 +0800"
  },
  "committer": {
    "name": "LIU Hao",
    "email": "lh_mouse@126.com",
    "time": "Sat Aug 15 01:08:07 2026 +0800"
  },
  "message": "headers: crt: split out corecrt_wstdio.h\n\nNote: The diff is huge. It\u0027s recommended to compare corecrt_wstdio.h\nwith original stdio.h and wchar.h to see the changes more clearly.\n\nThis commit splits out corecrt_wstdio.h from stdio.h and wchar.h to\ndeduplicate. The content is mainly moved from wchar.h, with some changes\nfrom stdio.h. It\u0027s noteworthy that several functions slightly differ\nbetween stdio.h and wchar.h, which I think mostly is a mistake.\n\nTo be more specific, I\u0027ve found the following major differences:\n1. __USE_MINGW_ANSI_STDIO is not combind with !_CRTBLD in wchar.h, but\nit is in stdio.h\n2. swprintf, vswprintf, snwprintf, vsnwprintf\u0027s implemention inside\n__USE_MINGW_ANSI_STDIO only exists in stdio.h\n3. snwprintf, vsnwprintf\u0027s declaration inside !__USE_MINGW_ANSI_STDIO is\nguarded stricter in wchar.h and placed differently\n4. _swprintf_l\u0027s declaration inside !_UCRT only exists in wchar.h\n5. _vscwprintf, _swprintf, _vswprintf\u0027s declaration only exists in\nstdio.h\n6. _[v](f,s,)(n,c,)w(printf|scanf)(_p|_l|_p_l)\u0027s\u0027 declaration /\nimplemention only exists in wchar.h\n7. _snwscanf is always declared in stdio.h, but in wchar.h it\u0027s\nimplemented if _UCRT and declared otherwise\n8. vswscanf is declared with __restrict__ in stdio.h, but without it in\nwchar.h\n9. __stdio_common_v(f|s)wprintf_p is only declared in wchar.h.\n\nNote that to keep the diff cleaner, I tried to keep most content AS IS,\nwhich means that there\u0027s still some duplication / inconsistency between\nfunctions, especially regarding __restrict__.\n\n_STDIO_DEFINED, _STDSTREAM_DEFINED, and _WSTDIO_DEFINED are removed,\nsince all the content is moved to corecrt_wstdio.h, and they\u0027re not used\nanywhere else.\n\nThis commit uses _CRT_BEGIN_C_HEADER from my previous commit.\n\nSigned-off-by: Zhongteng Gui \u003cdragon-archer@outlook.com\u003e\nCo-authored-by: LIU Hao \u003clh_mouse@126.com\u003e\nSigned-off-by: LIU Hao \u003clh_mouse@126.com\u003e\n",
  "tree_diff": [
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9e3b37a315210abc2719a11d91058f95294e8720",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/corecrt_wstdio.h"
    },
    {
      "type": "modify",
      "old_id": "6622b5440c0a16395256408e70ae5aaf1bd25c53",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/stdio.h",
      "new_id": "fa30db3f7e95bfcbec418db99f8c3323f3230e41",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/stdio.h"
    },
    {
      "type": "modify",
      "old_id": "d7e40a3eae7d418430a56be87a0bf2b1c20a2423",
      "old_mode": 33188,
      "old_path": "mingw-w64-headers/crt/wchar.h",
      "new_id": "d5057ab3f56aa2dcbc35d59b17328560df6b9831",
      "new_mode": 33188,
      "new_path": "mingw-w64-headers/crt/wchar.h"
    }
  ]
}
