资源简介
pclint代码静态检查工具,支持和source insight集成在一块,大大提高开发效率,减少代码bug

代码片段和文件信息
/*
EXAMPLE SOURCE CODE FOR GREP FILTER
Grep2Msg.C
Copyright (c) 1990 1991 Borland International Inc.
All rights reserved.
Grep2Msg - Message filter from Turbo Grep to Turbo C++ IDE message window
This filter accepts input through the standard input stream converts
it and outputs it to the standard output stream. The streams are linked
through pipes such that the input stream is the output from GREP and
the output stream is connected to the message window of the Turbo C++ IDE.
This filter is invoked through the Turbo C++ IDE transfer mechanism as
grep | grep2msg | TC IDE
Compile using Turbo C++ in the LARGE memory model
tcc -ml grep2msg
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include “filter.h“
#define TRUE 1
#define FALSE 0
#define STR_MAX 256
#define NAME_MAX 80
char NewFileText[] = “--- Module: “;
char IncludeText[] = “Including file “;
unsigned BufSizeCurBufLen;
char *InBuffer
*OutBuffer
*CurInPtr
*CurOutPtr
*LinePtr;
char Line[133];
long int InOff;
char EndMark;
int NoLines;
char oldfile[NAME_MAX] = ““;
int replace = 0;
/************************************************************************
Function : NextChar
Parameters: None
Returns : next character in input buffer or 0 for end of file
Input from the standard input stream is buffered in a global buffer InBuffer
which is allocated in function main. NextChar function will return
the next character in the buffer reading from the input stream when the
buffer becomes empty.
************************************************************************/
char NextChar(void)
{
if (CurInPtr < InBuffer+CurBufLen) /* if buffer is not empty */
{
return *(CurInPtr++); /* return next information */
}
else
{
CurInPtr = InBuffer; /* reset pointer to front of buffer */
lseek(0InOff0); /* seek to the next section for read */
InOff += BufSize; /* increment pointer to next block */
if ((CurBufLen = (unsigned) read(0InBufferBufSize)) !=0)
if (CurInPtr < InBuffer+CurBufLen)
return *(CurInPtr++);
return 0; /* return 0 on end of file */
}
}
/*************************************************************************
Function : flushOut
Parameters: Size The number of characters to be written out
Returns : nothing
Strings to be sent to the message window are placed in a buffer called
OutBuffer. A call to this function will write Size bytes to the
standard output stream and reset the output buffer pointer to the
beginning of the buffer. Any additional information in the buffer is
thus lost.
***********************************************
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-04-03 16:56 pclintxiaz\
文件 32 2009-12-06 17:23 pclintxiaz\autorun.inf
目录 0 2014-04-03 16:49 pclintxiaz\DOS-ins\
文件 48640 2009-12-06 17:22 pclintxiaz\DOS-ins\choose.exe
文件 32793 2009-12-06 17:22 pclintxiaz\DOS-ins\choose16.exe
文件 100925 2009-12-06 17:22 pclintxiaz\DOS-ins\install.exe
文件 733184 2009-12-06 17:22 pclintxiaz\DOS-ins\lint-nt.exe
文件 665920 2009-12-06 17:22 pclintxiaz\DOS-ins\lint-os2.exe
文件 890036 2009-12-06 17:22 pclintxiaz\DOS-ins\lint.exe
目录 0 2014-04-03 16:49 pclintxiaz\DOS-ins\lnt\
文件 667 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-ds.lnt
文件 39252 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-misra-cpp.lnt
文件 29398 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-misra1.lnt
文件 41741 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-misra2.lnt
文件 6842 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-sm.lnt
文件 6857 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-sm12.lnt
文件 12725 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-sm123.lnt
文件 8707 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\au-sm3.lnt
文件 2808 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-arch.lnt
文件 1762 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-aztec.lnt
文件 5393 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bc.lnt
文件 7642 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bc4.lnt
文件 3889 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bc4wi.lnt
文件 783 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bc5.h
文件 10263 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bc5.lnt
文件 7646 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bcos2.lnt
文件 3667 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bcwin.lnt
文件 1152 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-bs166.lnt
文件 117 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-byte.h
文件 1858 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-byte.lnt
文件 1762 2009-12-06 17:21 pclintxiaz\DOS-ins\lnt\co-c86.lnt
............此处省略175个文件信息
- 上一篇:LabelShop专业版crack版
- 下一篇:1313个C标准库头文件
相关资源
- Source Insight 3.5 配置文件
- SourceCount代码统计
- EhLib v6.0 Full Source.rar
- Multiplicity of Solutions of Weighted (pq)
- Exact Conditions of Blow-up and Global Existen
- AlphaControls14.23_20190502_Full_Source.rar
- DNF偏移查找工具源码DNF-offset-lookup-t
- SourceInsight 超好用的代码比对工具
- Windows程序设计 中英中文是完美版本
- sourceinsight 4 注册系列号
- Source Navigator(Windows版)
- RM2019机甲大师赛官方赠与步兵代码开
- uniGUI_SourceCode.rar
- 代码复杂度检查工具Source Monitor
- 2019年Ei Compendex收录出版物期刊目录
- 面向对象脑图
- PC-lint 9 + 中文手册
- 论文:Stanford Doggo: An Open-Source Quasi-
- HelloWorld2_source_code.zip
- Dynamsoft+SourceAnywhere+for+VSS+5.2+Professio
- FreeRdp源码分析.7z
- source insight4.0免安装
- insight与PLC profinet通讯.pdf
- The Architecture of Open Source Applications 2
- source insight 4.0 仿atom暗色主题
- source Insight3.0
-
Remob
jects Hydra for Delphi V3.0.39.777 ful -
Source Insight 4 主题xm
l配置文件仿su - SourceInsight_3.5 中文汉化
- SourceInsight 3.5 中文完美破解绿色版
评论
共有 条评论