Changeset 11 for trunk/coverage.c


Ignore:
Timestamp:
2006-05-24T09:52:48+02:00 (9 years ago)
Author:
moo
Message:

make it build on windows vc compiler

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/coverage.c

    r1 r11  
    55#   include <sys/file.h>
    66#endif
     7#include <sys/types.h>
     8#include <sys/stat.h>
     9#include <fcntl.h>
     10
    711#include "stack.h"
    812#include "xcache_globals.h"
     
    305309    zend_uint size;
    306310    coverage_t cov;
    307     int i;
     311    zend_uint i;
    308312
    309313    if (op_array->type != ZEND_USER_FUNCTION) {
     
    312316
    313317    size = xc_coverage_get_op_array_size_no_tail(op_array);
    314     cov = xc_coverage_get(op_array->filename);
    315     for (i = 0; i < size; i++) {
     318    cov = xc_coverage_get(op_array->filename TSRMLS_CC);
     319    for (i = 0; i < size; i ++) {
    316320        switch (op_array->opcodes[i].opcode) {
    317321            case ZEND_EXT_STMT:
     
    351355void xc_coverage_handle_ext_stmt(zend_op_array *op_array, zend_uchar op) /* {{{ */
    352356{
     357    TSRMLS_FETCH();
     358
    353359    if (XG(coveragedumper) && XG(coverages)) {
    354         TSRMLS_FETCH();
    355360        int size = xc_coverage_get_op_array_size_no_tail(op_array);
    356361        int oplineno = (*EG(opline_ptr)) - op_array->opcodes;
    357362        if (oplineno < size) {
    358             xc_coverage_add_hits(xc_coverage_get(op_array->filename), (*EG(opline_ptr))->lineno, 1 TSRMLS_CC);
     363            xc_coverage_add_hits(xc_coverage_get(op_array->filename TSRMLS_CC), (*EG(opline_ptr))->lineno, 1 TSRMLS_CC);
    359364        }
    360365    }
Note: See TracChangeset for help on using the changeset viewer.