pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2014-02-16
2014-02-16 21:03:46 by Martin Nilsson <nilsson@opera.com>
a21514029e93c52f6540cea23d5c3cc2b0e890c6 (
14
lines) (+
2
/-
12
)
[
Show
|
Annotate
]
Branch:
8.0
Move SPACECASE8 into whitespace.h
31:
#include "block_allocator.h" #include "pikecode.h" #include "opcodes.h"
+
#include "whitespace.h"
#include <ctype.h> #include <errno.h>
1527:
if(bshift == shift) sb.known_shift = bshift; }
-
#define SPACECASE8 \
-
case ' ':case '\t':case '\r':case '\n':case '\v':case '\f': \
-
case 0x85:case 0xa0:
-
#include "whitespace.h"
+
switch (shift) { #define NORMALISE_TIGHT_LOOP(TYPE,CASE) \
1595:
case 1: NORMALISE_TIGHT_LOOP (p_wchar1,SPACECASE16); break; case 2: NORMALISE_TIGHT_LOOP (p_wchar2,SPACECASE16); break; #undef NORMALISE_TIGHT_LOOP
-
#undef SPACECASE8
-
#undef SPACECASE16
+
} if (wstemp) free(wstemp);
1620:
ptrdiff_t start = 0, end = s->len; int chr; switch (s->size_shift) {
-
#define SPACECASE8 \
-
case ' ':case '\t':case '\r':case '\n':case '\v':case '\f': \
-
case 0x85:case 0xa0:
-
#include "whitespace.h"
+
#define DO_IT(TYPE,CASE) \ { \
1648:
case 1: DO_IT (p_wchar1,SPACECASE16); break; case 2: DO_IT (p_wchar2,SPACECASE16); break; #undef DO_IT
-
#undef SPACECASE8
-
#undef SPACECASE16
+
} RETURN string_slice (s, start, end + 1 - start); }