From 72d9e43f92e27833ac44594f56ebf166157e4b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 18 Feb 2008 17:11:34 +0000 Subject: [PATCH] Made it compilable by borland c++ --- CheckClass.cpp | 5 +++++ CheckHeaders.cpp | 1 + main.cpp | 19 +++++++++++++++++++ tokenize.cpp | 4 ++++ 4 files changed, 29 insertions(+) diff --git a/CheckClass.cpp b/CheckClass.cpp index 2a9d8d2e6..6b1e5be76 100644 --- a/CheckClass.cpp +++ b/CheckClass.cpp @@ -6,6 +6,11 @@ #include #include #include + + +#ifdef __BORLANDC__ +#include +#endif //--------------------------------------------------------------------------- extern bool CheckCodingStyle; diff --git a/CheckHeaders.cpp b/CheckHeaders.cpp index c407880b3..8ad03ce1e 100644 --- a/CheckHeaders.cpp +++ b/CheckHeaders.cpp @@ -2,6 +2,7 @@ #include "CheckHeaders.h" #include "tokenize.h" #include "CommonCheck.h" +#include #include #include #include diff --git a/main.cpp b/main.cpp index 6b5abf0ed..e16ed5580 100644 --- a/main.cpp +++ b/main.cpp @@ -11,6 +11,10 @@ #include #include +#ifdef __BORLANDC__ +#include +#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] ); } diff --git a/tokenize.cpp b/tokenize.cpp index 40eee932e..afa7dd260 100644 --- a/tokenize.cpp +++ b/tokenize.cpp @@ -12,6 +12,10 @@ #include // <- strtoul #include +#ifdef __BORLANDC__ +#include +#endif + //--------------------------------------------------------------------------- // Helper functions..