Std.cppm 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module;
  2. #include <cctype>
  3. #include <clocale>
  4. #include <cmath>
  5. #include <cstdio>
  6. #include <cstdlib>
  7. #include <cstring>
  8. #include <source_location>
  9. export module Core.Std;
  10. // NOLINTBEGIN(misc-unused-using-decls)
  11. export namespace std {
  12. using std::source_location;
  13. }
  14. export using ::exit;
  15. export using ::fflush;
  16. export using ::fputs;
  17. export using ::free;
  18. export using ::iscntrl;
  19. export using ::malloc;
  20. export using ::memcmp;
  21. export using ::memcpy;
  22. export using ::memset;
  23. export using ::putchar;
  24. export using ::puts;
  25. export using ::realloc;
  26. export using ::sincosf;
  27. export using ::sqrtf;
  28. export using ::stdout;
  29. export using ::strcmp;
  30. export using ::strdup;
  31. export using ::strstr;
  32. export using ::tanf;
  33. // NOLINTEND(misc-unused-using-decls)
  34. export void setDefaultLocal() noexcept;
  35. void setDefaultLocal() noexcept {
  36. setlocale(LC_ALL, "en_US.utf8");
  37. }