Ignore:
Timestamp:
May 29, 2017, 11:01:22 AM (2 years ago)
Author:
cameron
Message:

Recognize all standard Posix and GNU grep flags; support in progress

File:
1 edited

Legend:

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

    r5477 r5480  
    3737extern bool LineRegexpFlag; // -x
    3838extern bool WordRegexpFlag; // -w
    39    
     39extern std::vector<std::string> RegexpVector; // -e
     40extern std::string FileFlag; // -f
     41
    4042/*
    4143 *  B.  Grep input sources and interpretation.
    4244 */
    43    
    44    
    45 // Grep input source control corresponding to -r, -R flags.
    46 extern bool RecursiveFlag; // -r
     45
     46// Use DirectoriesFlag==Recurse to test for recursive mode.
     47//extern bool RecursiveFlag;
    4748extern bool DereferenceRecursiveFlag; // -R
    4849extern bool TextFlag; // -a
     
    5051extern bool NullDataFlag; // -z
    5152extern bool MmapFlag; // -mmap
    52    
     53extern std::string ExcludeFlag; // -exclude
     54extern std::string ExcludeFromFlag; // -exclude-from
     55extern std::string ExcludeDirFlag; // -exclude-dir
     56extern std::string IncludeFlag; // -include
     57
    5358/*
    5459 *  C.  Grep output modes and options.
     
    6469enum ColoringType {alwaysColor, autoColor, neverColor};
    6570extern ColoringType ColorFlag;
     71
     72enum DevDirAction {Read, Skip, Recurse};
     73extern DevDirAction DevicesFlag;
     74extern DevDirAction DirectoriesFlag;
     75   
     76enum BinaryFilesMode {Binary, WithoutMatch, Text};
     77extern BinaryFilesMode BinaryFilesFlag;
    6678   
    6779extern bool NoMessagesFlag; // -s
     
    7486extern bool InitialTabFlag; // -T
    7587extern bool OnlyMatchingFlag; // -o
     88extern std::string LabelFlag; // -label
    7689extern bool LineBufferedFlag; // -line-buffered
    7790extern bool NormalizeLineBreaksFlag; // -normalize-line-breaks
Note: See TracChangeset for help on using the changeset viewer.