Quick Search:

Mode

Context

Displaying 0 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.96
 
1.97
 
MAIN:plunky:20121031115454
 
token.c
     
 !
_>47 -#include <ctype.h>
     
 !
<>85 -char spechr[256] = {
  84+/* some common special combos for init */
  85+#define C_NL    (C_SPEC|C_WSNL)
  86+#define C_DX    (C_SPEC|C_ID|C_DIGIT|C_HEX)
  87+#define C_I     (C_SPEC|C_ID|C_ID0)
  88+#define C_IP    (C_SPEC|C_ID|C_ID0|C_EP)
  89+#define C_IX    (C_SPEC|C_ID|C_ID0|C_HEX)
  90+#define C_IXE   (C_SPEC|C_ID|C_ID0|C_HEX|C_EP)
  91+
  92+usch spechr[256] = {
     
 !
<>87 -        0,      C_WSNLC_SPEC|C_WSNL,  0,
 88 -        0,      C_WSNL0,      0,
  94+        0,      C_WSNLC_NL,   0,      0,      C_WSNL0,      0,
     
 !
<>94 -        C_I,    C_I,    C_I,    C_I,    C_I,    C_I,    C_I,    C_I,
 95 -        C_I,    C_I,    0,      0,      C_2,    C_2,    C_2,    C_SPEC,
  100+        C_DX,   C_DX,   C_DX,   C_DX,   C_DX,   C_DX,   C_DX,   C_DX,
  101+        C_DX,   C_DX,   0,      0,      C_2,    C_2,    C_2,    C_SPEC,
     
 !
<>97 -        0,      C_I,    C_I,    C_I,    C_I,    C_I|C_EP, C_I,  C_I,
  103+        0,      C_IX,   C_IX,   C_IX,   C_IX,   C_IXE,  C_IX,   C_I,
     
 !
<>99 -        C_I|C_EP, C_I,  C_I,    C_I,    C_I,    C_I,    C_I,    C_I,
  105+        C_IP,   C_I,    C_I,    C_I,    C_I,    C_I,    C_I,    C_I,
     
 !
<>102 -        0,      C_I,    C_I,    C_I,    C_I,    C_I|C_EP, C_I,  C_I,
  108+        0,      C_IX,   C_IX,   C_IX,   C_IX,   C_IXE,  C_IX,   C_I,
     
 !
<>104 -        C_I|C_EP, C_I,  C_I,    C_I,    C_I,    C_I,    C_I,    C_I,
  110+        C_IP,   C_I,    C_I,    C_I,    C_I,    C_I,    C_I,    C_I,
     
 !
<>106 -
     
 !
<>526 -                if (isdigit(ch)) {
  531+                if ((spechr[ch] & C_DIGIT)) {
     
 !
<>582 -                        if (isalpha(ch) || isdigit(ch) || ch == '_') {
  587+                        if ((spechr[ch] & C_ID)) {
     
 !
<>611 -        if (ch < 128 && spechr[ch] & C_2)
  616+        if (ch < 128 && (spechr[ch] & C_2))
     
 !
<>616 -#define C2(a,b,c) case a: if (c2 == b) return c; break
     
 !
<>618 -        C2('=', '=', EQ);
 619 -        C2('!', '=', NE);
 620 -        C2('|', '|', OROR);
 621 -        C2('&', '&', ANDAND);
  622+        case '=':
  623+                if (c2 == '=') return EQ;
  624+                break;
  625+        case '!':
  626+                if (c2 == '=') return NE;
  627+                break;
  628+        case '|':
  629+                if (c2 == '|') return OROR;
  630+                break;
  631+        case '&':
  632+                if (c2 == '&') return ANDAND;
  633+                break;
     
 !
<>916 -        while (isxdigit(c)) {
  928+        while ((spechr[c] & C_HEX)) {
     
 !
<>956 -                        while (isxdigit(c = *p)) {
  968+                        while ((spechr[c = *p] & C_HEX)) {
     
 !
<_964 -                        while (isdigit(c = *p)) {
  976+                        while ((spechr[c = *p] & C_DIGIT)) {
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-08-23 05:36 +0200