filter.d

来自「Object-Oriented Programming With ANSI-C这」· D 代码 · 共 32 行

D
32
字号
// new(Filter(), delegate)typedef void (* flagM) (void *, void *, char);typedef int (* nameM) (void *, const void *, const char *);typedef int (* fileM) (void *, const void *, const char *,													FILE *);typedef int (* lineM) (void *, const void *, const char *,													char *);typedef int (* wrapM) (void *, const void *, const char *);typedef int (* quitM) (void *, const void *);% Class  Filter: Object {	Object @ delegate;	flagM flag;				// process a flag	nameM name;				// process a filename argument	fileM file;				// process an opened file	lineM line;				// process a line buffer	wrapM wrap;				// done with a file	quitM quit;				// done with all files	const char * progname;	// argv[0]	char ** argv;			// current argument and byte	char * buf;				// dynamic line buffer	unsigned blen;			// current maximum length%	int mainLoop (_self, char ** argv);	const char * argval (_self);	const char * progname (const _self);	int doit (_self, const char * arg);%}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?