Rev 8100 | Rev 8149 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8100 | Rev 8123 | ||
---|---|---|---|
Line 19... | Line 19... | ||
19 | * used to index modules for search engine. |
19 | * used to index modules for search engine. |
20 | */ |
20 | */ |
21 | 21 | ||
22 | #include "../wims.h" |
22 | #include "../wims.h" |
23 | #include "../Lib/libwims.h" |
23 | #include "../Lib/libwims.h" |
- | 24 | #include "translator_.h" |
|
- | 25 | #include "suffix.h" |
|
24 | 26 | ||
25 | #define MAX_LANGS MAX_LANGUAGES |
27 | #define MAX_LANGS MAX_LANGUAGES |
26 | #define MAX_MODULES 65536 |
28 | #define MAX_MODULES 65536 |
27 | char *moduledir= "public_html/modules"; |
29 | char *moduledir= "public_html/modules"; |
28 | char *sheetdir= "public_html/bases/sheet"; |
30 | char *sheetdir= "public_html/bases/sheet"; |
Line 267... | Line 269... | ||
267 | if(l<=0) return; else buf[l]=0; |
269 | if(l<=0) return; else buf[l]=0; |
268 | _getdef(buf,name,value); |
270 | _getdef(buf,name,value); |
269 | free(buf); |
271 | free(buf); |
270 | } |
272 | } |
271 | 273 | ||
272 |
|
274 | char *mdicbuf, *gdicbuf, *ddicbuf, *gentry, *mentry, *dentry; |
273 | 275 | ||
274 | char *mdicbuf, *gdicbuf, *ddicbuf; |
- | |
275 | char gentry[sizeof(entry)], mentry[sizeof(entry)], dentry[sizeof(entry)]; |
- | |
276 | int gentrycount, mentrycount, dentrycount; |
276 | int gentrycount, mentrycount, dentrycount; |
277 | 277 | ||
278 | /* Preparation of data */ |
278 | /* Preparation of data */ |
279 | void prep(void) |
279 | void prep(void) |
280 | { |
280 | { |
Line 863... | Line 863... | ||
863 | } |
863 | } |
864 | } |
864 | } |
865 | 865 | ||
866 | int main() |
866 | int main() |
867 | { |
867 | { |
- | 868 | gentry=xmalloc(entry_size); |
|
- | 869 | dentry=xmalloc(entry_size); |
|
- | 870 | mentry=xmalloc(entry_size); |
|
868 | prep(); |
871 | prep(); |
869 | if(modcnt>0) modules(); |
872 | if(modcnt>0) modules(); |
870 | clean(); |
873 | clean(); |
871 | sprep(); |
874 | sprep(); |
872 | if(modcnt>0) sheets(); |
875 | if(modcnt>0) sheets(); |