⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.h

📁 功能强大的文本编辑器
💻 H
📖 第 1 页 / 共 2 页
字号:
#define WITH_WINCH      3
#endif
#define WITH_USEC_CLOCK 1
#define QSORT_FUNC_ANSI 0
#define CLEAR_WITH_BLANKS 0

#else
#define TEXT_OP_SYSTEM "unix (unknown)"
#define WITH_WINCH      0
#define WITH_USEC_CLOCK 0
#define QSORT_FUNC_ANSI 1
#define CLEAR_WITH_BLANKS 1
#endif


#define EOLA            0x0a      /* <lf> */
#define EOLN_INIT       0x0a      /* <lf> */
#define HELP_COMMAND    "man "
#define CONSOLE_NAME    "/dev/tty"
#define PATH_SEPARATOR  ':'
#define FILE_SEPARATOR  "/"
#define HOME_DIR        (const char *) getenv("HOME")
#define TEMP_DIR        "/tmp"
#define NULL_DEVICE     "/dev/null"
#endif


/* variable Endekennung */
#define VAR_EOLN  1    /* 0 = konst. */
                       /* 1 = var.   */

#if VAR_EOLN

#define EOLN fc->eoln

#else

#define EOLN EOLN_INIT

#endif



/* TEST !! Abschalten Binary-Mode, zwecks testen der unix/os9-version */

#define BINARY_MODE 1      /* <==    1 : Standard Mode MS/DOS */
                           /*        0 : Test unix + os/9     */

#if BINARY_MODE

#define READ_FORMAT  "rb"
#define WRITE_FORMAT "wb"

#else

#define READ_FORMAT  "r"
#define WRITE_FORMAT "w"

#undef  EOLN
#define EOLN EOLA

#endif


/* perform_test_eol() is a function/macro ? */
#if VAR_EOLN
#define TEST_EOL_MACRO 0      /* always 0 !!              */
#else
#define TEST_EOL_MACRO 1      /* <==    1 : optimal speed */
                              /*        0 : shorter code  */
#endif

/* some useful defines */
#define EOLN_LEN_1 (EOLN <= 0xff)
#define EOLN_LEN_2 (EOLN >  0xff)

#define EOLN_LOW   ((char)(EOLN &  0xff))
#define EOLN_HIGH  ((char)(EOLN >> 8))

#define perform_test_eol1(a,b) (*a == EOLN_LOW)

#if TEST_EOL_MACRO
#if (EOLN_LEN_1)

#define perform_test_eol(a,b) (*a == EOLN)

#else

#define perform_test_eol(a,b) ((*(a+b) == (EOLN_HIGH)) && (*(a+b+1) == (EOLN_LOW)))

#endif
#endif

/* -FF-  */

/* NEU !! Das help_command (ALT F1) wird wieder als macro ausgefuehrt !! */
#define HELP_COMMAND_DIRECT 0    /* 0: <ALT F1> als macro */
                                 /* 1: <ALT F1> direct    */

#if !(HELP_COMMAND_DIRECT)
#undef HELP_COMMAND
#endif


/* NEU !! Insert Key is handled directly (instead of a macro) !! */
#define INSERT_KEY_DIRECT 1    /* 0: <INSERT> als macro */
                               /* 1: <INSERT> direct (toggle insert/exchange) */


/* the user home directory and the temp directory */
/* are handled equally since 10.09.93 !!          */

#undef  HOME_DIR
#undef  TEMP_DIR

#define HOME_DIR        get_home_dir()
#define TEMP_DIR        get_home_dir()

/* -FF-  */

/*---------------------------------*/
/* definition of screen size       */
/*---------------------------------*/

#define INIT_COLUMNS   80

#if (ACT_SERVER == SERVER_VGA)
#define INIT_ROWS      25
#else
#define INIT_ROWS      24
#endif

#if (ACT_OP_SYSTEM == MS_DOS)
#define LIMIT_ROWS     60   /* fuer MS_DOS muss das produkt < 32 k sein ! */
#define LIMIT_COLUMNS 100   /* (limit in DGROUP !) */
#else
#define LIMIT_ROWS    127
#define LIMIT_COLUMNS 255
#endif

/*---------------------------------*/
/* definition of keyboard driver   */
/*---------------------------------*/

#define ESC_WAITTIME 100      /* wait for 2. char after <esc>, LSB = 1 msec */

#if (UNIX)
#define TIMER_TICK  1000                  /* timer clock rate, LSB = 1 msec */
#endif

#if (ACT_OP_SYSTEM == OS_9)
/* #define TIMER_TICK (1000/CLOCKS_PER_SEC) */  /* timer clock rate, LSB = 1 msec */
/* TIMER_TICK not used any more, inaccurate, and risc of "divide by zero" ! */
#endif


/*---------------------------------*/
/* definition of memory management */
/*---------------------------------*/

#define BUF_256        256     /* help buffer for edit functions */
#define MACRO_SIZE    4096     /* max. buffer for each macro */
#define INIT_FILESIZE 1000L    /* bei Bedarf wird der Buffer vergroessert */
#define FILE_RESERVE  1000L    /* for reallocation of file buffer */

#define BUFF_DYNAMIC   1      /* malloc () / free ()   <  64 kB   */
#define BUFF_HUGE      2      /* halloc () / hfree ()  >= 64 kB   */

#if (ACT_OP_SYSTEM == MS_DOS)
#define BUFF_MALLOC BUFF_HUGE

#if (BUFF_MALLOC == BUFF_DYNAMIC)
#define FA_HU far
#endif

#if (BUFF_MALLOC == BUFF_HUGE)
#define FA_HU huge
#endif
#else

#define BUFF_MALLOC BUFF_DYNAMIC
#define FA_HU

#endif

/* some char buffer [BUF_256] should be static */
#if 0
#define STATIC          /* old status */
#else
#define STATIC static   /* new status (28.08.93) */
#endif


/* demo version for a limited time interval */
#if (ACT_OP_SYSTEM == MS_DOS)
#define DEMO_VERSION 0    /* <== 0 = regular version */
                          /*     1 = shareware version */
                          /*     2 = demo version, strictly time limited */
#else
#define DEMO_VERSION 0
#endif


/* Window Kill_Window */
#define WINDOW_COMMAND 1  /* <== 1 = mit  (wie AEDIT) */
                          /*     0 = ohne (alt)       */

/* Paragraph Fill / Justify */
#define PARAGR_COMMAND 1  /* <== 1 = mit  (wie AEDIT) */
                          /*     0 = ohne (alt)       */

/* Read Files with Wilcard-Filename */
#define WILD_NAMES     1  /* <== 1 = mit (z.B. "*.c") */
                          /*     0 = ohne (alt)       */

/* With Mouse Support (PC only !)*/
#if (ACT_OP_SYSTEM == MS_DOS)
#define WITH_MOUSE     1  /* <== 1 = mit Maus         */
                          /*     0 = ohne             */
#else
#define WITH_MOUSE     0
#endif

/* Translation from <cr> --> <cr><lf> */
#define C_R EOLN

/* tuning read_macro_file */
#if (ACT_OP_SYSTEM == MS_DOS)
#define MACRO_TUNING   0  /* <== 0 = small code */
#else
#define MACRO_TUNING   1  /* <== 1 = high speed */
#endif

/* Hex-Editor */
#define WITH_HEX_VIEW  1

/* Hex Find */
#define WITH_HEX_FIND  1

/* -FF-  */

/* Modification History */
/* 01.12.92 - file erzeugt */
/* 05.12.92 - ESC_WAITTIME, TIMER_TICK */
/* 19.12.92 - BUFF_HUGE */
/* 21.12.92 - EOL */
/* 09.01.93 - INIT_FILE_SIZE klein gemacht */
/* 20.04.93 - more filenames fuer MS_DOS */
/* 26.04.93 - HOME_DIR, TEMP_DIR (MS/DOS) mit getenv */
/* 04.06.93 - HOME_DIR, TEMP_DIR (MS/DOS) mit (const char *) getenv */
/* 27.07.93 - WITH_SEMI_GRAPHIK */
/* 28.07.93 - HELP_COMMAND wieder als macro */
/* 03.08.93 - BINARY_MODE 1 */
/* 25.08.93 - SGI_IRIX */
/* 28.08.93 - STATIC */
/* 10.09.93 - get_home_dir() */
/* 12.09.93 - DEMO_VERSION */
/* 16.09.93 - TEST_EOL_MACRO */
/* 30.09.93 - WINDOW_COMMAND */
/* 30.09.93 - TEST_EOLN */
/* 19.10.93 - handling of single <lf>s */
/* 02.11.93 - get_1_datafile(): read file with wildcards */
/* 04.11.93 - TEST_EOLN entfaellt */
/* 06.11.93 - WILD_NAMES */
/* 29.11.93 - config2.hh */
/* 01.12.93 - GRAFIK_OFF */
/* 06.12.93 - GRAFIK_OFF --> mon_outp.c */
/* 07.12.93 - define const (nix) */
/* 08.12.93 - ESC_WAITTIME 50 -> 200 */
/* 08.12.93 - WITH_MOUSE */
/* 07.01.94 - INSERT_KEY_DIRECT */
/* 09.05.94 - WITH_USEC_CLOCK (quick <esc> handling) */
/* 12.05.94 - MACRO_TUNING */
/* 17.05.94 - Unterscheidung UNIX-Varianten */
/* 19.05.94 - ESC_wait_time 200 -> 100 */
/* 19.05.94 - EOL --> EOLA  */
/* 21.05.94 - STATS_FILENAME */
/* 02.06.94 - WITH_WINCH */
/* 05.06.94 - INIT_ROWS 24 or 25 */
/* 07.06.94 - WITH_WINCH = 0, 1, 2 for different unix systems */
/* 04.07.94 - WITH_E_DELIMIT */
/* 14.07.94 - WITH_USEC_CLOCK = f (ACT_OP_SYSTEM) */
/* 21.07.94 - WITH_WINCH = 3 (set_window_size with ioctl) */
/* 21.09.94 - WITH_HEX_VIEW */
/* 27.09.94 - HP_UX: #define WITH_USEC_CLOCK 0 */
/* 30.09.94 - WITH_WINCH 4 for SCO_UNIX */
/* 22.01.95 - WITH_WINCH 5 for VGA */
/* 24.02.95 - QSORT_FUNC_ANSI */
/* 27.02.95 - linux: WITH_USEC_CLOCK 1 */
/* 19.10.95 - WITH_WINCH 6 (OS_9) */
/* 17.11.95 - UNIX_SVR4: WITH_SYNTAX_HIGHLIGHTING 1 */
/* 25.11.95 - WITH_ACTION_FLAG always 1 */
/* 27.11.95 - OS_9: TIMER_TICK is now dynamic */
/* 28.11.95 - OS_9: TIMER_TICK --> f(CLOCKS_PER_SEC), see: kb_input.c */
/* 31.01.96 - WITH_HEX_FIND */
/* 24.02.97 - HP_UX: WITH_SYNTAX_HIGHLIGHTING 1 */
/* 31.07.98 - stoe: QNX: WITH_CPP_SYNTAX_HIGHLIGHTING 1 */
/* 05.09.98 - VAR_EOLN, var. Endekennung eoln   */
/* 07.09.98 - EOLN_LOW, EOLN_HIGH: type cast (char) */
/* 02.02.99 - CLEAR_WITH_BLANKS now defined here (before in mon_outp.c) */
/* 04.03.99 - OS_9000, OS_9_PPC */
/* 14.02.00 - SUN_OS: WITH_WINCH = 3 */
/* 07.11.00 - OSF_1: CLEAR_WITH_BLANKS 1 */
/* 17.10.02 - LINUX: WITH_CPP_SYNTAX_HIGHLIGHTING 1 */
/* 26.03.03 - SUN_OS: WITH_CPP_SYNTAX_HIGHLIGHTING 1 */
/* 29.03.03 - WITH_CPP_SYNTAX_HIGHLIGHTING cancelled, replaced by new algorithm */
/* 17.04.03 - WITH_WINCH 7 (WIN_32) */
/* 25.04.03 - SUN_OS: #define WITH_USEC_CLOCK 1 */
/* 07.05.03 - CYGWIN: New ! */
/* 17.02.04 - QNX6: New ! */

⌨️ 快捷键说明

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