Rev 18086 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18086 | Rev 18108 | ||
---|---|---|---|
Line 2211... | Line 2211... | ||
2211 | int i, sheet, start=1, stop=MAX_SHEETS; |
2211 | int i, sheet, start=1, stop=MAX_SHEETS; |
2212 | c=getvar("wims_class"); if(c==NULL) return; |
2212 | c=getvar("wims_class"); if(c==NULL) return; |
2213 | p1=strstr(p, "module="); if(p1==NULL) return; |
2213 | p1=strstr(p, "module="); if(p1==NULL) return; |
2214 | p1=find_word_start(p1+strlen("module=")); |
2214 | p1=find_word_start(p1+strlen("module=")); |
2215 | p2=find_word_end(p1); *p2=0; |
2215 | p2=find_word_end(p1); *p2=0; |
- | 2216 | p4=strstr(p2+1, " sheet="); |
|
- | 2217 | if (p4!=NULL) {*p4=0;start=stop=evalue(p4+strlen(" sheet="));} |
|
2216 | p2=strstr(p2+1, "param="); if(p2==NULL) return; |
2218 | p2=strstr(p2+1, "param="); if(p2==NULL) return; |
2217 | p2=find_word_start(p2+strlen("param=")); |
2219 | p2=find_word_start(p2+strlen("param=")); |
2218 | p3=find_word_end(p2); |
2220 | p3=find_word_end(p2);*p3=0; |
2219 | p4=strstr(p3, " sheet="); *p3=0; |
- | |
2220 | if (p4!=NULL) start=stop=evalue(p4+strlen(" sheet=")); |
- | |
2221 | 2221 | ||
2222 | snprintf(fname,sizeof(fname),"%s/%s/sheets/.severity",class_base,c); |
2222 | snprintf(fname,sizeof(fname),"%s/%s/sheets/.severity",class_base,c); |
2223 | readfile(fname,fcontent,MAX_LINELEN); |
2223 | readfile(fname,fcontent,MAX_LINELEN); |
2224 | snprintf(nbuf,sizeof(nbuf),":%s\n%s\n",p1,p2); *p=0; |
2224 | snprintf(nbuf,sizeof(nbuf),":%s\n%s\n",p1,p2); *p=0; |
2225 | for (sheet=start; sheet <= stop; ++sheet){ |
2225 | for (sheet=start; sheet <= stop; ++sheet){ |