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

📄 msgtoh.vi

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 VI
字号:
#
# remove all lines that don't begin with 'pick'
#
set magic
g!/^ *(pick|wdpick)/d

#
# create define statements for all other lines
#
%s/^ *wdpick.*\([ \t]*([A-Z0-9_]*).*$/pick(__\1/
%s/^.*\([ \t]*([A-Z0-9_]*).*$/#define \1   (MSG_RC_BASE + ###XA323###\# )/

#
# remove any leading zeros in the constants
#
%s/###XA323###0*//

#
#include the bases header
#
execute :1\n
execute O#define MSG_RC_BASE  0\e

#
# write the file out
#
execute :w!%1\n

#
#quit
#
execute :q!\n

⌨️ 快捷键说明

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