Lines Matching defs:md

174     sc_msg_def * md = mdlookup(msg_type_); 
176 if ( !md )
177 md = add_msg_type(msg_type_);
179 return md->call_count;
184 sc_msg_def * md = mdlookup(msg_type_);
186 if ( !md )
187 md = add_msg_type(msg_type_);
189 return md->sev_call_count[severity_];
206 if ( !strcmp(msg_type_, item->md[i].msg_type) )
207 return item->md + i;
213 sc_actions sc_report_handler::execute(sc_msg_def* md, sc_severity severity_)
215 sc_actions actions = md->sev_actions[severity_]; // high prio
218 actions = md->actions;
230 if ( md->sev_call_count[severity_] < UINT_MAX )
231 md->sev_call_count[severity_]++;
232 if ( md->call_count < UINT_MAX )
233 md->call_count++;
237 if ( md->limit_mask & (1 << (severity_ + 1)) )
239 limit = md->sev_limit + severity_;
240 call_count = md->sev_call_count + severity_;
242 if ( !limit && (md->limit_mask & 1) )
244 limit = &md->limit;
245 call_count = &md->call_count;
271 sc_msg_def * md = mdlookup(msg_type_);
281 if ( !md )
282 md = add_msg_type(msg_type_);
284 sc_actions actions = execute(md, severity_);
285 sc_report rep(severity_, md, msg_, file_, line_, verbosity_);
299 sc_msg_def * md = mdlookup(msg_type_);
309 if ( !md )
310 md = add_msg_type(msg_type_);
312 sc_actions actions = execute(md, severity_);
313 sc_report rep(severity_, md, msg_, file_, line_);
345 items->md[i].call_count = 0;
346 items->md[i].sev_call_count[SC_INFO] = 0;
347 items->md[i].sev_call_count[SC_WARNING] = 0;
348 items->md[i].sev_call_count[SC_ERROR] = 0;
349 items->md[i].sev_call_count[SC_FATAL] = 0;
378 if ( items->md[i].msg_type == items->md[i].msg_type_data )
379 free(items->md[i].msg_type_data);
386 delete [] prev->md;
400 sc_msg_def * md = mdlookup(msg_type_);
403 if ( md )
404 return md;
412 items->md = new sc_msg_def[items->count];
414 if ( !items->md )
419 memset(items->md, 0, sizeof(sc_msg_def) * items->count);
423 items->md->msg_type_data = (char*) malloc(msg_type_len+1);
424 strcpy( items->md->msg_type_data, msg_type_ );
425 items->md->id = -1; // backward compatibility with 2.0+
429 delete items->md;
433 items->md->msg_type = items->md->msg_type_data;
437 return items->md;
458 sc_msg_def * md = mdlookup(msg_type_);
460 if ( !md )
461 md = add_msg_type(msg_type_);
463 sc_actions old = md->actions;
464 md->actions = actions_;
473 sc_msg_def * md = mdlookup(msg_type_);
475 if ( !md )
476 md = add_msg_type(msg_type_);
478 sc_actions old = md->sev_actions[severity_];
479 md->sev_actions[severity_] = actions_;
495 sc_msg_def * md = mdlookup(msg_type_);
497 if ( !md )
498 md = add_msg_type(msg_type_);
500 int old = md->limit_mask & 1 ? md->limit: UINT_MAX;
503 md->limit_mask &= ~1;
506 md->limit_mask |= 1;
507 md->limit = limit;
516 sc_msg_def * md = mdlookup(msg_type_);
518 if ( !md )
519 md = add_msg_type(msg_type_);
522 int old = md->limit_mask & mask ? md->sev_limit[severity_]: UINT_MAX;
525 md->limit_mask &= ~mask;
528 md->limit_mask |= mask;
529 md->sev_limit[severity_] = limit;
650 if ( id == item->md[i].id )
651 return item->md + i;