Revert "tyls: use eina_fnmatch"

This is not available in the released EFL versions that are supported
This reverts commit 4b7abf1e22.
This commit is contained in:
Boris Faure 2021-05-26 22:53:14 +02:00
parent 4b7abf1e22
commit 49266015c8
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <fnmatch.h>
#include "private.h"
#include "tycommon.h"
@ -470,7 +471,7 @@ filematch(const char *name, const Cmatch *m)
for (i = 0; m[i].match; i++)
{
if (eina_fnmatch(m[i].match, name, 0))
if (!fnmatch(m[i].match, name, 0))
return m[i].icon;
}
return NULL;
@ -504,7 +505,7 @@ printmatch(const char *name, const Cmatch *m)
for (i = 0; m[i].match; i++)
{
if (eina_fnmatch(m[i].match, name, 0))
if (!fnmatch(m[i].match, name, 0))
{
if (m[i].fr <= 5) colorprint(CUBE, FG, m[i].fr, m[i].fg, m[i].fb);
if (m[i].br <= 5) colorprint(CUBE, BG, m[i].br, m[i].bg, m[i].bb);