diff options
Diffstat (limited to 'build2/target-type')
-rw-r--r-- | build2/target-type | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build2/target-type b/build2/target-type index aa4bbf7..191c5d8 100644 --- a/build2/target-type +++ b/build2/target-type @@ -36,6 +36,10 @@ namespace build2 // (called for a target with the last argument false); see their // implementations for details. // + // If the pattern function is not NULL, then it is used to amend a pattern + // or match (reverse is false) and then, if the amendment call returned + // true, to reverse it in the resulting matches. + // struct target_type { const char* name; @@ -53,6 +57,8 @@ namespace build2 const scope&, bool search); + bool (*pattern) (const target_type&, const scope&, string&, bool reverse); + void (*print) (ostream&, const target_key&); const target* (*search) (const prerequisite_key&); |