Made it compilable by borland c++
This commit is contained in:
parent
edc4177df3
commit
72d9e43f92
|
@ -6,6 +6,11 @@
|
|||
#include <list>
|
||||
#include <string>
|
||||
#include <sstream>
|
||||
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#include <mem.h>
|
||||
#endif
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
extern bool CheckCodingStyle;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
#include "CheckHeaders.h"
|
||||
#include "tokenize.h"
|
||||
#include "CommonCheck.h"
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
|
|
19
main.cpp
19
main.cpp
|
@ -11,6 +11,10 @@
|
|||
#include <iostream>
|
||||
#include <sstream>
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#include <dir.h>
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
bool Debug = false;
|
||||
bool ShowAll = false;
|
||||
|
@ -41,6 +45,21 @@ int main(int argc, char* argv[])
|
|||
else if (strcmp(argv[i],"--style")==0)
|
||||
CheckCodingStyle = true;
|
||||
|
||||
// Filenames
|
||||
else if ( strchr(argv[i], '*') )
|
||||
{
|
||||
#ifndef __GNUC__
|
||||
struct ffblk f;
|
||||
int done = findfirst(argv[i], &f, 0);
|
||||
while ( ! done )
|
||||
{
|
||||
filenames.push_back( f.ff_name );
|
||||
done = findnext(&f);
|
||||
}
|
||||
findclose(&f);
|
||||
#endif
|
||||
}
|
||||
|
||||
else
|
||||
filenames.push_back( argv[i] );
|
||||
}
|
||||
|
|
|
@ -12,6 +12,10 @@
|
|||
#include <stdlib.h> // <- strtoul
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef __BORLANDC__
|
||||
#include <mem.h>
|
||||
#endif
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
// Helper functions..
|
||||
|
|
Loading…
Reference in New Issue