diff options
author | Mike Pall <mike> | 2012-08-25 23:02:29 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2012-08-25 23:02:29 +0200 |
commit | 4c882fe71406a923f07c8e9a0b9189036e0ba386 (patch) | |
tree | 22aa3995b5bdc2fce05ba17488799e67abc635ba /src/lj_char.h | |
parent | 653facd0d5c1a4f7eae43eefbf8148f57e28e606 (diff) | |
download | luajit-4c882fe71406a923f07c8e9a0b9189036e0ba386.tar.gz luajit-4c882fe71406a923f07c8e9a0b9189036e0ba386.tar.bz2 luajit-4c882fe71406a923f07c8e9a0b9189036e0ba386.zip |
Replace strtod() with builtin string to number conversion.
Diffstat (limited to 'src/lj_char.h')
-rw-r--r-- | src/lj_char.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_char.h b/src/lj_char.h index 7b7c1322..c3c86d34 100644 --- a/src/lj_char.h +++ b/src/lj_char.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #define LJ_CHAR_GRAPH (LJ_CHAR_ALNUM|LJ_CHAR_PUNCT) | 21 | #define LJ_CHAR_GRAPH (LJ_CHAR_ALNUM|LJ_CHAR_PUNCT) |
22 | 22 | ||
23 | /* Only pass -1 or 0..255 to these macros. Never pass a signed char! */ | 23 | /* Only pass -1 or 0..255 to these macros. Never pass a signed char! */ |
24 | #define lj_char_isa(c, t) (lj_char_bits[(c)+1] & t) | 24 | #define lj_char_isa(c, t) ((lj_char_bits+1)[(c)] & t) |
25 | #define lj_char_iscntrl(c) lj_char_isa((c), LJ_CHAR_CNTRL) | 25 | #define lj_char_iscntrl(c) lj_char_isa((c), LJ_CHAR_CNTRL) |
26 | #define lj_char_isspace(c) lj_char_isa((c), LJ_CHAR_SPACE) | 26 | #define lj_char_isspace(c) lj_char_isa((c), LJ_CHAR_SPACE) |
27 | #define lj_char_ispunct(c) lj_char_isa((c), LJ_CHAR_PUNCT) | 27 | #define lj_char_ispunct(c) lj_char_isa((c), LJ_CHAR_PUNCT) |