aboutsummaryrefslogtreecommitdiff
path: root/src/manifest.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2020-03-14 01:43:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2020-03-14 01:43:32 -0400
commit58ef37b6db7851ddcade1091882ef174aebc69c0 (patch)
tree8fd074bbbedfb651a1e868f148408f1008acde13 /src/manifest.c
parentca622ad8641d72b4a6480619119ba43f0c52c860 (diff)
downloadspmc-58ef37b6db7851ddcade1091882ef174aebc69c0.tar.gz
Rename PACKAGE_MIN_DELIM and move it to package.h
Diffstat (limited to 'src/manifest.c')
-rw-r--r--src/manifest.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/manifest.c b/src/manifest.c
index cc45346..1b2b600 100644
--- a/src/manifest.c
+++ b/src/manifest.c
@@ -4,7 +4,6 @@
#include "spm.h"
#include <fnmatch.h>
#include "url.h"
-#define PACKAGE_MIN_DELIM 2
/**
* Compare `ManifestPackage` packages (lazily)
@@ -25,7 +24,7 @@ int manifest_package_cmp(ManifestPackage *a, ManifestPackage *b) {
void manifest_package_separator_swap(char **name) {
// Replace unwanted separators in the package name with placeholder to prevent splitting on the wrong one
- int delim_count = num_chars((*name), SPM_PACKAGE_MEMBER_SEPARATOR) - PACKAGE_MIN_DELIM;
+ int delim_count = num_chars((*name), SPM_PACKAGE_MEMBER_SEPARATOR) - SPM_PACKAGE_MIN_DELIM;
if (delim_count < 0) {
return;