pike.git / src / pike_types.cmod

version» Context lines:

pike.git/src/pike_types.cmod:9023:    }    free_type(t);    }    return 0;   }         int match_types(struct pike_type *a, struct pike_type *b)   {    struct pike_type *res; - #ifdef PIKE_DEBUG + #ifdef PIKE_EXTRA_DEBUG    struct remap_state remap;    struct mapping *markers;    struct pike_type *tmp, *tmp2;       memset(&remap, 0, sizeof(remap));       tmp = low_type_binop(PT_BINOP_AND, a, b, &remap, 0, 0, 0);       markers = allocate_mapping(10);    tmp2 = remap_markers(tmp, markers, NULL, PT_FLAG_REMAP_EVAL_MARKERS);   #endif       clear_markers();    res = low_match_types(a, b, 0);    free_type(res);    - #ifdef PIKE_DEBUG + #ifdef PIKE_EXTRA_DEBUG    if ((!!res) != (!!tmp2)) {    fprintf(stderr, "match_types mismatch!\n"    "a: ");    simple_describe_type(a);    fprintf(stderr, "\nb: ");    simple_describe_type(b);    fprintf(stderr, "\nres: ");    simple_describe_type(res);    fprintf(stderr, "\ntmp: ");    simple_describe_type(tmp);
pike.git/src/pike_types.cmod:9069:   #endif       return !!res;   }      int pike_types_le(struct pike_type *a, struct pike_type *b,    enum pt_cmp_flags aflags, enum pt_cmp_flags bflags)   {    struct remap_state remap;    struct pike_type *tmp, *tmp2 = NULL; - #ifdef PIKE_DEBUG + #ifdef PIKE_EXTRA_DEBUG    int res;    struct pike_type **save_type_stackp = Pike_compiler->type_stackp;    struct pike_type ***save_mark_stackp = Pike_compiler->pike_type_mark_stackp;   #endif       memset(&remap, 0, sizeof(remap));       tmp = low_type_binop(PT_BINOP_MINUS, a, b, &remap, aflags, bflags, 0);       if (tmp) {    struct mapping *markers = allocate_mapping(10);    tmp2 = remap_markers(tmp, markers, NULL, PT_FLAG_REMAP_EVAL_MARKERS);    free_mapping(markers);    }    - #ifdef PIKE_DEBUG + #ifdef PIKE_EXTRA_DEBUG    clear_markers();    res = low_pike_types_le(a, b, 0, 0);       if ((save_type_stackp != Pike_compiler->type_stackp) ||    (save_mark_stackp != Pike_compiler->pike_type_mark_stackp) ||    (res != !tmp2)) {    struct pike_type *tmp3;       fprintf(stderr, "pike_types_le mismatch!\n"    "a: ");