Ignore:
Timestamp:
Apr 11, 2018, 10:27:58 AM (17 months ago)
Author:
cameron
Message:

Restructuring in preparation for command-line file include/exclude GLOBs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/wc.cpp

    r5946 r5964  
    2727#include <fcntl.h>
    2828#include <util/file_select.h>
     29#include <boost/filesystem.hpp>
     30namespace fs = boost::filesystem;
    2931
    3032using namespace llvm;
     
    3436static cl::list<std::string> inputFiles(cl::Positional, cl::desc("<input file ...>"), cl::OneOrMore, cl::cat(wcFlags));
    3537
    36 std::vector<std::string> allFiles;
     38std::vector<fs::path> allFiles;
    3739
    3840enum CountOptions {
     
    210212
    211213void wc(WordCountFunctionType fn_ptr, const int64_t fileIdx) {
    212     std::string fileName = allFiles[fileIdx];
     214    std::string fileName = allFiles[fileIdx].string();
    213215    struct stat sb;
    214216    const int fd = open(fileName.c_str(), O_RDONLY);
     
    300302            std::cout << byteCount[i];
    301303        }
    302         std::cout << " " << allFiles[i] << std::endl;
     304        std::cout << " " << allFiles[i].string() << std::endl;
    303305    }
    304306    if (inputFiles.size() > 1) {
Note: See TracChangeset for help on using the changeset viewer.