From 58ef37b6db7851ddcade1091882ef174aebc69c0 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sat, 14 Mar 2020 01:43:32 -0400 Subject: Rename PACKAGE_MIN_DELIM and move it to package.h --- src/manifest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/manifest.c') 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 #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; -- cgit