Skip to content

Commit

Permalink
Rename connect->connect_ in C code
Browse files Browse the repository at this point in the history
  • Loading branch information
mortensorensen committed Jan 23, 2017
1 parent ea74ee1 commit ab1d785
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RUN mkdir -p $QIB \
&& apt-get update && apt-get install -y \
wget \
unzip \
vim \

# For running 32-bit on 64-bit system
build-essential \
gcc-multilib \
g++-multilib \
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ NB: The program is only tested on MacOS and Ubuntu Linux.
# Running
Running the following command will dynamically link the QIB functions into the `.ib` namespace:
````
.ib:(`:build/Debug/qib.0.0.1 2:(`LoadLibrary;1))`
.ib:(`:bin/qib.0.0.1 2:(`LoadLibrary;1))`
````
The program must have the function `.ib.onrecv` defined which should take two arguments; function name and arguments, e.g.:
````
Expand Down
6 changes: 3 additions & 3 deletions src/qib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ K LoadLibrary(K ignore)
auto dict = createDictionary(std::map<std::string, K> {
{ "version", dl((V*) version, 1) },
// EPosixClientSocket
{ "connect", dl((V*) connect, 3) },
{ "connect", dl((V*) connect_, 3) },
{ "disconnect", dl((V*) disconnect, 1) },
{ "isConnected", dl((V*) isConnected, 1) },
// EClientSocketBase
Expand All @@ -52,7 +52,7 @@ K LoadLibrary(K ignore)
{ "cancelCalculateImpliedVolatility", dl((V*) cancelCalculateImpliedVolatility, 1) },
{ "cancelCalculateOptionPrice", dl((V*) cancelCalculateOptionPrice, 1) },
{ "cancelFundamentalData", dl((V*) cancelFundamentalData, 1) },
{ "cancelHistoricalData", dl((V*) cancelHistoricalData, 1) },
{ "cancelHistoricalData", dl((V*) cancelHistoricalData, 1) },
{ "cancelMktData", dl((V*) cancelMktData, 1) },
{ "cancelMktDepth", dl((V*) cancelMktDepth, 1) },
{ "cancelNewsBulletins", dl((V*) cancelNewsBulletins,1) },
Expand Down Expand Up @@ -108,7 +108,7 @@ K eventLoop(I fd)
// EPosixClientSocket
///////////////////////

K connect(K host, K port, K clientId)
K connect_(K host, K port, K clientId)
{
Q(host->t != -KS || port->t != -KJ || clientId->t != -KJ, "type");

Expand Down
2 changes: 1 addition & 1 deletion src/qib.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ extern "C"
{
K version(K ignore);
K LoadLibrary(K ignore);
K connect(K host, K port, K clientId);
K connect_(K host, K port, K clientId);
K disconnect(K ignore);
K isConnected(K ignore);

Expand Down

0 comments on commit ab1d785

Please sign in to comment.