aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-02-11 11:43:25 -0500
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-02-11 11:43:25 -0500
commit9bd603b639d7dd08fbe0af7e8669358bd066b7cd (patch)
tree8207b9680cc33846ff7d9ce0c8917aa052766c43 /src
parentb828cc647f63de48c6e24f5a1043e052eb99b2a2 (diff)
downloadspmc-9bd603b639d7dd08fbe0af7e8669358bd066b7cd.tar.gz
Refactor project structure:
* Move prototypes and definitions to respective header files * Renamed strings.h to str.h to avoid collision with standard library header
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt2
-rw-r--r--src/str.c (renamed from src/strings.c)1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index de2a01f..8a0a69a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,7 +3,7 @@ include_directories(
${CMAKE_BINARY_DIR}/include
)
-add_executable(spm spm.c config.c compat.c deps.c fs.c rpath.c find.c shell.c archive.c strings.c relocation.c install.c config_global.c manifest.c checksum.c extern/url.c version_spec.c spm_build.c mime.c internal_cmd.c environment.c mirrors.c strlist.c shlib.c)
+add_executable(spm spm.c config.c compat.c deps.c fs.c rpath.c find.c shell.c archive.c str.c relocation.c install.c config_global.c manifest.c checksum.c extern/url.c version_spec.c spm_build.c mime.c internal_cmd.c environment.c mirrors.c strlist.c shlib.c)
target_link_libraries(spm rt crypto ssl curl)
if(MSVC)
diff --git a/src/strings.c b/src/str.c
index afd5be3..7519cb1 100644
--- a/src/strings.c
+++ b/src/str.c
@@ -589,3 +589,4 @@ char *normalize_space(char *s) {
return result;
}
+