/*
- * Copyright (c) 2015-2020, Intel Corporation
+ * Copyright (c) 2015-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
return HS_COMPILER_ERROR;
}
+ if (flags & HS_FLAG_COMBINATION) {
+ *error = generateCompileError("Invalid parameter: unsupported "
+ "logical combination expression", -1);
+ return HS_COMPILER_ERROR;
+ }
+
*info = nullptr;
*error = nullptr;
/*
- * Copyright (c) 2015-2020, Intel Corporation
+ * Copyright (c) 2015-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - HS_FLAG_PREFILTER - Compile pattern in prefiltering mode.
* - HS_FLAG_SOM_LEFTMOST - Report the leftmost start of match offset
* when a match is found.
- * - HS_FLAG_COMBINATION - Parse the expression in logical combination
- * syntax.
- * - HS_FLAG_QUIET - Ignore match reporting for this expression. Used for
- * the sub-expressions in logical combinations.
+ * - HS_FLAG_QUIET - This flag will be ignored.
*
* @param info
* On success, a pointer to the pattern information will be returned in
* - HS_FLAG_PREFILTER - Compile pattern in prefiltering mode.
* - HS_FLAG_SOM_LEFTMOST - Report the leftmost start of match offset
* when a match is found.
- * - HS_FLAG_COMBINATION - Parse the expression in logical combination
- * syntax.
- * - HS_FLAG_QUIET - Ignore match reporting for this expression. Used for
- * the sub-expressions in logical combinations.
+ * - HS_FLAG_QUIET - This flag will be ignored.
*
* @param ext
* A pointer to a filled @ref hs_expr_ext_t structure that defines
/*
- * Copyright (c) 2019, Intel Corporation
+ * Copyright (c) 2019-2021, Intel Corporation
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
| HS_FLAG_PREFILTER \
| HS_FLAG_SINGLEMATCH \
| HS_FLAG_ALLOWEMPTY \
- | HS_FLAG_SOM_LEFTMOST)
+ | HS_FLAG_SOM_LEFTMOST \
+ | HS_FLAG_COMBINATION \
+ | HS_FLAG_QUIET)
#ifdef __cplusplus
} /* extern "C" */