Browse Source

Test

etomic
jl777 7 years ago
parent
commit
55c74fc0e4
  1. 2
      .gitignore
  2. BIN
      iguana/exchanges/.Makefile.swp
  3. 12
      iguana/exchanges/LP_network.c
  4. 2
      iguana/exchanges/Makefile

2
.gitignore

@ -487,3 +487,5 @@ iguana/confs/97f18454bb61e9eb7a827cfbefe42fbf7ae2832dc74c4812bdaef8bcf5c10474
iguana/DB/PRICES/.tmpmarker iguana/DB/PRICES/.tmpmarker
iguana/DB/KMD/0/.tmpmarker iguana/DB/KMD/0/.tmpmarker
*.swp

BIN
iguana/exchanges/.Makefile.swp

Binary file not shown.

12
iguana/exchanges/LP_network.c

@ -72,7 +72,6 @@ int32_t nn_send(int s, const void *buf, size_t len, int flags)
return(0); return(0);
} }
int32_t nn_recv(int s, void *buf, size_t len, int flags) int32_t nn_recv(int s, void *buf, size_t len, int flags)
{ {
return(0); return(0);
@ -83,6 +82,17 @@ int32_t nn_poll(struct nn_pollfd *fds, int nfds, int timeout)
return(0); return(0);
} }
int32_t nn_errno(void)
{
return(-11);
}
const char *nn_strerror(int errnum)
{
return("nanomsg error");
}
#endif #endif
char *nanomsg_transportname(int32_t bindflag,char *str,char *ipaddr,uint16_t port) char *nanomsg_transportname(int32_t bindflag,char *str,char *ipaddr,uint16_t port)

2
iguana/exchanges/Makefile

@ -6,5 +6,5 @@
#emcc -s ASSERTIONS=1 -s ASYNCIFY=1 -s TOTAL_MEMORY=134217728 --preload-file coins.json -D__PNACL -DFROM_JS -O2 -I../includes -I../crypto777 -o /var/www/html/index.html exchanges/mm.c $(CRYPTO777_SRCS) mini-gmp.c secp256k1/src/secp256k1.c -lm -lc #emcc -s ASSERTIONS=1 -s ASYNCIFY=1 -s TOTAL_MEMORY=134217728 --preload-file coins.json -D__PNACL -DFROM_JS -O2 -I../includes -I../crypto777 -o /var/www/html/index.html exchanges/mm.c $(CRYPTO777_SRCS) mini-gmp.c secp256k1/src/secp256k1.c -lm -lc
all: all:
emcc -s ABORTING_MALLOC=0 -s ASSERTIONS=1 -s ASYNCIFY=1 -s TOTAL_MEMORY=134217728 --preload-file coins.json -DFROM_JS -O2 -I../includes -I../crypto777 -s PTHREAD_POOL_SIZE=8 -s USE_PTHREADS=1 -o /var/www/html/index.html exchanges/mm.c ../crypto777/*.c ../crypto777/jpeg/*.c ../crypto777/jpeg/unix/*.c mini-gmp.c secp256k1/src/secp256k1.c -lm emcc -s ABORTING_MALLOC=0 -s ASSERTIONS=1 -s ASYNCIFY=1 -s TOTAL_MEMORY=536870912 --preload-file coins.json -DFROM_JS -O2 -I../includes -I../crypto777 -s PTHREAD_POOL_SIZE=8 -s USE_PTHREADS=1 -o /var/www/html/index.html exchanges/mm.c ../crypto777/*.c ../crypto777/jpeg/*.c ../crypto777/jpeg/unix/*.c mini-gmp.c secp256k1/src/secp256k1.c -lm

Loading…
Cancel
Save