aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPEditorTokens.l
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-10 00:12:10 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-10 00:12:10 +0000
commit602633c84982f4e8061cde8a3cb09ada6c4d11bf (patch)
tree2e8745f819c54750e23ab3484ec647407ede2362 /Source/SPEditorTokens.l
parenta252c9efe5f22cbdc8dd8343c7e2a6c631add785 (diff)
downloadsequelpro-602633c84982f4e8061cde8a3cb09ada6c4d11bf.tar.gz
sequelpro-602633c84982f4e8061cde8a3cb09ada6c4d11bf.tar.bz2
sequelpro-602633c84982f4e8061cde8a3cb09ada6c4d11bf.zip
• made lexer 64bit compatible
- 'int' has to be replaced by 'size_t' • F5 completion - if inside of backticks after completion move caret one char rightwards to go out of the backticks
Diffstat (limited to 'Source/SPEditorTokens.l')
-rw-r--r--Source/SPEditorTokens.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPEditorTokens.l b/Source/SPEditorTokens.l
index 3da0ce55..9d9cf50b 100644
--- a/Source/SPEditorTokens.l
+++ b/Source/SPEditorTokens.l
@@ -37,8 +37,8 @@
*/
#import "SPEditorTokens.h"
-int utf8strlen(const char * _s);
-int yyuoffset, yyuleng;
+size_t utf8strlen(const char * _s);
+size_t yyuoffset, yyuleng;
#define YY_NO_UNPUT
@@ -112,7 +112,7 @@ keywords (X(OR|509|A)|S(MALLINT|SL|H(OW({s}(E(NGINE(S)?|RRORS)|M(ASTER|UTEX)|BIN
#define ONEMASK ((size_t)(-1) / 0xFF)
// adapted from http://www.daemonology.net/blog/2008-06-05-faster-utf8-strlen.html
-int utf8strlen(const char * _s)
+size_t utf8strlen(const char * _s)
{
const char * s;
size_t count = 0;