📄 mcl.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -