📄 utils.h
字号:
/* $Id: utils.h,v 1.11 2002/11/28 23:22:29 yooden Exp $ */#ifndef NEDIT_UTILS_H_INCLUDED#define NEDIT_UTILS_H_INCLUDED#include <sys/utsname.h>#ifdef VMS#include "vmsparam.h"#else#include <sys/param.h>#endif /*VMS*/extern const char *GetCurrentDir(void);extern const char *GetHomeDir(void);extern char *PrependHome(const char *filename, char *buf, int buflen);const char *GetUserName(void);const char *GetNameOfHost(void);extern int Max(int i1, int i2);extern int Min(int i1, int i2);extern int Min3(int i1, int i2, int i3);extern int Max3(int i1, int i2, int i3);const char* GetRCFileName(int type);/* N_FILE_TYPES must be the last entry!! This saves us from counting. */enum {NEDIT_RC, AUTOLOAD_NM, NEDIT_HISTORY, N_FILE_TYPES};/* If anyone knows where to get this from system include files (in a machine independent way), please change this (L_cuserid is apparently not ANSI) */#define MAXUSERNAMELEN 32/* Ditto for the maximum length for a node name. SYS_NMLN is not available on most systems, and I don't know what the portable alternative is. */#ifdef SYS_NMLN#define MAXNODENAMELEN SYS_NMLN#else#define MAXNODENAMELEN (MAXPATHLEN+2)#endif#endif /* NEDIT_UTILS_H_INCLUDED */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -