Changeset 20


Ignore:
Timestamp:
2006-05-25T04:38:27+02:00 (8 years ago)
Author:
moo
Message:

get* proto changes

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/const_string.c

    r1 r20  
    2525}; 
    2626 
    27 int xc_get_op_type_count() 
     27zend_uchar xc_get_op_type_count() 
    2828{ 
    2929    return sizeof(op_type_names) / sizeof(op_type_names[0]); 
     
    7171}; 
    7272 
    73 int xc_get_data_type_count() 
     73zend_uchar xc_get_data_type_count() 
    7474{ 
    7575    return sizeof(data_type_names) / sizeof(data_type_names[0]); 
     
    102102#endif 
    103103 
    104 int xc_get_opcode_count() 
     104zend_uchar xc_get_opcode_count() 
    105105{ 
    106106    return sizeof(xc_opcode_names) / sizeof(xc_opcode_names[0]); 
  • trunk/const_string.h

    r1 r20  
    11#include "php.h" 
    22 
    3 int xc_get_op_type_count(); 
     3zend_uchar xc_get_op_type_count(); 
    44const char *xc_get_op_type(zend_uchar op_type); 
    5 int xc_get_data_type_count(); 
     5zend_uchar xc_get_data_type_count(); 
    66const char *xc_get_data_type(zend_uchar data_type); 
    7 int xc_get_opcode_count(); 
     7zend_uchar xc_get_opcode_count(); 
    88const char *xc_get_opcode(zend_uchar opcode); 
  • trunk/opcode_spec.c

    r8 r20  
    1313#include "opcode_spec_def.h" 
    1414 
    15 int xc_get_opcode_spec_count() 
     15zend_uchar xc_get_opcode_spec_count() 
    1616{ 
    1717    return sizeof(xc_opcode_spec) / sizeof(xc_opcode_spec[0]); 
     
    3131static const char *xc_op_spec[] = { OPSPECS(OPSPECS_DEF_NAME) }; 
    3232 
    33 int xc_get_op_spec_count() 
     33zend_uchar xc_get_op_spec_count() 
    3434{ 
    3535    return sizeof(xc_op_spec) / sizeof(xc_op_spec[0]); 
  • trunk/opcode_spec.h

    r1 r20  
    3939 
    4040const xc_opcode_spec_t *xc_get_opcode_spec(zend_uchar opcode); 
    41 int xc_get_opcode_spec_count(); 
    42 int xc_get_op_spec_count(); 
     41zend_uchar xc_get_opcode_spec_count(); 
     42zend_uchar xc_get_op_spec_count(); 
    4343const char *xc_get_op_spec(zend_uchar spec); 
  • trunk/xcache.c

    r19 r20  
    830830    typedef struct { 
    831831        const char *prefix; 
    832         int (*getsize)(); 
     832        zend_uchar (*getsize)(); 
    833833        const char *(*get)(zend_uchar i); 
    834834    } xc_meminfo_t; 
     
    841841    }; 
    842842    xc_meminfo_t* p; 
    843     int i; 
     843    zend_uchar i, count; 
    844844    char const_name[96]; 
    845845    int const_name_len; 
     
    847847 
    848848    for (p = nameinfos; p->getsize; p ++) { 
    849         for (i = p->getsize() - 1; i >= 0; i --) { 
     849        count = p->getsize(); 
     850        for (i = 0; i < count; i ++) { 
    850851            const char *name = p->get(i); 
    851852            if (!name) continue; 
Note: See TracChangeset for help on using the changeset viewer.