tyls: use eina_fnmatch
Reviewers: raster, billiob Reviewed By: billiob Differential Revision: https://phab.enlightenment.org/D12264
This commit is contained in:
parent
09b5c4e2b4
commit
4b7abf1e22
|
@ -10,7 +10,6 @@
|
||||||
#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"
|
||||||
|
|
||||||
|
@ -471,7 +470,7 @@ filematch(const char *name, const Cmatch *m)
|
||||||
|
|
||||||
for (i = 0; m[i].match; i++)
|
for (i = 0; m[i].match; i++)
|
||||||
{
|
{
|
||||||
if (!fnmatch(m[i].match, name, 0))
|
if (eina_fnmatch(m[i].match, name, 0))
|
||||||
return m[i].icon;
|
return m[i].icon;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -505,7 +504,7 @@ printmatch(const char *name, const Cmatch *m)
|
||||||
|
|
||||||
for (i = 0; m[i].match; i++)
|
for (i = 0; m[i].match; i++)
|
||||||
{
|
{
|
||||||
if (!fnmatch(m[i].match, name, 0))
|
if (eina_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