From 9804a5563ee8cfa3e766ceb50481031f73a59009 Mon Sep 17 00:00:00 2001 From: David Gidwani Date: Thu, 10 Dec 2020 19:25:41 -0500 Subject: [PATCH] feat: add HS_FLAG_COMBINATION and HS_FLAG_QUIET (#21) --- src/hyperscan/hyperscanmodule.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hyperscan/hyperscanmodule.c b/src/hyperscan/hyperscanmodule.c index 9d76b4a..07c2602 100644 --- a/src/hyperscan/hyperscanmodule.c +++ b/src/hyperscan/hyperscanmodule.c @@ -1092,9 +1092,11 @@ MOD_INIT(_hyperscan) ADD_INT_CONSTANT(m, HS_EXT_FLAG_MIN_OFFSET); ADD_INT_CONSTANT(m, HS_FLAG_ALLOWEMPTY); ADD_INT_CONSTANT(m, HS_FLAG_CASELESS); + ADD_INT_CONSTANT(m, HS_FLAG_COMBINATION); ADD_INT_CONSTANT(m, HS_FLAG_DOTALL); ADD_INT_CONSTANT(m, HS_FLAG_MULTILINE); ADD_INT_CONSTANT(m, HS_FLAG_PREFILTER); + ADD_INT_CONSTANT(m, HS_FLAG_QUIET); ADD_INT_CONSTANT(m, HS_FLAG_SINGLEMATCH); ADD_INT_CONSTANT(m, HS_FLAG_SOM_LEFTMOST); ADD_INT_CONSTANT(m, HS_FLAG_UCP); @@ -1114,13 +1116,13 @@ MOD_INIT(_hyperscan) ADD_INT_CONSTANT(m, HS_SUCCESS); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_BDW); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_GENERIC); + ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_GLM); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_HSW); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_IVB); - ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SLM); - ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SNB); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SKL); ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SKX); - ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_GLM); + ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SLM); + ADD_INT_CONSTANT(m, HS_TUNE_FAMILY_SNB); HyperscanError = PyErr_NewException("hyperscan.error", NULL, NULL); Py_INCREF(HyperscanError);