Changeset a2d3c2c in git


Ignore:
Timestamp:
2006-05-25T02:38:27Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.0, 1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
e59d43c
Parents:
d7d6864
Message:

get* proto changes

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@20 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • const_string.c

    r4389208 ra2d3c2c  
    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]);
  • const_string.h

    r4389208 ra2d3c2c  
    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);
  • opcode_spec.c

    r93e9226 ra2d3c2c  
    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]);
  • opcode_spec.h

    r4389208 ra2d3c2c  
    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);
  • xcache.c

    rd7d6864 ra2d3c2c  
    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.