aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-02-17 07:57:43 +0000
committernyamatongwe <devnull@localhost>2001-02-17 07:57:43 +0000
commit0d508e3e10cc073b041dc5148c796aee8c1e3928 (patch)
treed7e671c0145a32a27b001d6acf4dc28519710a0b /src
parente53cc246d032d0f925cbfca9a9013420574cb9ac (diff)
downloadscintilla-mirror-0d508e3e10cc073b041dc5148c796aee8c1e3928.tar.gz
Defining sptr_t and uptr_t to be integral types large enough to contain
pointers to allow portability to 64 bit platforms.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
-rw-r--r--src/Editor.h4
-rw-r--r--src/ScintillaBase.cxx2
-rw-r--r--src/ScintillaBase.h2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 67d8ea856..2b759c96c 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3200,7 +3200,7 @@ static bool ValidMargin(unsigned long wParam) {
return wParam < ViewStyle::margins;
}
-long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) {
+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);
// Optional macro recording hook
diff --git a/src/Editor.h b/src/Editor.h
index 4e1ffc782..81806ba77 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -308,11 +308,11 @@ protected: // ScintillaBase subclass needs access to much of Editor
void ToggleContraction(int line);
void EnsureLineVisible(int line);
- virtual long DefWndProc(unsigned int iMessage, unsigned long wParam, long lParam) = 0;
+ virtual sptr_t DefWndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) = 0;
public:
// Public so scintilla_send_message can use it
- virtual long WndProc(unsigned int iMessage, unsigned long wParam, long lParam);
+ virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam);
// Public so scintilla_set_id can use it
int ctrlID;
};
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx
index 29fad12d0..eb769923c 100644
--- a/src/ScintillaBase.cxx
+++ b/src/ScintillaBase.cxx
@@ -367,7 +367,7 @@ void ScintillaBase::NotifyStyleToNeeded(int endStyleNeeded) {
Editor::NotifyStyleToNeeded(endStyleNeeded);
}
-long ScintillaBase::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) {
+sptr_t ScintillaBase::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
switch (iMessage) {
case SCI_AUTOCSHOW:
listType = 0;
diff --git a/src/ScintillaBase.h b/src/ScintillaBase.h
index 5978ca9bc..04abbd10f 100644
--- a/src/ScintillaBase.h
+++ b/src/ScintillaBase.h
@@ -70,7 +70,7 @@ protected:
virtual void NotifyStyleToNeeded(int endStyleNeeded);
public:
// Public so scintilla_send_message can use it
- virtual long WndProc(unsigned int iMessage, unsigned long wParam, long lParam);
+ virtual sptr_t WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam);
};
#endif