Rev 8161 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8161 | Rev 8195 | ||
---|---|---|---|
Line 102... | Line 102... | ||
102 | if(*p1==0) continue; |
102 | if(*p1==0) continue; |
103 | if(i>0) { |
103 | if(i>0) { |
104 | k=strcmp((char*)suf[i-1].original,p1); |
104 | k=strcmp((char*)suf[i-1].original,p1); |
105 | if(k>0) { |
105 | if(k>0) { |
106 | pp=strrchr(sdicname,'/'); if(pp==NULL) pp=sdicname; else pp++; |
106 | pp=strrchr(sdicname,'/'); if(pp==NULL) pp=sdicname; else pp++; |
107 |
|
107 | sym_error("unsorted_dictionary %s: %s > %s.\n", |
108 | pp,suf[i-1].original,p1); |
108 | pp,suf[i-1].original,p1); |
109 | } |
109 | } |
110 | if(k==0) { |
110 | if(k==0) { |
111 | pp=strrchr(sdicname,'/'); if(pp==NULL) pp=sdicname; else pp++; |
111 | pp=strrchr(sdicname,'/'); if(pp==NULL) pp=sdicname; else pp++; |
112 |
|
112 | sym_error("duplication_in_dictionary %s: %s.\n",pp,p1); |
113 | } |
113 | } |
114 | } |
114 | } |
115 | suf[i].original=(unsigned char*)p1; suf[i].olen=l=strlen(p1); |
115 | suf[i].original=(unsigned char*)p1; suf[i].olen=l=strlen(p1); |
116 | if(l<sufminlen) sufminlen=l; |
116 | if(l<sufminlen) sufminlen=l; |
117 | suf[i].replace=(unsigned char*)pp; i++; |
117 | suf[i].replace=(unsigned char*)pp; i++; |