Skip to content

Commit

Permalink
chore: Update vendored cpp11 to 0.5.2 (#1068)
Browse files Browse the repository at this point in the history
* Revert "External pointer premature release"

This reverts commit d7886e3.

* Revert "Protection"

This reverts commit 4f4a3a8.

* Revert "END_CPP11_EX()"

This reverts commit aa3225d.

* Revert "Add `prot` argument to `external_pointer()` constructor"

This reverts commit d045ccf.

* Header

* Substance

* Add `prot` argument to `external_pointer()` constructor

r-lib/cpp11#420

This reverts commit abcae40e2aff8b1664098294959b8df743605737.

* END_CPP11_EX()

r-lib/cpp11#421

* Protection

r-lib/cpp11#422

This reverts commit 1e181e5e5c2cf0a21906b49dafe80364c8ca3f2b.

* External pointer premature release

r-lib/cpp11#423

This reverts commit 1b698e533ea7c7003cb610a5f5f7e5a47966c59d.
  • Loading branch information
krlmlr authored Mar 9, 2025
1 parent 7c28cd2 commit 0a08045
Show file tree
Hide file tree
Showing 24 changed files with 50 additions and 50 deletions.
4 changes: 2 additions & 2 deletions inst/include/cpp11.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include "cpp11/R.hpp"
Expand Down
6 changes: 3 additions & 3 deletions inst/include/cpp11/R.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#ifdef R_INTERNALS_H_
Expand Down Expand Up @@ -51,7 +51,7 @@
namespace cpp11 {
namespace literals {

constexpr R_xlen_t operator"" _xl(unsigned long long int value) { return value; }
constexpr R_xlen_t operator""_xl(unsigned long long int value) { return value; }

} // namespace literals

Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/altrep.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

// It would be nice to remove this since all supported versions of R have ALTREP, but
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/as.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <cmath> // for modf
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/attribute_proxy.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <initializer_list> // for initializer_list
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/data_frame.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <cstdlib> // for abs
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/declarations.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <cstring>
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/doubles.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <algorithm> // for min, tranform
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/environment.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <string> // for string, basic_string
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/external_pointer.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <cstddef> // for nullptr_t, NULL
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/function.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <string.h> // for strcmp
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/integers.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <algorithm> // for min
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/list.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <initializer_list> // for initializer_list
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/list_of.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <string> // for string, basic_string
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/logicals.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <algorithm> // for min
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/matrix.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <iterator>
Expand Down
6 changes: 3 additions & 3 deletions inst/include/cpp11/named_arg.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <stddef.h> // for size_t
Expand Down Expand Up @@ -41,7 +41,7 @@ class named_arg {

namespace literals {

inline named_arg operator"" _nm(const char* name, std::size_t) { return named_arg(name); }
inline named_arg operator""_nm(const char* name, std::size_t) { return named_arg(name); }

} // namespace literals

Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/protect.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <csetjmp> // for longjmp, setjmp, jmp_buf
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/r_bool.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <limits> // for numeric_limits
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/r_string.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <string> // for string, basic_string, operator==
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/r_vector.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <stddef.h> // for ptrdiff_t, size_t
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/raws.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <algorithm> // for min
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/sexp.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <stddef.h> // for size_t
Expand Down
4 changes: 2 additions & 2 deletions inst/include/cpp11/strings.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// cpp11 version: 0.5.1
// vendored on: 2024-12-07
// cpp11 version: 0.5.2
// vendored on: 2025-03-09
#pragma once

#include <initializer_list> // for initializer_list
Expand Down

0 comments on commit 0a08045

Please sign in to comment.