Skip to content

Commit 8415eb2

Browse files
committed
rename some headers to avoid >= 100 char path
1 parent bad4651 commit 8415eb2

28 files changed

+100
-60
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: RcppParallel
22
Type: Package
33
Title: Parallel Programming Tools for 'Rcpp'
4-
Version: 4.3.16
4+
Version: 4.3.17
55
Date: 2016-01-12
66
Authors@R: c(
77
person("JJ", "Allaire", role = c("aut", "cre"), email = "jj@rstudio.com"),

gen/boost-simd-headers-fixup.R

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Tar warns about portability problems with paths >= 100 characters,
2+
# which unfortunately we bump into with Boost.SIMD. Fix this up by
3+
# renaming some offending files.
4+
transformations <- list(
5+
"is_not_equal_with_equal_nans.hpp" = "is_ne_nans.hpp",
6+
"is_equal_with_equal_nans.hpp" = "is_eq_nans.hpp"
7+
)
8+
9+
files <- list.files("inst/include/boost/simd", recursive = TRUE, full.names = TRUE)
10+
11+
# First pass to rename contents of files
12+
for (file in files) {
13+
contents <- readLines(file)
14+
changed <- contents
15+
for (i in seq_along(transformations)) {
16+
from <- names(transformations)[[i]]
17+
to <- transformations[[i]]
18+
changed <- gsub(from, to, changed, fixed = TRUE)
19+
}
20+
21+
if (all(contents == changed))
22+
next
23+
24+
writeLines(changed, file)
25+
}
26+
27+
# Second pass to rename files
28+
for (file in files) {
29+
new <- file
30+
for (i in seq_along(transformations)) {
31+
from <- names(transformations)[[i]]
32+
to <- transformations[[i]]
33+
new <- gsub(from, to, new, fixed = TRUE)
34+
}
35+
36+
if (new == file)
37+
next
38+
39+
file.rename(file, new)
40+
}

inst/include/boost/simd/include/functions/is_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/is_eq_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/is_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/is_eq_nans.hpp>
55

66
#endif

inst/include/boost/simd/include/functions/is_not_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/is_ne_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/is_not_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/is_ne_nans.hpp>
55

66
#endif

inst/include/boost/simd/include/functions/scalar/is_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/scalar/is_eq_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_SCALAR_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_SCALAR_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/scalar/is_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/scalar/is_eq_nans.hpp>
55

66
#endif

inst/include/boost/simd/include/functions/scalar/is_not_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/scalar/is_ne_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_SCALAR_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_SCALAR_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/scalar/is_not_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/scalar/is_ne_nans.hpp>
55

66
#endif

inst/include/boost/simd/include/functions/simd/is_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/simd/is_eq_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_SIMD_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_SIMD_IS_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/simd/is_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/simd/is_eq_nans.hpp>
55

66
#endif

inst/include/boost/simd/include/functions/simd/is_not_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/include/functions/simd/is_ne_nans.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#ifndef BOOST_SIMD_INCLUDE_FUNCTIONS_SIMD_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
22
#define BOOST_SIMD_INCLUDE_FUNCTIONS_SIMD_IS_NOT_EQUAL_WITH_EQUAL_NANS_HPP_INCLUDED
33

4-
#include <boost/simd/predicates/include/functions/simd/is_not_equal_with_equal_nans.hpp>
4+
#include <boost/simd/predicates/include/functions/simd/is_ne_nans.hpp>
55

66
#endif

inst/include/boost/simd/predicates/functions.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define BOOST_SIMD_PREDICATES_FUNCTIONS_HPP_INCLUDED
33

44
#include <boost/simd/predicates/include/functions/is_denormal.hpp>
5-
#include <boost/simd/predicates/include/functions/is_equal_with_equal_nans.hpp>
5+
#include <boost/simd/predicates/include/functions/is_eq_nans.hpp>
66
#include <boost/simd/predicates/include/functions/is_eqz.hpp>
77
#include <boost/simd/predicates/include/functions/is_even.hpp>
88
#include <boost/simd/predicates/include/functions/is_false.hpp>
@@ -27,7 +27,7 @@
2727
#include <boost/simd/predicates/include/functions/is_nlt.hpp>
2828
#include <boost/simd/predicates/include/functions/is_nltz.hpp>
2929
#include <boost/simd/predicates/include/functions/is_not_denormal.hpp>
30-
#include <boost/simd/predicates/include/functions/is_not_equal_with_equal_nans.hpp>
30+
#include <boost/simd/predicates/include/functions/is_ne_nans.hpp>
3131
#include <boost/simd/predicates/include/functions/is_not_finite.hpp>
3232
#include <boost/simd/predicates/include/functions/is_not_greater.hpp>
3333
#include <boost/simd/predicates/include/functions/is_not_greater_equal.hpp>

inst/include/boost/simd/predicates/functions/is_equal_with_equal_nans.hpp renamed to inst/include/boost/simd/predicates/functions/is_eq_nans.hpp

File renamed without changes.

0 commit comments

Comments
 (0)