Ignore:
Timestamp:
Jan 20, 2010, 6:48:52 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #2775 "Saving some memory/storage" -- committed for 1.80

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/JSON_parser.c

    r9548 r9973  
    155155};
    156156
    157 static int ascii_class[128] = {
     157static const int ascii_class[128] = {
    158158/*
    159159    This array maps the 128 ASCII characters into character classes.
     
    244244
    245245
    246 static int state_transition_table[NR_STATES][NR_CLASSES] = {
     246static const int state_transition_table[NR_STATES][NR_CLASSES] = {
    247247/*
    248248    The state transition table takes the current state and the current symbol,
     
    524524#define IS_LOW_SURROGATE(uc)  (((uc) & 0xFC00) == 0xDC00)
    525525#define DECODE_SURROGATE_PAIR(hi,lo) ((((hi) & 0x3FF) << 10) + ((lo) & 0x3FF) + 0x10000)
    526 static unsigned char utf8_lead_bits[4] = { 0x00, 0xC0, 0xE0, 0xF0 };
     526static const unsigned char utf8_lead_bits[4] = { 0x00, 0xC0, 0xE0, 0xF0 };
    527527
    528528static int decode_unicode_char(JSON_parser jc)
Note: See TracChangeset for help on using the changeset viewer.