filter.c
上传用户:minyiyu
上传日期:2018-12-24
资源大小:864k
文件大小:4k
- #if defined( LINUX )
- #include "innbbsconf.h"
- #include <varargs.h>
- #else
- #include <varargs.h>
- #include "innbbsconf.h"
- #endif
- #include "bbslib.h"
- /*
- # filter.conf
- #node in out
- mynode:b2g:g2b
- */
- char *big2gb(), *gb2big(), *gb2hz(), *hz2gb(), *big2hz(), *hz2big();
- char *big2jis(), *jis2big();
- int big2gb_init(), gb2big_init(), gb2hz_init();
- int hz2gb_init(), big2hz_init(), hz2big_init();
- int big2jis_init(), jis2big_init();
- typedef struct Filternode_t {
- char *name;
- char *(*cmd) ();
- int (*cmd_init) ();
- } filternode_t;
- static filternode_t FILTERS[] = {
- #ifdef BIG2GB
- {"big2gb", big2gb, big2gb_init},
- #endif
- #ifdef GB2BIG
- {"gb2big", gb2big, gb2big_init},
- #endif
- #ifdef GB2HZ
- {"gb2hz", gb2hz, gb2hz_init},
- #endif
- #ifdef HZ2GB
- {"hz2gb", hz2gb, hz2gb_init},
- #endif
- #if defined(GB2BIG) && defined(HZ2GB)
- {"hz2big", hz2big, hz2big_init},
- {"big2hz", big2hz, big2hz_init},
- #endif
- #ifdef BIG2JIS
- {"big2jis", big2jis, big2jis_init},
- #endif
- #ifdef JIS2BIG
- {"jis2big", jis2big, jis2big_init},
- #endif
- #ifdef GB2JIS
- {"gb2jis", gb2jis, gb2jis_init},
- #endif
- #ifdef JIS2GB
- {"jis2gb", jis2gb, jis2gb_init},
- #endif
- {"