Skip to content

Commit

Permalink
removes unresolvedSymbol
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Oct 25, 2023
1 parent 974aca6 commit 3513f42
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nanonext
Type: Package
Title: NNG (Nanomsg Next Gen) Lightweight Messaging Library
Version: 0.10.2.9009
Version: 0.10.2.9010
Description: R binding for NNG (Nanomsg Next Gen), a successor to ZeroMQ. NNG is
a socket library providing high-performance scalability protocols, a
cross-platform standard for messaging and communications. Serves as a
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# nanonext 0.10.2.9009 (development)
# nanonext 0.10.2.9010 (development)

#### New Features

Expand Down
2 changes: 1 addition & 1 deletion src/aio.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ SEXP rnng_unresolved(SEXP x) {
SEXP value = Rf_findVarInFrame(x, nano_DataSymbol);
if (value == R_UnboundValue)
value = Rf_findVarInFrame(x, nano_ResultSymbol);
xc = value == nano_unresolved || value == nano_UnresSymbol || (TYPEOF(value) == ENVSXP && Rf_inherits(value, "unresolvedValue"));
xc = TYPEOF(value) == ENVSXP ? Rf_inherits(value, "unresolvedValue") : value == nano_unresolved;
break;
case LGLSXP:
xc = x == nano_unresolved;
Expand Down
2 changes: 0 additions & 2 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ SEXP nano_StatusSymbol;
SEXP nano_StreamSymbol;
SEXP nano_TextframesSymbol;
SEXP nano_TlsSymbol;
SEXP nano_UnresSymbol;
SEXP nano_UrlSymbol;
SEXP nano_ValueSymbol;

Expand Down Expand Up @@ -81,7 +80,6 @@ static void RegisterSymbols(void) {
nano_StreamSymbol = Rf_install("stream");
nano_TextframesSymbol = Rf_install("textframes");
nano_TlsSymbol = Rf_install("tls");
nano_UnresSymbol = Rf_install(" unresolved ");
nano_UrlSymbol = Rf_install("url");
nano_ValueSymbol = Rf_install("value");
}
Expand Down
1 change: 0 additions & 1 deletion src/nanonext.h
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ extern SEXP nano_StatusSymbol;
extern SEXP nano_StreamSymbol;
extern SEXP nano_TextframesSymbol;
extern SEXP nano_TlsSymbol;
extern SEXP nano_UnresSymbol;
extern SEXP nano_UrlSymbol;
extern SEXP nano_ValueSymbol;

Expand Down
1 change: 0 additions & 1 deletion tests/tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,6 @@ nanotesterr(start(fakelist), "valid Listener")
nanotesterr(close(fakelist), "valid Listener")
unres <- `class<-`(NA, "unresolvedValue")
nanotest(!unresolved(unres))
nanotest(unresolved(`[[<-`(new.env(), "data", as.symbol(" unresolved "))))
nanotestp(unres)
nanotest(identical(call_aio("a"), "a"))
nanotestn(stop_aio("a"))
Expand Down

0 comments on commit 3513f42

Please sign in to comment.