digraph.c
资源名称:vim53src.zip [点击查看]
上传用户:gddssl
上传日期:2007-01-06
资源大小:1003k
文件大小:14k
源码类别:
编辑器/阅读器
开发平台:
DOS
- /* vi:set ts=8 sts=4 sw=4:
- *
- * VIM - Vi IMproved by Bram Moolenaar
- *
- * Do ":help uganda" in Vim to read copying and usage conditions.
- * Do ":help credits" in Vim to see a list of people who contributed.
- */
- /*
- * digraph.c: code for digraphs
- */
- #include "vim.h"
- #ifdef DIGRAPHS
- static int getexactdigraph __ARGS((int, int, int));
- static void printdigraph __ARGS((char_u *));
- static char_u (*digraphnew)[3]; /* pointer to added digraphs */
- static int digraphcount = 0; /* number of added digraphs */
- /*
- * Note: Characters marked with XX are not included literally, because some
- * compilers cannot handle them (Amiga SAS/C is the most picky one).
- */
- #if (defined(MSDOS) || defined(WIN32) || defined(OS2)) && !defined(USE_GUI_WIN32)
- char_u digraphdefault[][3] = /* standard MSDOS digraphs */
- {{'C', ',', 128}, /* ~@ XX */
- {'u', '"', 129}, /*