aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-07-13 11:38:45 +1000
committerNeil <nyamatongwe@gmail.com>2017-07-13 11:38:45 +1000
commit6c72bb1aba1b8b0cea4bd5360f94847316166a92 (patch)
treeabf75404bbcbdd0821e3801ea37e00e5882ac12b
parentd7958f2d8991ddbeb690dc057d6ae6c427d10289 (diff)
downloadscintilla-mirror-6c72bb1aba1b8b0cea4bd5360f94847316166a92.tar.gz
Backport: Update typedefs used for lexing.
Backport of changeset 6344:59732c65082d.
-rw-r--r--include/Sci_Position.h6
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;