diff options
author | nyamatongwe <devnull@localhost> | 2009-10-27 00:02:12 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2009-10-27 00:02:12 +0000 |
commit | 6085a182d195a0a7d73548f321ce1ba9da005a4d (patch) | |
tree | dc8c45f5e8f7af866d4d0f628a9cd1cbb3b24446 /src/Editor.cxx | |
parent | 080c819196de3573433269fa6452cdb57c713cf8 (diff) | |
download | scintilla-mirror-6085a182d195a0a7d73548f321ce1ba9da005a4d.tar.gz |
Added StringResult method to return strings in the standard way.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index d8bfced13..ce3d467f4 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6387,6 +6387,15 @@ sptr_t Editor::StyleGetMessage(unsigned int iMessage, uptr_t wParam, sptr_t lPar return 0; } +sptr_t Editor::StringResult(sptr_t lParam, const char *val) { + const int n = strlen(val); + if (lParam != 0) { + char *ptr = reinterpret_cast<char *>(lParam); + strcpy(ptr, val); + } + return n; // Not including NUL +} + sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { //Platform::DebugPrintf("S start wnd proc %d %d %d\n",iMessage, wParam, lParam); |