mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
Move homegrown fnmatch implementation to compat/
This commit is contained in:
parent
77432a7f24
commit
0522b9be78
2
Makefile
2
Makefile
@ -57,7 +57,7 @@ RETROLAUNCH_OBJ = tools/retrolaunch/main.o \
|
||||
tools/retrolaunch/sha1.o \
|
||||
tools/retrolaunch/parser.o \
|
||||
tools/retrolaunch/cd_detect.o \
|
||||
tools/retrolaunch/rl_fnmatch.o \
|
||||
compat/rarch_fnmatch.o \
|
||||
tools/input_common_launch.o \
|
||||
file_path.o \
|
||||
compat/compat.o \
|
||||
|
@ -1,11 +1,29 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||
* Copyright (C) 2012-2014 - Ficoos
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#if __TEST_FNMATCH__
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
#include "rl_fnmatch.h"
|
||||
#include "rarch_fnmatch.h"
|
||||
|
||||
// Implemnentation of fnmatch(3) so it can be distributed to non *nix platforms
|
||||
// No flags are implemented ATM. We don't use them. Add flags as needed.
|
||||
|
||||
int rl_fnmatch(const char *pattern, const char *string, int flags)
|
||||
{
|
||||
const char *c;
|
25
compat/rarch_fnmatch.h
Normal file
25
compat/rarch_fnmatch.h
Normal file
@ -0,0 +1,25 @@
|
||||
/* RetroArch - A frontend for libretro.
|
||||
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
|
||||
* Copyright (C) 2011-2014 - Daniel De Matteis
|
||||
* Copyright (C) 2012-2014 - Ficoos
|
||||
*
|
||||
* RetroArch is free software: you can redistribute it and/or modify it under the terms
|
||||
* of the GNU General Public License as published by the Free Software Found-
|
||||
* ation, either version 3 of the License, or (at your option) any later version.
|
||||
*
|
||||
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
|
||||
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
||||
* PURPOSE. See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with RetroArch.
|
||||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __RL_FNMATCH_H__
|
||||
#define __RL_FNMATCH_H__
|
||||
|
||||
#define FNM_NOMATCH 1
|
||||
|
||||
int rl_fnmatch(const char *pattern, const char *string, int flags);
|
||||
|
||||
#endif
|
@ -15,7 +15,7 @@
|
||||
#include "sha1.h"
|
||||
#include "parser.h"
|
||||
#include "cd_detect.h"
|
||||
#include "rl_fnmatch.h"
|
||||
#include "../../compat/rarch_fnmatch.h"
|
||||
#include "../../file.h"
|
||||
|
||||
#include "log.h"
|
||||
|
@ -1,8 +0,0 @@
|
||||
#ifndef __RL_FNMATCH_H__
|
||||
#define __RL_FNMATCH_H__
|
||||
|
||||
#define FNM_NOMATCH 1
|
||||
|
||||
int rl_fnmatch(const char *pattern, const char *string, int flags);
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user