/[ascend]/trunk/base/generic/system/block.c
ViewVC logotype

Diff of /trunk/base/generic/system/block.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1386 by johnpye, Mon Mar 5 07:22:21 2007 UTC revision 1387 by jpye, Sat Apr 7 14:43:31 2007 UTC
# Line 1051  LIST_DEBUG(var,var_variable) Line 1051  LIST_DEBUG(var,var_variable)
1051  LIST_DEBUG(rel,rel_relation)  LIST_DEBUG(rel,rel_relation)
1052    
1053  #ifdef CUT_DEBUG  #ifdef CUT_DEBUG
1054    /* if you need this to work with non-GCC, take a page out of the utilities/error.h book */
1055  # define MAYBE_WRITE_LIST(TYPE) system_##TYPE##_list_debug(sys)  # define MAYBE_WRITE_LIST(TYPE) system_##TYPE##_list_debug(sys)
1056  # define MAYBE_CONSOLE_DEBUG(MSG,...) CONSOLE_DEBUG(MSG,#ARGS)  # define MAYBE_CONSOLE_DEBUG(MSG,ARGS...) CONSOLE_DEBUG(MSG,##ARGS)
1057  #else  #else
1058  # define MAYBE_WRITE_LIST(TYPE)  # define MAYBE_WRITE_LIST(TYPE)
1059  # define MAYBE_CONSOLE_DEBUG(MSG,...)  # define MAYBE_CONSOLE_DEBUG(MSG,...)
# Line 1075  LIST_DEBUG(rel,rel_relation) Line 1076  LIST_DEBUG(rel,rel_relation)
1076       \       \
1077          asc_assert(filt); \          asc_assert(filt); \
1078       \       \
1079            MAYBE_CONSOLE_DEBUG("CUTTING " #TYPE " LIST (filter=0x%8x,mask=0x%8x)...",filt->matchvalue,filt->matchbits); \
1080          MAYBE_WRITE_LIST(TYPE); \          MAYBE_WRITE_LIST(TYPE); \
1081       \       \
1082          list = slv_get_solvers_##TYPE##_list(sys); \          list = slv_get_solvers_##TYPE##_list(sys); \
# Line 1105  LIST_DEBUG(rel,rel_relation) Line 1107  LIST_DEBUG(rel,rel_relation)
1107       \       \
1108          /* update the sindex for each after start */ \          /* update the sindex for each after start */ \
1109          *numgood = 0; \          *numgood = 0; \
1110            MAYBE_CONSOLE_DEBUG("numgood = %d",*numgood); \
1111          for(i=begin;i<len;++i){ \          for(i=begin;i<len;++i){ \
1112              name = TYPE##_make_name(sys,list[i]); \              name = TYPE##_make_name(sys,list[i]); \
1113              if(TYPE##_apply_filter(list[i],filt)){ \              if(TYPE##_apply_filter(list[i],filt)){ \
1114                  MAYBE_CONSOLE_DEBUG("%s: good",name); \                  MAYBE_CONSOLE_DEBUG("%s: good",name); \
1115                  (*numgood)++; \                  (*numgood)++; \
1116              }else{ \              }else{ \
1117                  MAYBE_CONSOLE_DEBUG("%s: bad",name); \                  MAYBE_CONSOLE_DEBUG("'%s' will cut to back (flags=0x%8x)",name,var_flags(list[i])); \
1118              } \              } \
1119              ASC_FREE(name); \              ASC_FREE(name); \
1120              TYPE##_set_sindex(list[i],i); \              TYPE##_set_sindex(list[i],i); \

Legend:
Removed from v.1386  
changed lines
  Added in v.1387

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22