Changeset 790 for proto/JSON


Ignore:
Timestamp:
Dec 7, 2010, 7:04:04 PM (8 years ago)
Author:
ksherdy
Message:

Avoid g++ keywords true and false as struct member names.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/JSON/byteclass.py

    r735 r790  
    66#
    77
    8 class u8_streams ():
     8class u8 ():
    99        unibyte = 0
    1010        prefix = 0
     
    3333        error = 0
    3434
    35 class lexical_streams ():       
     35class Lex ():   
    3636        #Object
    3737        LCurlyBrace = 0
     
    4545       
    4646        #Number
     47        Number = 0
    4748        Minus = 0
    4849        Zero = 0
     
    6263#       t = 0
    6364        u = 0
     65        Escape = 0
    6466        HexDigit = 0
    6567        NotUnescaped = 0       
     
    6769        WS = 0
    6870       
    69         true = 0
     71        True = 0
    7072        t = 0
    7173        r = 0
     
    7375        e = 0
    7476       
    75         false = 0
     77        False = 0
    7678        f = 0
    7779        a = 0
     
    8082#       e = 0
    8183       
    82         null = 0
     84        Null = 0
    8385        n = 0
    8486#       u = 0
     
    8688#       l = 0   
    8789
    88 class control_streams ():
     90class Ctrl ():
    8991        x00_x1F = 0
    9092        CR = 0
     
    9294        HT = 0
    9395        SP = 0 
    94 
     96       
    9597def classify_bytes(bit) :
    9698        u8 = u8_streams()
Note: See TracChangeset for help on using the changeset viewer.