Ignore:
Timestamp:
Apr 29, 2016, 4:05:57 PM (3 years ago)
Author:
lindanl
Message:

Passing file index instead of file name as internal state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/grep_engine.h

    r5001 r5017  
    1616
    1717class GrepEngine {
    18     typedef void (*GrepFunctionType)(char * byte_data, size_t filesize, const char* filename, uint64_t finalLineUnterminated);
     18    typedef void (*GrepFunctionType)(char * byte_data, size_t filesize, const int fileIdx, uint64_t finalLineUnterminated);
    1919public:
    2020
     
    2525    void grepCodeGen(std::string moduleName, re::RE * re_ast, bool isNameExpression = false);
    2626   
    27     void doGrep(const std::string & fileName);
     27    void doGrep(const std::string & fileName, const int fileIdx);
    2828   
    2929    re::CC *  grepCodepoints();
Note: See TracChangeset for help on using the changeset viewer.