Lines Matching defs:Rules
24 static contract Rules[] = {
88 const char *current_section_name = Rules[0].section;
98 for (int j = 0; Rules[j].section; j++) {
99 if (Strstr(i.item, Rules[j].section)) {
102 current_section = Getattr(result, Rules[j].section);
106 current_section_name = Rules[j].section;
156 for (j = 0; Rules[j].section; j++) {
157 String *t = Getattr(contracts, Rules[j].section);
158 String *s = Getattr(icontracts, Rules[j].section);
162 Printf(t, ") %s (%s)", Rules[j].combiner, s);
163 String *m = Getattr(messages, Rules[j].section);
164 Printf(m, " %s [%s from %s]", Rules[j].combiner, Getattr(imessages, Rules[j].section), Getattr(b, "name"));
166 Setattr(contracts, Rules[j].section, NewString(s));
167 Setattr(messages, Rules[j].section, NewStringf("[%s from %s]", Getattr(imessages, Rules[j].section), Getattr(b, "name")));