Made it compilable by borland c++

This commit is contained in:
Daniel Marjamäki 2008-02-18 17:11:34 +00:00
parent edc4177df3
commit 72d9e43f92
4 changed files with 29 additions and 0 deletions

View File

@ -6,6 +6,11 @@
#include <list>
#include <string>
#include <sstream>
#ifdef __BORLANDC__
#include <mem.h>
#endif
//---------------------------------------------------------------------------
extern bool CheckCodingStyle;

View File

@ -2,6 +2,7 @@
#include "CheckHeaders.h"
#include "tokenize.h"
#include "CommonCheck.h"
#include <algorithm>
#include <list>
#include <sstream>
#include <string>

View File

@ -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] );
}

View File

@ -12,6 +12,10 @@
#include <stdlib.h> // <- strtoul
#include <stdio.h>
#ifdef __BORLANDC__
#include <mem.h>
#endif
//---------------------------------------------------------------------------
// Helper functions..