From cab5b0d6e5ba9d39d9f56a93c1394e0720a27d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 21 Feb 2019 11:26:40 -0800 Subject: [PATCH 1/2] Cleanup. --- src/file.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/file.cpp b/src/file.cpp index c809d71..6ffab48 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -20,12 +20,12 @@ # if BX_CONFIG_CRT_DIRECTORY_READER # include # endif // BX_CONFIG_CRT_DIRECTORY_READER -# include // remove +# include // remove +# include // stat, mkdir # if BX_CRT_MSVC -# include // _getcwd +# include // _getcwd # else -# include // stat, mkdir -# include // getcwd +# include // getcwd # endif // BX_CRT_MSVC #endif // !BX_CRT_NONE From 2d5ea0bf2c6572cea90a7c9b1482438d4a03c2e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Thu, 21 Feb 2019 20:18:51 -0800 Subject: [PATCH 2/2] Cleanup. --- include/bx/string.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/bx/string.h b/include/bx/string.h index 6ce98bc..3fdce89 100644 --- a/include/bx/string.h +++ b/include/bx/string.h @@ -21,6 +21,7 @@ namespace bx }; /// Non-zero-terminated string view. + /// class StringView { public: @@ -77,9 +78,16 @@ namespace bx /// void clear(); + /// Returns pointer to non-terminated string. + /// + /// @attention Use of this pointer in standard C/C++ functions is not safe. You must use it + /// in conjunction with `getTerm()` or getLength()`. /// const char* getPtr() const; + /// Returns pointer past last character in string view. + /// + /// @attention Dereferencing this pointer is not safe. /// const char* getTerm() const;