mcl.h
来自「Unix下的MUD客户端程序」· C头文件 代码 · 共 73 行
H
73 行
#ifndef MCL_H_#define MCL_H_#include "defs.h"#include <stdlib.h>#include <sys/time.h>#include <sys/types.h>#include <string.h>#include <ctype.h>#include <string.h>#include <stdio.h>#include <errno.h>#include <assert.h>extern time_t current_time;// Define to 1) print all allocs to stderr// 2) put a magic marker before and after all memory allocated// #define MEMORY_DEBUG#ifdef MEMORY_DEBUGvoid * operator new (size_t size);void operator delete (void *ptr);#endifinline int max(int a, int b) { return a > b ? a : b;}inline int min(int a, int b) { return a < b ? a : b;}// Ought to split it up#include "Color.h"#include "List.h"#include "Selectable.h"#include "String.h"#include "MUD.h"#include "Config.h"#include "Buffer.h"#include "TTY.h"#include "config.h"#include "misc.h"#include "global.h"#include "EmbeddedInterpreter.h"#include "StaticBuffer.h"extern EmbeddedInterpreter *embed_interp;extern const char *szDefaultPrompt;extern bool mclFinished;extern struct GlobalStats { int tty_chars; int ctrl_chars; int bytes_written; int bytes_read; time_t starting_time; unsigned long comp_read; unsigned long uncomp_read; GlobalStats();} globalStats;#define CMDCHAR config->getOption(opt_commandcharacter)// Search for stuff there#define MCL_LOCAL_LIBRARY_PATH "/usr/local/lib/mcl"#define MCL_LIBRARY_PATH "/usr/lib/mcl"#define CLEAR_SCREEN "\ec\e[0;0m\e[H\e[J"#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?