3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-04 10:20:24 +00:00

Replaced fnmatch() with patmatch()

This commit is contained in:
Clifford Wolf 2014-10-10 18:02:17 +02:00
parent bbd808072b
commit 774933a0d8
4 changed files with 105 additions and 18 deletions

View file

@ -19,11 +19,9 @@
#include <sys/types.h>
#include <unistd.h>
#include <fnmatch.h>
#include "kernel/register.h"
#include "kernel/rtlil.h"
#include "kernel/log.h"
#include "kernel/yosys.h"
#include "kernel/patmatch.h"
USING_YOSYS_NAMESPACE
PRIVATE_NAMESPACE_BEGIN
@ -123,7 +121,7 @@ struct CoverPass : public Pass {
for (auto &it : get_coverage_data()) {
if (!patterns.empty()) {
for (auto &p : patterns)
if (!fnmatch(p.c_str(), it.first.c_str(), 0))
if (patmatch(p.c_str(), it.first.c_str()))
goto pattern_match;
continue;
}