Skip to content

Commit a063741

Browse files
author
ripley
committed
Rboolean -> bool
git-svn-id: https://svn.r-project.org/R/trunk@87908 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 3998114 commit a063741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/library/tools/src/pdscan.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
static SEXP package_dependencies_scan_one(SEXP this) {
2626
SEXP y;
27-
Rboolean save;
27+
bool save;
2828
int size = 256, i, j, nb = 0, ne = 0, u, v, w;
2929
int *beg, *end;
3030
const char *s;
@@ -41,7 +41,7 @@ static SEXP package_dependencies_scan_one(SEXP this) {
4141
e = getCharCE(this);
4242
s = CHAR(this);
4343
i = 0;
44-
save = FALSE;
44+
save = false;
4545
/* A package dependency spec is a comma-separated list of package
4646
names optionally followed by a comment in parentheses specifying
4747
a version requirement (see "Package Dependencies" in WRE).
@@ -57,7 +57,7 @@ static SEXP package_dependencies_scan_one(SEXP this) {
5757
while((c = *s++) != '\0') {
5858
if(save) {
5959
if(!isalnum(c) && (c != '.')) {
60-
save = FALSE;
60+
save = false;
6161
if((q == 'R') && (beg[ne] == (i - 1)))
6262
nb--;
6363
else {
@@ -67,7 +67,7 @@ static SEXP package_dependencies_scan_one(SEXP this) {
6767
}
6868
} else {
6969
if(isalpha(c)) {
70-
save = TRUE;
70+
save = true;
7171
q = c;
7272
if(nb >= size) {
7373
if(size > INT_MAX / 2)

0 commit comments

Comments
 (0)