From 389d0b2badf4a9cd33ed91a928b91475fb0d0a4f Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 5 Jun 2020 17:00:51 -0400 Subject: Move find.c functions into fs.c --- include/find.h | 4 ---- include/fs.h | 2 ++ include/str.h | 1 - 3 files changed, 2 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/find.h b/include/find.h index 34c471c..839766d 100644 --- a/include/find.h +++ b/include/find.h @@ -4,9 +4,5 @@ #ifndef SPM_FIND_H #define SPM_FIND_H -char *find_executable(const char *program); -char *find_file(const char *root, const char *filename); -char *find_package(const char *filename); -int errglob(const char *epath, int eerrno); #endif //SPM_FIND_H diff --git a/include/fs.h b/include/fs.h index 0698871..9f706b2 100644 --- a/include/fs.h +++ b/include/fs.h @@ -47,4 +47,6 @@ char *expandpath(const char *_path); char *spm_mkdtemp(const char *base, const char *name, const char *extended_path); int touch(const char *path); char **file_readlines(const char *filename, size_t start, size_t limit, ReaderFn *readerFn); +char *find_executable(const char *program); +int find_in_file(const char *filename, const char *pattern); #endif //SPM_FSTREE_H diff --git a/include/str.h b/include/str.h index ae54997..5a94bd0 100644 --- a/include/str.h +++ b/include/str.h @@ -22,7 +22,6 @@ char *join(char **arr, const char *separator); char *join_ex(char *separator, ...); char *substring_between(char *sptr, const char *delims); void strsort(char **arr, unsigned int sort_mode); -int find_in_file(const char *filename, const char *pattern); int isrelational(char ch); void print_banner(const char *s, int len); char *strstr_array(char **arr, const char *str); -- cgit From 69dfe8af1bf086cae273cd6213aa11a894a135a3 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Fri, 5 Jun 2020 17:01:48 -0400 Subject: Remove find.{c,h} --- include/CMakeLists.txt | 1 - include/find.h | 8 -------- include/spm.h | 1 - 3 files changed, 10 deletions(-) delete mode 100644 include/find.h (limited to 'include') diff --git a/include/CMakeLists.txt b/include/CMakeLists.txt index 1009b96..1e1a019 100644 --- a/include/CMakeLists.txt +++ b/include/CMakeLists.txt @@ -7,7 +7,6 @@ install( conf.h environment.h error_handler.h - find.h fs.h install.h internal_cmd.h diff --git a/include/find.h b/include/find.h deleted file mode 100644 index 839766d..0000000 --- a/include/find.h +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @file find.h - */ -#ifndef SPM_FIND_H -#define SPM_FIND_H - - -#endif //SPM_FIND_H diff --git a/include/spm.h b/include/spm.h index e0e713f..6639cd1 100644 --- a/include/spm.h +++ b/include/spm.h @@ -70,7 +70,6 @@ extern spm_vars SPM_GLOBAL; #include "shell.h" #include "relocation.h" #include "archive.h" -#include "find.h" #include "rpath.h" #include "mime.h" #include "mirrors.h" -- cgit From 706f9264aa65caab96c6dce8833062145b249c58 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 7 Jun 2020 00:54:26 -0400 Subject: Remove glob.h reference --- include/spm.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include') diff --git a/include/spm.h b/include/spm.h index 6639cd1..a026ebf 100644 --- a/include/spm.h +++ b/include/spm.h @@ -44,7 +44,6 @@ #if !OS_WINDOWS #include -#include #include #include #include -- cgit