diff options
| author | nyamatongwe <unknown> | 2001-02-17 07:57:43 +0000 |
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-02-17 07:57:43 +0000 |
| commit | 98596629f2462a30dca950d5365a200b5704277f (patch) | |
| tree | d7e671c0145a32a27b001d6acf4dc28519710a0b /include/Scintilla.h | |
| parent | f29acfd963c239d1eecf94d154103e552bbcec2a (diff) | |
| download | scintilla-mirror-98596629f2462a30dca950d5365a200b5704277f.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 'include/Scintilla.h')
| -rw-r--r-- | include/Scintilla.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/Scintilla.h b/include/Scintilla.h index 802a160bf..429b7a9d7 100644 --- a/include/Scintilla.h +++ b/include/Scintilla.h @@ -18,7 +18,16 @@ void Scintilla_RegisterClasses(HINSTANCE hInstance); #endif #endif -typedef long (*SciFnDirect)(long ptr, unsigned int iMessage, unsigned long wParam, long lParam); +// Here should be placed typedefs for uptr_t, an unsigned integer type large enough to +// hold a pointer and sptr_t, a signed integer large enough to hold a pointer. +// May need to be changed for 64 bit platforms. +#ifndef POINTER_TYPES +#define POINTER_TYPES +typedef unsigned long uptr_t; +typedef long sptr_t; +#endif + +typedef sptr_t (*SciFnDirect)(sptr_t ptr, unsigned int iMessage, uptr_t wParam, sptr_t lParam); //++Autogenerated -- start of section automatically generated from Scintilla.iface #define INVALID_POSITION -1 @@ -507,8 +516,8 @@ struct SCNotification { int linesAdded; // SCN_MODIFIED #ifdef MACRO_SUPPORT int message; // SCN_MACRORECORD - int wParam; // SCN_MACRORECORD - int lParam; // SCN_MACRORECORD + uptr_t wParam; // SCN_MACRORECORD + sptr_t lParam; // SCN_MACRORECORD #endif int line; // SCN_MODIFIED int foldLevelNow; // SCN_MODIFIED |
