source insight插入文件头
来源:互联网 发布:1688传淘宝后无法上架 编辑:程序博客网 时间:2024/04/29 17:35
macro InsertFileHeader()
{
//get crrunt time
szTime = GetSysTime(1)
Day = szTime.Day
Month = szTime.Month
Year = szTime.Year
hbuf = GetCurrentBuf()//申请变量空间,Get a handle to the current file buffer and the name
PathName = GetBufName(hBuf)
FileName = GetFileName(PathName)
hbuf = GetCurrentBuf()
InsBufLine(hbuf, 0, " /*")
InsBufLine(hbuf, 1, "*------------------------------------------------------------------------------")
InsBufLine(hbuf, 2, "* \@file : @FileName@")
InsBufLine(hbuf, 3, "* \@author : FE ")
InsBufLine(hbuf, 4, "* \@date : @Year@-@Month@-@Day@")
InsBufLine(hbuf, 5, "* \@brief : ")
InsBufLine(hbuf, 6, "* \@attention : ")
InsBufLine(hbuf, 7, "*------------------------------------------------------------------------------")
InsBufLine(hbuf, 8, "* Modification History")
InsBufLine(hbuf, 9, "* DATE NAME DESCRIPTION")
InsBufLine(hbuf, 10,"*------------------------------------------------------------------------------")
InsBufLine(hbuf, 11,"*")
InsBufLine(hbuf, 12,"*------------------------------------------------------------------------------")
InsBufLine(hbuf, 13, " */")
}
macro InsertHeader()
{
hwnd = GetCurrentWnd()
lnFirst = GetWndSelLnFirst(hwnd)
hbuf = GetCurrentBuf()
InsBufLine(hbuf, lnFirst, "/*")
InsBufLine(hbuf, lnFirst+1, "******************************************************************************")
InsBufLine(hbuf, lnFirst+2, "*\@ Description : ")
InsBufLine(hbuf, lnFirst+3, "*\@ Parameters : ")
InsBufLine(hbuf, lnFirst+4, "*\ : [IN] ")
InsBufLine(hbuf, lnFirst+5, "*\ : [OUT] ")
InsBufLine(hbuf, lnFirst+6, "*\@ Return : 成功: 失败: ")
InsBufLine(hbuf, lnFirst+7, "*\@ Other : ")
InsBufLine(hbuf, lnFirst+8, "*\@author : Z01848 ")
InsBufLine(hbuf, lnFirst+9,"******************************************************************************")
InsBufLine(hbuf, lnFirst+10, "*/")
}
- source insight插入文件头
- source insight设置头文件
- source insight设置头文件
- Source Insight中设置库头文件
- source insight 添加文件描述头
- source insight 头文件与源文件切换
- source insight 头文件与源文件切换
- Source Insight 宏 - 头文件与源文件切换
- source insight不能识别.hh等头文件的问题
- source insight 头文件注释与函数注释
- Source Insight .h结尾的头文件加载不了
- 让Source Insight的头文件和实现文件快捷键打开的方式
- 让Source Insight的头文件和实现文件快捷键打开的方式
- Source Insight技巧:头文件和实现文件快捷键打开的方式--.h .cpp
- Source Insight宏 - 头文件与源文件切换(不限目录)
- source insight添加系统库函数头文件,实现库函数的自动补齐
- source insight看cc文件
- source insight文件路径显示
- CSAPP:网桥的自学习算法
- mvc 文件下载
- javascript中如何声明一个正则表达式对象
- tomcat的配置
- hdu-2438-Turn the corner(三分)
- source insight插入文件头
- 转发和重定向
- Tomcat系列课程之第三课-Tomcat虚拟目录的设置
- hdoj2032杨辉三角
- Scalable and privacy-respectful interactive discovery of place semantics from human mobility traces
- Type mismatch: cannot convert from Object to String
- 面试题总结
- Math.random()-实现浏览器验证码点击刷新的JS方法核心
- JSON-基础知识及实例应用