Skip to content

Commit 4c7aee3

Browse files
committed
Revert "merged with ChangeLog and inst/NEWS.Rd"
This reverts commit 6728a2d, reversing changes made to 5ecbbd0.
1 parent b86a21e commit 4c7aee3

File tree

7 files changed

+4
-99
lines changed

7 files changed

+4
-99
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
inst/lib
2-
*.Rproj
3-
.Rproj.user
4-
src/*.o
5-
src/*.so
6-
src/*.dll
2+

ChangeLog

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
* inst/include/Rcpp/exceptions.h: Move stop() into Rcpp namespace
44

5-
2014-01-03 JJ Allaire <jj@rstudio.org>
6-
7-
* .gitignore: Added src/<object-files>, *.Rproj, and .Rproj.user
8-
* inst/include/Rcpp/Interrupt.h: New checkUserInterrupt function
9-
that provides a C++ friendly implementation of R_CheckUserInterrupt
10-
* inst/include/RcppCommon.h: Include Rcpp/Interrupts.h
11-
* inst/include/macros/macros.h: Check for interrupts in END_RCPP
12-
* src/attributes.cpp: Handle interrupted-error in attribute
13-
function envelope.
14-
155
2013-12-31 Dirk Eddelbuettel <edd@debian.org>
166

177
* vignettes/Rcpp.bib: Updated CRAN package references

inst/NEWS.Rd

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
and \code{NaN}.)
2222
\item Applied two bug fixes to Vector \code{sort()} and \code{RObject}
2323
definition spotted and corrected by Kevin Ushey
24-
definition spotted and correct by Kevin Ushey
25-
\item New \code{checkUserInterrupt()} function that provides a C++ friendly
26-
implementation of \code{R_CheckUserInterrupt}.
2724
}
2825
\item Changes in Rcpp documentation:
2926
\itemize{

inst/include/Rcpp/Interrupt.h

Lines changed: 0 additions & 66 deletions
This file was deleted.

inst/include/Rcpp/macros/macros.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@
3131
#endif
3232

3333
#ifndef VOID_END_RCPP
34-
#define VOID_END_RCPP } catch( Rcpp::internal::InterruptedException& __ex__ ) { Rf_jump_to_toplevel(); } catch( std::exception& __ex__ ){ forward_exception_to_r( __ex__ ) ; } catch(...){ ::Rf_error( "c++ exception (unknown reason)" ) ; }
34+
#define VOID_END_RCPP } catch( std::exception& __ex__ ){ forward_exception_to_r( __ex__ ) ; } catch(...){ ::Rf_error( "c++ exception (unknown reason)" ) ; }
3535
#endif
3636

3737
#ifndef END_RCPP
3838
#define END_RCPP VOID_END_RCPP return R_NilValue;
3939
#endif
4040

4141
#ifndef END_RCPP_RETURN_ERROR
42-
#define END_RCPP_RETURN_ERROR } catch( Rcpp::internal::InterruptedException& __ex__ ) { return Rcpp::internal::interruptedError(); } catch( std::exception& __ex__ ){ return exception_to_try_error( __ex__ ) ; } catch(...){ return string_to_try_error( "c++ exception (unknown reason)" ) ; } return R_NilValue;
42+
#define END_RCPP_RETURN_ERROR } catch( std::exception& __ex__ ){ return exception_to_try_error( __ex__ ) ; } catch(...){ return string_to_try_error( "c++ exception (unknown reason)" ) ; } return R_NilValue;
4343
#endif
4444

4545
#define Rcpp_error(MESSAGE) throw Rcpp::exception( MESSAGE, __FILE__, __LINE__ )

inst/include/RcppCommon.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,6 @@ namespace Rcpp{
139139

140140
#include <Rcpp/exceptions.h>
141141

142-
#include <Rcpp/Interrupt.h>
143-
144142
namespace Rcpp{
145143
template <typename T> class object ;
146144
class String ;

src/attributes.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,10 +1700,6 @@ namespace attributes {
17001700
ostr() << ");" << std::endl;
17011701
ostr() << " }" << std::endl;
17021702

1703-
ostr() << " if (__result.inherits(\"interrupted-error\"))"
1704-
<< std::endl
1705-
<< " throw Rcpp::internal::InterruptedException();"
1706-
<< std::endl;
17071703
ostr() << " if (__result.inherits(\"try-error\"))"
17081704
<< std::endl
17091705
<< " throw Rcpp::exception(as<std::string>("
@@ -2226,13 +2222,7 @@ namespace attributes {
22262222
}
22272223
ostr << "));" << std::endl;
22282224
ostr << " }" << std::endl;
2229-
ostr << " Rboolean __isInterrupt = Rf_inherits(__result, \"interrupted-error\");"
2230-
<< std::endl
2231-
<< " if (__isInterrupt) {" << std::endl
2232-
<< " UNPROTECT(1);" << std::endl
2233-
<< " Rcpp::internal::jumpToTop();" << std::endl
2234-
<< " }" << std::endl
2235-
<< " Rboolean __isError = Rf_inherits(__result, \"try-error\");"
2225+
ostr << " Rboolean __isError = Rf_inherits(__result, \"try-error\");"
22362226
<< std::endl
22372227
<< " if (__isError) {" << std::endl
22382228
<< " SEXP __msgSEXP = Rf_asChar(__result);" << std::endl

0 commit comments

Comments
 (0)