Changeset 1133 in svn for trunk/xcache.c


Ignore:
Timestamp:
2012-08-09T03:45:28Z (3 years ago)
Author:
Xuefer
Message:

refactor: code clean up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xcache.c

    r1131 r1133  
    6161        zend_uchar (*getsize)();
    6262        const char *(*get)(zend_uchar i);
    63     } xc_meminfo_t;
    64     xc_meminfo_t nameinfos[] = {
     63    } xc_nameinfo_t;
     64    xc_nameinfo_t nameinfos[] = {
    6565        { "",        xc_get_op_type_count,   xc_get_op_type   },
    6666        { "",        xc_get_data_type_count, xc_get_data_type },
     
    6969        { NULL, NULL, NULL }
    7070    };
    71     xc_meminfo_t* p;
    72     zend_uchar i, count;
    73     char const_name[96];
    74     int const_name_len;
    7571    int undefdone = 0;
    7672
    7773    for (p = nameinfos; p->getsize; p ++) {
     74        zend_uchar i, count;
     75        char const_name[96];
     76        int const_name_len;
     77        xc_nameinfo_t *p;
     78
    7879        count = p->getsize();
    7980        for (i = 0; i < count; i ++) {
Note: See TracChangeset for help on using the changeset viewer.