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:
parent
4b7abf1e22
commit
49266015c8
|
@ -10,6 +10,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <fnmatch.h>
|
||||||
#include "private.h"
|
#include "private.h"
|
||||||
#include "tycommon.h"
|
#include "tycommon.h"
|
||||||
|
|
||||||
|
@ -470,7 +471,7 @@ filematch(const char *name, const Cmatch *m)
|
||||||
|
|
||||||
for (i = 0; m[i].match; i++)
|
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 m[i].icon;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -504,7 +505,7 @@ printmatch(const char *name, const Cmatch *m)
|
||||||
|
|
||||||
for (i = 0; m[i].match; i++)
|
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].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);
|
if (m[i].br <= 5) colorprint(CUBE, BG, m[i].br, m[i].bg, m[i].bb);
|
||||||
|
|
Loading…
Reference in New Issue