diff options
author | Neil <nyamatongwe@gmail.com> | 2017-07-13 11:38:45 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-07-13 11:38:45 +1000 |
commit | 3cd8489f5082c7b95fe5be45caf7fbdfc191f056 (patch) | |
tree | f260242c3960845f31af6074276d18165cf6cabe | |
parent | 964062879525802a8a8c159cfb4196025c5622e3 (diff) | |
download | scintilla-mirror-3cd8489f5082c7b95fe5be45caf7fbdfc191f056.tar.gz |
Update typedefs used for lexing.
-rw-r--r-- | include/Sci_Position.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/Sci_Position.h b/include/Sci_Position.h index a83e2864f..1360b2dce 100644 --- a/include/Sci_Position.h +++ b/include/Sci_Position.h @@ -9,11 +9,13 @@ #ifndef SCI_POSITION_H #define SCI_POSITION_H +#include <stddef.h> + // Basic signed type used throughout interface -typedef int Sci_Position; +typedef ptrdiff_t Sci_Position; // Unsigned variant used for ILexer::Lex and ILexer::Fold -typedef unsigned int Sci_PositionU; +typedef size_t Sci_PositionU; // For Sci_CharacterRange which is defined as long to be compatible with Win32 CHARRANGE typedef long Sci_PositionCR; |