name
string
code
string
asm
string
file
string
udp_pipe_recv_cancel
static void udp_pipe_recv_cancel(nni_aio *aio, void *arg, int rv) { udp_pipe *p = arg; udp_ep *ep = p->ep; nni_mtx_lock(&ep->mtx); if (!nni_aio_list_active(aio)) { nni_mtx_unlock(&ep->mtx); return; } nni_aio_list_remove(aio); nni_mtx_unlock(&ep->mtx); nni_aio_finish_error(aio, rv); }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rdi addq $0x8, %rdi callq 0x1e940 movq -0x8(%rbp), %rdi callq 0x118a0 cmpl $0x0...
/nanomsg[P]nng/src/sp/transport/udp/udp.c
udp_pipe_get_remaddr
static int udp_pipe_get_remaddr(void *arg, void *v, size_t *szp, nni_type t) { udp_pipe *p = arg; udp_ep *ep = p->ep; int rv; nni_mtx_lock(&ep->mtx); rv = nni_copyout_sockaddr(&p->peer_addr, v, szp, t); nni_mtx_unlock(&ep->mtx); return (rv); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi addq $0x8, %rdi callq 0x1e940 movq -0x28(%rbp), %rdi ...
/nanomsg[P]nng/src/sp/transport/udp/udp.c
wstran_dialer_connect
static void wstran_dialer_connect(void *arg, nni_aio *aio) { ws_dialer *d = arg; nni_aio_reset(aio); nni_mtx_lock(&d->mtx); if (!nni_aio_start(aio, wstran_dialer_cancel, d)) { nni_mtx_unlock(&d->mtx); return; } NNI_ASSERT(nni_list_empty(&d->aios)); d->started = true; nni_list_append(&d->aios, aio); nng_s...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x111b0 movq -0x18(%rbp), %rdi addq $0x20, %rdi callq 0x1e940 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx leaq 0x403(%rip), %rsi # 0x37880 callq 0x11...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_dialer_setopt
static int wstran_dialer_setopt( void *arg, const char *name, const void *buf, size_t sz, nni_type t) { ws_dialer *d = arg; int rv; rv = nni_stream_dialer_set(d->dialer, name, buf, sz, t); if (rv == NNG_ENOTSUP) { rv = nni_setopt(wstran_ep_opts, name, d, buf, sz, t); } return (rv); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0x210(%rax), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx mo...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_dialer_cancel
static void wstran_dialer_cancel(nni_aio *aio, void *arg, int rv) { ws_dialer *d = arg; nni_mtx_lock(&d->mtx); if (nni_aio_list_active(aio)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, rv); } nni_mtx_unlock(&d->mtx); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi addq $0x20, %rdi callq 0x1e940 movq -0x8(%rbp), %rdi callq 0x118a0 cmpl $0x0, %eax je 0x378cb movq -0x8(%rbp), %rdi callq 0x11870 movq -0x8...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_listener_bind
static int wstran_listener_bind(void *arg, nng_url *url) { ws_listener *l = arg; int rv; if ((rv = nng_stream_listener_listen(l->listener)) == 0) { int port; nng_stream_listener_get_int( l->listener, NNG_OPT_TCP_BOUND_PORT, &port); url->u_port = (uint32_t) port; } return (rv); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movq 0x210(%rax), %rdi callq 0x3f6b0 movl %eax, -0x1c(%rbp) cmpl $0x0, %eax jne 0x37ad5 movq -0x18(%rbp), %rax movq 0x210(%rax), %rdi leaq 0x1da62(%rip), %rsi ...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_listener_close
static void wstran_listener_close(void *arg) { ws_listener *l = arg; ws_pipe *p; nni_mtx_lock(&l->mtx); if (!l->closed) { l->closed = true; nni_aio_close(&l->accaio); NNI_LIST_FOREACH (&l->wait_pipes, p) { nni_pipe_close(p->npipe); } nng_stream_listener_close(l->listener); } nni_mtx_unlock(&l->m...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0x20, %rdi callq 0x1e940 movq -0x10(%rbp), %rax testb $0x1, 0x239(%rax) jne 0x37c3b movq -0x10(%rbp), %rax movb $0x1, 0x239(%rax) movq -0x10(%rbp), %rdi addq $0x48, %rdi callq 0x10...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_listener_set
static int wstran_listener_set( void *arg, const char *name, const void *buf, size_t sz, nni_type t) { ws_listener *l = arg; int rv; rv = nni_stream_listener_set(l->listener, name, buf, sz, t); if (rv == NNG_ENOTSUP) { rv = nni_setopt(wstran_ep_opts, name, l, buf, sz, t); } return (rv); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq 0x210(%rax), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx mo...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_listener_match
static void wstran_listener_match(ws_listener *l) { nni_aio *uaio; ws_pipe *p; if (((uaio = nni_list_first(&l->aios)) == NULL) || ((p = nni_list_first(&l->wait_pipes)) == NULL)) { return; } nni_list_remove(&l->wait_pipes, p); nni_aio_list_remove(uaio); nni_aio_set_output(uaio, 0, p->npipe); nni_aio_fin...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $0x8, %rdi callq 0x14d60 movq %rax, -0x10(%rbp) cmpq $0x0, %rax je 0x37f9d movq -0x8(%rbp), %rdi addq $0x220, %rdi # imm = 0x220 callq 0x14d60 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x37f9f jmp 0x37fe1 movq -0x8(...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
wstran_pipe_send
static void wstran_pipe_send(void *arg, nni_aio *aio) { ws_pipe *p = arg; nni_aio_reset(aio); nni_mtx_lock(&p->mtx); if (!nni_aio_start(aio, wstran_pipe_send_cancel, p)) { nni_mtx_unlock(&p->mtx); return; } p->user_txaio = aio; nni_aio_set_msg(&p->txaio, nni_aio_get_msg(aio)); nni_aio_set_msg(aio, NULL); ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x111b0 movq -0x18(%rbp), %rdi callq 0x1e940 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx leaq 0x337(%rip), %rsi # 0x384d0 callq 0x11220 testb $0x1, %...
/nanomsg[P]nng/src/sp/transport/ws/websocket.c
ws_dialer_set_header
static int ws_dialer_set_header( nni_ws_dialer *d, const char *name, const void *buf, size_t sz, nni_type t) { int rv; name += strlen(NNG_OPT_WS_HEADER); if ((rv = ws_check_string(buf, sz, t)) == 0) { nni_mtx_lock(&d->mtx); rv = ws_set_header(&d->headers, name, buf); nni_mtx_unlock(&d->mtx); } return (rv...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movl %r8d, -0x24(%rbp) movq -0x10(%rbp), %rax addq $0xa, %rax movq %rax, -0x10(%rbp) movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi movl -0x24(%rbp), %edx callq 0x3d550 movl %eax, -0x28(...
/nanomsg[P]nng/src/supplemental/websocket/websocket.c
tcp_dialer_alloc
static int tcp_dialer_alloc(tcp_dialer **dp) { int rv; tcp_dialer *d; if ((d = NNI_ALLOC_STRUCT(d)) == NULL) { return (NNG_ENOMEM); } nni_mtx_init(&d->mtx); nni_aio_list_init(&d->conaios); nni_aio_init(&d->resaio, tcp_dial_res_cb, d); nni_aio_init(&d->conaio, tcp_dial_con_cb, d); if ((rv = nni_tcp...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl $0x5d0, %edi # imm = 0x5D0 callq 0x207c0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x4036c movl $0x2, -0x4(%rbp) jmp 0x40456 movq -0x20(%rbp), %rdi addq $0x588, %rdi # imm = 0x588 callq 0x1e900 movq -0x20(%rbp), %rdi addq $0x...
/nanomsg[P]nng/src/core/tcp.c
ipc_dialer_dial
void ipc_dialer_dial(void *arg, nni_aio *aio) { ipc_dialer *d = arg; nni_ipc_conn *c; struct sockaddr_storage ss; size_t len; int fd; int rv; nni_aio_reset(aio); if (((len = nni_posix_nn2sockaddr(&ss, &d->sa)) == 0) || (ss.ss_...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x111b0 movq -0x18(%rbp), %rsi addq $0x88, %rsi leaq -0xa0(%rbp), %rdi callq 0x21cb0 movq %rax, -0xa8(%rbp) cmpq $0x0, %rax je 0x40d64 movzwl -0xa0(%rbp), %e...
/nanomsg[P]nng/src/platform/posix/posix_ipcdial.c
http_sconn_close
static void http_sconn_close(http_sconn *sc) { nni_http_conn *conn; if (nni_atomic_flag_test_and_set(&sc->closed)) { return; } NNI_ASSERT(!sc->finished); nni_aio_close(&sc->rxaio); nni_aio_close(&sc->txaio); nni_aio_close(&sc->txdataio); nni_aio_close(&sc->cbaio); if ((conn = sc->conn) != NULL) { nni_ht...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $0x770, %rdi # imm = 0x770 callq 0x20820 testb $0x1, %al jne 0x4cda2 jmp 0x4cda7 jmp 0x4ce3a movq -0x8(%rbp), %rax testb $0x1, 0x31(%rax) je 0x4cdd2 leaq 0x6400(%rip), %rdi # 0x531b8 leaq 0x99e5(%rip), %rsi ...
/nanomsg[P]nng/src/supplemental/http/http_server.c
plat_walker
static int plat_walker(const char *name, void *arg) { struct walkdata *w = arg; int rv; rv = w->fn(name, w->arg); switch (rv) { case NNI_FILE_WALK_CONTINUE: return (NNI_PLAT_FILE_WALK_CONTINUE); case NNI_FILE_WALK_STOP: return (NNI_PLAT_FILE_WALK_STOP); case NNI_FILE_WALK_PRUNE_CHILD: return ...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rdi movq (%rcx), %rax movq 0x8(%rcx), %rsi callq *%rax movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movq %rax, -0x30(%rbp) subq $0x3, %rax ja...
/nanomsg[P]nng/src/core/file.c
nni_file_lock
int nni_file_lock(const char *path, nni_file_lockh **hp) { nni_file_lockh *h; int rv; if ((h = NNI_ALLOC_STRUCT(h)) == NULL) { return (NNG_ENOMEM); } rv = nni_plat_file_lock(path, &h->lk); if (rv != 0) { NNI_FREE_STRUCT(h); return (rv); } *hp = h; return (0); }
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl $0x4, %edi callq 0x207c0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x4e88d movl $0x2, -0x4(%rbp) jmp 0x4e8cb movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x4f010 movl %eax, -0x24(%rbp) cmpl $0x0, -0x24(%rbp) je 0x4e8b...
/nanomsg[P]nng/src/core/file.c
nni_plat_file_put
int nni_plat_file_put(const char *name, const void *data, size_t len) { FILE *f; int rv = 0; // It is possible that the name contains a directory path // that does not exist. In this case we try to create the // entire tree. if (strchr(name, '/') != NULL) { if ((rv = nni_plat_make_parent_dirs(name)) != 0) {...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0x2c(%rbp) movq -0x10(%rbp), %rdi movl $0x2f, %esi callq 0x84f0 cmpq $0x0, %rax je 0x4e95a movq -0x10(%rbp), %rdi callq 0x4e9e0 movl %eax, -0x2c(%rbp) cmpl $0x0, %eax je 0x4e958 movl -0x2c(%rbp),...
/nanomsg[P]nng/src/platform/posix/posix_file.c
nni_plat_make_parent_dirs
static int nni_plat_make_parent_dirs(const char *path) { char *dup; char *p; int rv; // creates everything up until the last component. if ((dup = nni_strdup(path)) == NULL) { return (NNG_ENOMEM); } p = dup; while ((p = strchr(p, '/')) != NULL) { if (p != dup) { *p = '\0'; rv = mkdir(dup, S_IRWXU);...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x1dd00 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x4ea0b movl $0x2, -0x4(%rbp) jmp 0x4eab7 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi movl $0x2f, %esi callq 0x84f0 movq %rax, -0x20(%rbp) cmpq $0x0...
/nanomsg[P]nng/src/platform/posix/posix_file.c
nni_plat_file_get
int nni_plat_file_get(const char *name, void **datap, size_t *lenp) { FILE * f; struct stat st; int rv = 0; size_t len; void * data; if ((f = fopen(name, "rb")) == NULL) { return (nni_plat_errno(errno)); } if (stat(name, &st) != 0) { rv = nni_plat_errno(errno); (void) fclose(f); ...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl $0x0, -0xbc(%rbp) movq -0x10(%rbp), %rdi leaq 0x80fb(%rip), %rsi # 0x56be7 callq 0x8250 movq %rax, -0x28(%rbp) cmpq $0x0, %rax jne 0x4eb0f callq 0x8570 movl (%rax), %edi callq 0x20fd0 movl %eax, -0...
/nanomsg[P]nng/src/platform/posix/posix_file.c
nni_plat_file_delete
int nni_plat_file_delete(const char *name) { if (rmdir(name) == 0) { return (0); } if ((errno == ENOTDIR) && (unlink(name) == 0)) { return (0); } if (errno == ENOENT) { return (0); } return (nni_plat_errno(errno)); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi callq 0x8270 cmpl $0x0, %eax jne 0x4ec43 movl $0x0, -0x4(%rbp) jmp 0x4ec86 callq 0x8570 cmpl $0x14, (%rax) jne 0x4ec64 movq -0x10(%rbp), %rdi callq 0x8260 cmpl $0x0, %eax jne 0x4ec64 movl $0x0, -0x4(%rbp) jmp 0x4ec86 callq 0x8570 ...
/nanomsg[P]nng/src/platform/posix/posix_file.c
nni_plat_file_type
int nni_plat_file_type(const char *name, int *typep) { struct stat sbuf; if (stat(name, &sbuf) != 0) { return (nni_plat_errno(errno)); } switch (sbuf.st_mode & S_IFMT) { case S_IFREG: *typep = NNI_PLAT_FILE_TYPE_FILE; break; case S_IFDIR: *typep = NNI_PLAT_FILE_TYPE_DIR; break; default: *typep = NNI...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi leaq -0xa8(%rbp), %rsi callq 0x8770 cmpl $0x0, %eax je 0x4ecc9 callq 0x8570 movl (%rax), %edi callq 0x20fd0 movl %eax, -0x4(%rbp) jmp 0x4ed1b movl -0x90(%rbp), %eax andl $0xf000, %eax # imm = 0xF00...
/nanomsg[P]nng/src/platform/posix/posix_file.c
nni_plat_file_walk_inner
static int nni_plat_file_walk_inner(const char *name, nni_plat_file_walker walkfn, void *arg, int flags, bool *stop) { DIR *dir; if ((dir = opendir(name)) == NULL) { return (nni_plat_errno(errno)); } for (;;) { int rv; struct dirent *ent; struct stat sbuf; char * path; int ...
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq -0x10(%rbp), %rdi callq 0x8350 movq %rax, -0x38(%rbp) cmpq $0x0, %rax jne 0x4edb5 callq 0x8570 movl (%rax), %edi callq 0x20fd0 movl %eax, -0x4(%rbp) jmp 0x4e...
/nanomsg[P]nng/src/platform/posix/posix_file.c
ipc_get_peer_pid
static int ipc_get_peer_pid(void *arg, void *buf, size_t *szp, nni_type t) { ipc_conn *c = arg; int rv; int ignore; int id = 0; if ((rv = nni_posix_peerid(nni_posix_pfd_fd(&c->pfd), &ignore, &ignore, &id, &ignore)) != 0) { return (rv); } if (id == -1) { // NB: -1 is not a legal p...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x3c(%rbp) movq -0x30(%rbp), %rdi addq $0x38, %rdi callq 0x23720 movl %eax, %edi leaq -0x38(%rbp), %r8 leaq -0x3c(%rbp), %rcx ...
/nanomsg[P]nng/src/platform/posix/posix_ipcconn.c
ipc_get_peer_gid
static int ipc_get_peer_gid(void *arg, void *buf, size_t *szp, nni_type t) { ipc_conn *c = arg; int rv; int ignore; int id = 0; if ((rv = nni_posix_peerid(nni_posix_pfd_fd(&c->pfd), &ignore, &id, &ignore, &ignore)) != 0) { return (rv); } return (nni_copyout_int(id, buf, szp, t)); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x3c(%rbp) movq -0x30(%rbp), %rdi addq $0x38, %rdi callq 0x23720 movl %eax, %edi leaq -0x38(%rbp), %r8 leaq -0x3c(%rbp), %rdx ...
/nanomsg[P]nng/src/platform/posix/posix_ipcconn.c
ipc_error
static void ipc_error(void *arg, int err) { ipc_conn *c = arg; nni_aio *aio; nni_mtx_lock(&c->mtx); while (((aio = nni_list_first(&c->readq)) != NULL) || ((aio = nni_list_first(&c->writeq)) != NULL)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, err); } nni_posix_pfd_close(&c->pfd); nni_mtx_un...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0xa8, %rdi callq 0x1e940 movq -0x18(%rbp), %rdi addq $0x70, %rdi callq 0x14d60 movq %rax, %rcx movq %rcx, -0x20(%rbp) movb $0x1, %al cmpq $0x0, %rcx movb %al,...
/nanomsg[P]nng/src/platform/posix/posix_ipcconn.c
nni_sfd_conn_alloc
int nni_sfd_conn_alloc(nni_sfd_conn **cp, int fd) { nni_sfd_conn *c; if ((c = NNI_ALLOC_STRUCT(c)) == NULL) { return (NNG_ENOMEM); } nni_posix_pfd_init(&c->pfd, fd, sfd_cb, c); c->closed = false; c->fd = fd; nni_mtx_init(&c->mtx); nni_aio_list_init(&c->readq); nni_aio_list_init(&c->writeq); c->stream...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl $0xe0, %edi callq 0x207c0 movq %rax, -0x20(%rbp) cmpq $0x0, %rax jne 0x5000f movl $0x2, -0x4(%rbp) jmp 0x500e6 movq -0x20(%rbp), %rdi addq $0x38, %rdi movl -0x14(%rbp), %esi movq -0x20(%rbp), %rcx leaq 0xcb(%rip), %rdx ...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_close
static void sfd_close(void *arg) { nni_sfd_conn *c = arg; nni_mtx_lock(&c->mtx); if (!c->closed) { nni_aio *aio; c->closed = true; while (((aio = nni_list_first(&c->readq)) != NULL) || ((aio = nni_list_first(&c->writeq)) != NULL)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, NNG_ECLOSED); ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0xb0, %rdi callq 0x1e940 movq -0x10(%rbp), %rax testb $0x1, 0xa8(%rax) jne 0x502b8 movq -0x10(%rbp), %rax movb $0x1, 0xa8(%rax) movq -0x10(%rbp), %rdi addq $0x78, %rdi callq 0x14d6...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_send
static void sfd_send(void *arg, nni_aio *aio) { nni_sfd_conn *c = arg; nni_mtx_lock(&c->mtx); if (!nni_aio_start(aio, sfd_cancel, c)) { nni_mtx_unlock(&c->mtx); return; } nni_aio_list_append(&c->writeq, aio); if (nni_list_first(&c->writeq) == aio) { sfd_dowrite(c); // If we are still the first thing on...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0xb0, %rdi callq 0x1e940 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx leaq 0x619(%rip), %rsi # 0x50a10 callq 0x11220 testb $0x1, %al jne 0x50412 movq ...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_doread
static void sfd_doread(nni_sfd_conn *c) { nni_aio *aio; int fd = c->fd; if (c->closed) { return; } while ((aio = nni_list_first(&c->readq)) != NULL) { unsigned i; int n; int niov; unsigned naiov; nni_iov *aiov; struct iovec iovec[16]; nni_aio_get_iov(aio, &naio...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x70(%rax), %eax movl %eax, -0x14(%rbp) movq -0x8(%rbp), %rax testb $0x1, 0xa8(%rax) je 0x5062b jmp 0x507e1 jmp 0x5062d movq -0x8(%rbp), %rdi addq $0x78, %rdi callq 0x14d60 movq %rax, -0x10(%rbp) cmpq ...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_cancel
static void sfd_cancel(nni_aio *aio, void *arg, int rv) { nni_sfd_conn *c = arg; nni_mtx_lock(&c->mtx); if (nni_aio_list_active(aio)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, rv); } nni_mtx_unlock(&c->mtx); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi addq $0xb0, %rdi callq 0x1e940 movq -0x8(%rbp), %rdi callq 0x118a0 cmpl $0x0, %eax je 0x50a5e movq -0x8(%rbp), %rdi callq 0x11870 movq -0x8...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_get_peer_uid
static int sfd_get_peer_uid(void *arg, void *buf, size_t *szp, nni_type t) { nni_sfd_conn *c = arg; int rv; int ignore; int id = 0; rv = nni_posix_peerid(c->fd, &id, &ignore, &ignore, &ignore); if (rv != 0) { return (rv); } return (nni_copyout_int(id, buf, szp, t)); }
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x3c(%rbp) movq -0x30(%rbp), %rax movl 0x70(%rax), %edi leaq -0x3c(%rbp), %rsi leaq -0x38(%rbp), %r8 movq %r8, %rdx movq %r8, ...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
sfd_get_peer_zoneid
static int sfd_get_peer_zoneid(void *arg, void *buf, size_t *szp, nni_type t) { nni_sfd_conn *c = arg; int rv; int ignore; int id = 0; rv = nni_posix_peerid(c->fd, &ignore, &ignore, &ignore, &id); if (rv != 0) { return (rv); } if (id == -1) { // NB: -1 is not a legal zone id (...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x0, -0x3c(%rbp) movq -0x30(%rbp), %rax movl 0x70(%rax), %edi leaq -0x38(%rbp), %rcx leaq -0x3c(%rbp), %r8 movq %rcx, %rsi movq %rcx...
/nanomsg[P]nng/src/platform/posix/posix_sockfd.c
tcp_cb
static void tcp_cb(void *arg, unsigned events) { nni_tcp_conn *c = arg; if (c->dial_aio != NULL) { nni_posix_tcp_dial_cb(c, events); return; } if ((events & (NNI_POLL_HUP | NNI_POLL_ERR | NNI_POLL_INVAL)) != 0) { tcp_error(c, NNG_ECONNSHUT); return; } nni_mtx_lock(&c->mtx); if ((events & NNI_POLL_IN) !=...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax cmpq $0x0, 0xd0(%rax) je 0x50e06 movq -0x18(%rbp), %rdi movl -0xc(%rbp), %esi callq 0x428f0 jmp 0x50ecf movl -0xc(%rbp), %eax andl $0x38, %eax cmpl $0x0, %eax je 0x...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
tcp_recv
static void tcp_recv(void *arg, nni_aio *aio) { nni_tcp_conn *c = arg; nni_aio_reset(aio); nni_mtx_lock(&c->mtx); if (!nni_aio_start(aio, tcp_cancel, c)) { nni_mtx_unlock(&c->mtx); return; } nni_aio_list_append(&c->readq, aio); // If we are only job on the list, go ahead and try to do an // immediate tran...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x10(%rbp), %rdi callq 0x111b0 movq -0x18(%rbp), %rdi addq $0xa8, %rdi callq 0x1e940 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx leaq 0x7b0(%rip), %rsi # 0x517f0 callq 0x11...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
tcp_error
static void tcp_error(void *arg, int err) { nni_tcp_conn *c = arg; nni_aio *aio; nni_mtx_lock(&c->mtx); while (((aio = nni_list_first(&c->readq)) != NULL) || ((aio = nni_list_first(&c->writeq)) != NULL)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, err); } nni_posix_pfd_close(&c->pfd); nn...
pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rdi addq $0xa8, %rdi callq 0x1e940 movq -0x18(%rbp), %rdi addq $0x70, %rdi callq 0x14d60 movq %rax, %rcx movq %rcx, -0x20(%rbp) movb $0x1, %al cmpq $0x0, %rcx movb %al,...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
tcp_cancel
static void tcp_cancel(nni_aio *aio, void *arg, int rv) { nni_tcp_conn *c = arg; nni_mtx_lock(&c->mtx); if (nni_aio_list_active(aio)) { nni_aio_list_remove(aio); nni_aio_finish_error(aio, rv); } nni_mtx_unlock(&c->mtx); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi addq $0xa8, %rdi callq 0x1e940 movq -0x8(%rbp), %rdi callq 0x118a0 cmpl $0x0, %eax je 0x5183e movq -0x8(%rbp), %rdi callq 0x11870 movq -0x8...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
tcp_get_sockname
static int tcp_get_sockname(void *arg, void *buf, size_t *szp, nni_type t) { nni_tcp_conn *c = arg; struct sockaddr_storage ss; socklen_t len = sizeof(ss); int fd = nni_posix_pfd_fd(&c->pfd); int rv; nng_sockaddr sa; if (getsockname(fd,...
pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl $0x80, -0xb4(%rbp) movq -0x30(%rbp), %rdi addq $0x38, %rdi callq 0x23720 movl %eax, -0xb8(%rbp) movl -0xb8(...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
tcp_get_keepalive
static int tcp_get_keepalive(void *arg, void *buf, size_t *szp, nni_type t) { nni_tcp_conn *c = arg; int fd = nni_posix_pfd_fd(&c->pfd); int val = 0; socklen_t valsz = sizeof(val); if (getsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &val, &valsz) != 0) { return (nni_plat_errno(errno));...
pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rdi addq $0x38, %rdi callq 0x23720 movl %eax, -0x34(%rbp) movl $0x0, -0x38(%rbp) movl $0x4, -0x3c(%rbp) movl -0x34(%rbp...
/nanomsg[P]nng/src/platform/posix/posix_tcpconn.c
doctest::detail::$_0::$_0()
DOCTEST_THREAD_LOCAL class { std::vector<std::streampos> stack; std::stringstream ss; public: std::ostream* push() { stack.push_back(ss.tellp()); return &ss; }
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x23ff0 movq 0x8(%rsp), %rdi addq $0x18, %rdi callq 0x7390 jmp 0x8198 addq $0x28, %rsp retq movq 0x8(%rsp), %rdi movq %rax, %rcx movl %edx, %eax movq %rcx, 0x18(%rsp) movl %eax, 0x14(%rsp) callq 0x24000 movq 0x18(%rsp), %rdi callq 0...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::assertString(doctest::assertType::Enum)
const char* assertString(assertType::Enum at) { DOCTEST_MSVC_SUPPRESS_WARNING_WITH_PUSH(4062) // enum 'x' in switch of enum 'y' is not handled switch(at) { //!OCLINT missing default in switch statements case assertType::DT_WARN : return "WARN"; case assertType::DT_CHECK ...
movl %edi, -0xc(%rsp) movl -0xc(%rsp), %eax movl %eax, -0x10(%rsp) subl $0x9, %eax je 0x938a jmp 0x90b7 movl -0x10(%rsp), %eax subl $0xa, %eax je 0x939b jmp 0x90c6 movl -0x10(%rsp), %eax subl $0xc, %eax je 0x93ac jmp 0x90d5 movl -0x10(%rsp), %eax subl $0x11, %eax je 0x93f0 jmp 0x90e4 movl -0x10(%rsp), %eax subl $0x12, ...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::toString(char)
DOCTEST_TO_STRING_OVERLOAD(char, "%d") DOCTEST_TO_STRING_OVERLOAD(char signed, "%d") DOCTEST_TO_STRING_OVERLOAD(char unsigned, "%u") DOCTEST_TO_STRING_OVERLOAD(int short, "%d") DOCTEST_TO_STRING_OVERLOAD(int short unsigned, "%u") DOCTEST_TO_STRING_OVERLOAD(int, "%d") DOCTEST_TO_STRING_OVERLOAD(unsigned, "%u") DOCTEST_T...
subq $0x68, %rsp movq %rdi, (%rsp) movb %sil, %al movq %rdi, %rcx movq %rcx, 0x8(%rsp) movq %rdi, 0x60(%rsp) movb %al, 0x5f(%rsp) leaq 0x10(%rsp), %rdi movsbl 0x5f(%rsp), %edx leaq 0x3c4f4(%rip), %rsi # 0x46511 movb $0x0, %al callq 0x70b0 movq (%rsp), %rdi leaq 0x10(%rsp), %rsi callq 0x85e0 movq 0x8(%rsp), %rax add...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::detail::checkIfShouldThrow(doctest::assertType::Enum)
bool checkIfShouldThrow(assertType::Enum at) { if(at & assertType::is_require) //!OCLINT bitwise operator in conditional return true; if((at & assertType::is_check) //!OCLINT bitwise operator in conditional && getContextOptions()->abort_after > 0 && (g_cs->numAssertsFa...
subq $0x18, %rsp movl %edi, 0x10(%rsp) movl 0x10(%rsp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0xa9cb movb $0x1, 0x17(%rsp) jmp 0xaa2f movl 0x10(%rsp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0xaa2a callq 0x9780 cmpl $0x0, 0x64(%rax) jle 0xaa2a movq 0x55cb7(%rip), %rax # 0x606a0 movl 0x9c(%rax), %eax movl %eax, 0x...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::detail::TestCase::operator<(doctest::detail::TestCase const&) const
bool TestCase::operator<(const TestCase& other) const { // this will be used only to differentiate between test cases - not relevant for sorting if(m_line != other.m_line) return m_line < other.m_line; const int name_cmp = strcmp(m_name, other.m_name); if(name_cmp != 0) ...
subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq %rsi, 0x10(%rsp) movq 0x18(%rsp), %rax movq %rax, (%rsp) movl 0x18(%rax), %eax movq 0x10(%rsp), %rcx cmpl 0x18(%rcx), %eax je 0xb47e movq (%rsp), %rax movl 0x18(%rax), %eax movq 0x10(%rsp), %rcx cmpl 0x18(%rcx), %eax setb %al andb $0x1, %al movb %al, 0x27(%rsp) jmp 0xb4f2 mov...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::parseOptionImpl(int, char const* const*, char const*, doctest::String*)
bool parseOptionImpl(int argc, const char* const* argv, const char* pattern, String* value) { // going from the end to the beginning and stopping on the first occurrence from the end for(int i = argc; i > 0; --i) { auto index = i - 1; auto temp = std::strstr(argv[index], pattern)...
subq $0x88, %rsp movl %edi, 0x80(%rsp) movq %rsi, 0x78(%rsp) movq %rdx, 0x70(%rsp) movq %rcx, 0x68(%rsp) movl 0x80(%rsp), %eax movl %eax, 0x64(%rsp) cmpl $0x0, 0x64(%rsp) jle 0x129ba movl 0x64(%rsp), %eax subl $0x1, %eax movl %eax, 0x60(%rsp) movq 0x78(%rsp), %rax movslq 0x60(%rsp), %rcx movq (%rax,%rcx,8), %rdi movq 0...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::XmlReporter::test_run_start()
void test_run_start() override { // remove .exe extension - mainly to have the same output on UNIX and Windows std::string binary_name = skipPathFromFilename(opt.binary_name.c_str()); #ifdef DOCTEST_PLATFORM_WINDOWS if(binary_name.rfind(".exe") != std::string::npos) b...
subq $0x348, %rsp # imm = 0x348 movq %rdi, 0x340(%rsp) movq 0x340(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0x78(%rax), %rdi addq $0x8, %rdi callq 0x21a90 movq %rax, %rdi callq 0x96f0 movq %rax, 0xe0(%rsp) leaq 0x31f(%rsp), %rdi movq %rdi, 0xe8(%rsp) callq 0x7a30 movq 0xe0(%rsp), %rsi movq 0xe8(%rsp), %rdx leaq...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::XmlReporter::test_run_end(doctest::TestRunStats const&)
void test_run_end(const TestRunStats& p) override { if(tc) // the TestSuite tag - only if there has been at least 1 test case xml.endElement(); xml.scopedElement("OverallResultsAsserts") .writeAttribute("successes", p.numAsserts - p.numAssertsFailed) ...
subq $0x1b8, %rsp # imm = 0x1B8 movq %rdi, 0x1b0(%rsp) movq %rsi, 0x1a8(%rsp) movq 0x1b0(%rsp), %rax movq %rax, 0x70(%rsp) cmpq $0x0, 0x80(%rax) je 0x154fc movq 0x70(%rsp), %rdi addq $0x8, %rdi callq 0x17be0 movq 0x70(%rsp), %rax addq $0x8, %rax movq %rax, 0x60(%rsp) leaq 0x17f(%rsp), %rdi movq %rdi, 0x68(%r...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::(anonymous namespace)::headerValue(unsigned char)
uint32_t headerValue(unsigned char c) { if ((c & 0xE0) == 0xC0) { return c & 0x1F; } if ((c & 0xF0) == 0xE0) { return c & 0x0F; } if ((c & 0xF8) == 0xF0) { return c & 0x07; } DOCTEST_INTERNAL_ERROR("Invalid multibyte utf-8 start...
subq $0x38, %rsp movb %dil, %al movb %al, 0x33(%rsp) movzbl 0x33(%rsp), %eax andl $0xe0, %eax cmpl $0xc0, %eax jne 0x185aa movzbl 0x33(%rsp), %eax andl $0x1f, %eax movl %eax, 0x34(%rsp) jmp 0x18624 movzbl 0x33(%rsp), %eax andl $0xf0, %eax cmpl $0xe0, %eax jne 0x185c9 movzbl 0x33(%rsp), %eax andl $0xf, %eax movl %eax, 0...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::XmlWriter::writeText(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
XmlWriter& XmlWriter::writeText( std::string const& text, bool indent ) { if( !text.empty() ){ bool tagWasOpen = m_tagIsOpen; ensureTagClosed(); if( tagWasOpen && indent ) m_os << m_indent; m_os << XmlEncode( text ); m_needsNewline = tr...
subq $0x68, %rsp movb %dl, %al movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) andb $0x1, %al movb %al, 0x57(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x58(%rsp), %rdi callq 0x7950 testb $0x1, %al jne 0x19516 movq 0x10(%rsp), %rdi movb (%rdi), %al andb $0x1, %al movb %al, 0x56(%rsp) callq 0x17da0 testb $0x1, 0...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::JUnitReporter::JUnitTestCaseData::JUnitTestCaseData()
static std::string getCurrentTimestamp() { // Beware, this is not reentrant because of backward compatibility issues // Also, UTC only, again because of backward compatibility (%z is C++11) time_t rawtime; std::time(&rawtime); auto const ti...
subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x1b670 movq 0x8(%rsp), %rax xorps %xmm0, %xmm0 movsd %xmm0, 0x18(%rax) movl $0x0, 0x20(%rax) movl $0x0, 0x24(%rax) addq $0x18, %rsp retq nopl (%rax,%rax)
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::JUnitReporter::JUnitTestCaseData::getCurrentTimestamp[abi:cxx11]()
static std::string getCurrentTimestamp() { // Beware, this is not reentrant because of backward compatibility issues // Also, UTC only, again because of backward compatibility (%z is C++11) time_t rawtime; std::time(&rawtime); auto const ti...
subq $0xb8, %rsp movq %rdi, 0x18(%rsp) movq %rdi, %rax movq %rax, (%rsp) movq %rdi, 0xb0(%rsp) leaq 0xa8(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x74b0 movq 0x8(%rsp), %rdi movq $0x15, 0xa0(%rsp) leaq 0x68(%rsp), %rsi movq %rsi, 0x10(%rsp) callq 0x7b60 movq 0x10(%rsp), %rcx leaq 0x2bc59(%rip), %rdx # 0x473c2 movq %r...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::ConsoleReporter::test_run_end(doctest::TestRunStats const&)
void test_run_end(const TestRunStats& p) override { if(opt.minimal && p.numTestCasesFailed == 0) return; separator_to_stream(); s << std::dec; auto totwidth = int(std::ceil(log10((std::max(p.numTestCasesPassingFilters, static_cast<unsigned>(p.numAsserts)...
subq $0xb8, %rsp movq %rdi, 0xb0(%rsp) movq %rsi, 0xa8(%rsp) movq 0xb0(%rsp), %rax movq %rax, 0x60(%rsp) movq 0x60(%rax), %rax testb $0x1, 0x70(%rax) je 0x1e8a1 movq 0xa8(%rsp), %rax cmpl $0x0, 0xc(%rax) jne 0x1e8a1 jmp 0x1ee7f movq 0x60(%rsp), %rdi callq 0x20c20 movq 0x60(%rsp), %rax movq 0x8(%rax), %rdi leaq 0x22855(...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
doctest::(anonymous namespace)::ConsoleReporter::log_message(doctest::MessageData const&)
void log_message(const MessageData& mb) override { if(tc->m_no_output) return; std::lock_guard<std::mutex> lock(mutex); logTestStart(); file_line_to_stream(mb.m_file, mb.m_line, " "); s << getSuccessOrFailColor(false, mb.m_severity) ...
subq $0x58, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x68(%rax), %rax testb $0x1, 0x3a(%rax) je 0x1f647 jmp 0x1f752 movq 0x28(%rsp), %rsi addq $0x38, %rsi leaq 0x40(%rsp), %rdi callq 0x403c0 movq 0x28(%rsp), %rdi callq 0x20eb0 jmp 0x1f666 movq 0x28(%rsp), %rdi mo...
/igormironchik[P]read-excel/test/datetime/../../test/doctest/doctest.h
CompoundFile::Stream::getByte()
inline char Stream::getByte() { if( m_bytesReaded > m_streamSize ) return 0xFFu; if( m_sectorBytesReaded == m_sectorSize ) { m_sectorBytesReaded = 0; seekToNextSector(); } const auto ch = m_buf.at( m_pos ); ++m_sectorBytesReaded; ++m_bytesReaded; ++m_pos; return ch; }
subq $0x28, %rsp movq %rdi, 0x18(%rsp) movq 0x18(%rsp), %rcx movq %rcx, 0x8(%rsp) movl 0x54(%rcx), %eax cmpl 0x68(%rcx), %eax jle 0x215b2 movb $-0x1, 0x27(%rsp) jmp 0x2161f movq 0x8(%rsp), %rcx movl 0x5c(%rcx), %eax cmpl 0x58(%rcx), %eax jne 0x215d0 movq 0x8(%rsp), %rdi movl $0x0, 0x5c(%rdi) callq 0x21630 movq 0x8(%rsp...
/igormironchik[P]read-excel/test/datetime/../../read-excel/compoundfile/compoundfile_stream_and_dir.hpp
CompoundFile::Header::Header()
inline Header::Header() : m_byteOrder( Excel::Stream::LittleEndian ) , m_sectorSize( 0 ) , m_shortSectorSize( 0 ) , m_sectorsInSAT( 0 ) , m_dirStreamSecID( 0 ) , m_streamMinSize( 0 ) , m_ssatFirstSecID( 0 ) , m_sectorsInSSAT( 0 ) , m_msatFirstSecID( 0 ) , m_sectorsInMSAT( 0 ) { }
subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rdi movq %rdi, 0x8(%rsp) movl $0x1, (%rdi) movl $0x0, 0x4(%rdi) movl $0x0, 0x8(%rdi) movl $0x0, 0xc(%rdi) addq $0x10, %rdi xorl %esi, %esi callq 0x29440 movq 0x8(%rsp), %rdi movl $0x0, 0x14(%rdi) addq $0x18, %rdi xorl %esi, %esi callq 0x29440 movq 0x8(%rsp), %rdi...
/igormironchik[P]read-excel/test/datetime/../../read-excel/compoundfile/header.hpp
CompoundFile::MSAT::loadMSAT()
inline void MSAT::loadMSAT() { m_msat = loadFirst109SecIDs( m_stream ); const int32_t msatSectorsCount = m_header.sectorsInMSAT(); SecID id = m_header.msatFirstSecID(); for( int32_t i = 0; i < msatSectorsCount; ++i ) { m_stream.seekg( calcFileOffset( id, m_header.sectorSize() ) ); loadMSATSect...
subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x8(%rax), %rsi leaq 0x48(%rsp), %rdi callq 0x2ac00 movq 0x20(%rsp), %rdi addq $0x10, %rdi leaq 0x48(%rsp), %rsi callq 0x2acd0 leaq 0x48(%rsp), %rdi callq 0x2aba0 movq 0x20(%rsp), %rax movq (%rax), %rdi callq 0x2ad10 movl %eax, %ecx...
/igormironchik[P]read-excel/test/datetime/../../read-excel/compoundfile/msat.hpp
CompoundFile::loadSATSector(std::istream&, std::vector<CompoundFile::SecID, std::allocator<CompoundFile::SecID>>&, int)
inline void loadSATSector( std::istream & stream, std::vector< SecID > & sat, int32_t sectorSize ) { const int32_t secIDCount = sectorSize / 4; for( int32_t i = 0; i < secIDCount; ++i ) { int32_t secID = 0; readData( stream, secID, 4 ); sat.push_back( secID ); } }
subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movl %edx, 0x24(%rsp) movl 0x24(%rsp), %eax movl $0x4, %ecx cltd idivl %ecx movl %eax, 0x20(%rsp) movl $0x0, 0x1c(%rsp) movl 0x1c(%rsp), %eax cmpl 0x20(%rsp), %eax jge 0x2bb54 movl $0x0, 0x18(%rsp) movq 0x30(%rsp), %rdi leaq 0x18(%rsp), %rsi movl $0x4, %edx c...
/igormironchik[P]read-excel/test/datetime/../../read-excel/compoundfile/utils.hpp
Excel::BOF::parse(Excel::Record&)
inline void BOF::parse( Record & record ) { int16_t version = 0; int16_t type = 0; record.dataStream().read( version, 2 ); record.dataStream().read( type, 2 ); switch( version ) { case BIFF8 : m_version = BIFF8; break; case BIFF7 : m_version = BIFF7; break; default : m...
subq $0x38, %rsp movq %rdi, 0x30(%rsp) movq %rsi, 0x28(%rsp) movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movw $0x0, 0x26(%rsp) movw $0x0, 0x24(%rsp) movq 0x28(%rsp), %rdi callq 0x332f0 movq %rax, %rdi leaq 0x26(%rsp), %rsi movl $0x2, %edx movl %edx, 0x1c(%rsp) callq 0x33300 movq 0x28(%rsp), %rdi callq 0x332f0 movl 0x1c...
/igormironchik[P]read-excel/test/datetime/../../read-excel/bof.hpp
Excel::Parser::parseSST(Excel::Record&, Excel::IStorage&)
inline void Parser::parseSST( Record & record, IStorage & storage ) { int32_t totalStrings = 0; int32_t uniqueStrings = 0; record.dataStream().read( totalStrings, 4 ); record.dataStream().read( uniqueStrings, 4 ); std::vector< std::wstring > sst( uniqueStrings ); for( int32_t i = 0; i < uniqueString...
subq $0xa8, %rsp movq %rdi, 0xa0(%rsp) movq %rsi, 0x98(%rsp) movl $0x0, 0x94(%rsp) movl $0x0, 0x90(%rsp) movq 0xa0(%rsp), %rdi callq 0x332f0 movq %rax, %rdi leaq 0x94(%rsp), %rsi movl $0x4, %edx movl %edx, 0x2c(%rsp) callq 0x2d650 movq 0xa0(%rsp), %rdi callq 0x332f0 movl 0x2c(%rsp), %edx movq %rax, %rdi leaq 0x90(%rsp)...
/igormironchik[P]read-excel/test/datetime/../../read-excel/parser.hpp
Excel::loadString[abi:cxx11](Excel::Stream&, std::vector<int, std::allocator<int>> const&, int, Excel::BOF::BiffVersion)
inline std::wstring loadString( Stream & stream, const std::vector< int32_t > & borders, int32_t lengthFieldSize = 2, BOF::BiffVersion biffVer = BOF::BIFF8 ) { int16_t charactersCount = 0; char options = 0; int16_t formattingRuns = 0; int32_t extStringLength = 0; stream.read( charactersCount, length...
subq $0x188, %rsp # imm = 0x188 movq %rdi, 0x78(%rsp) movq %rdi, %rax movq %rax, 0x80(%rsp) movq %rdi, 0x180(%rsp) movq %rsi, 0x178(%rsp) movq %rdx, 0x170(%rsp) movl %ecx, 0x16c(%rsp) movl %r8d, 0x168(%rsp) movw $0x0, 0x166(%rsp) movb $0x0, 0x165(%rsp) movw $0x0, 0x162(%rsp) movl $0x0, 0x15c(%rsp) movq 0x178...
/igormironchik[P]read-excel/test/datetime/../../read-excel/string.hpp
Excel::Parser::handleLabelSST(Excel::Record&, unsigned long, Excel::IStorage&)
inline void Parser::handleLabelSST( Record & record, size_t sheetIdx, IStorage & storage ) { int16_t row = 0; int16_t column = 0; int16_t xfIndex = 0; int32_t sstIndex = 0; record.dataStream().read( row, 2 ); record.dataStream().read( column, 2 ); record.dataStream().read( xfIndex, 2 ); record.dataS...
subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq %rdx, 0x10(%rsp) movw $0x0, 0xe(%rsp) movw $0x0, 0xc(%rsp) movw $0x0, 0xa(%rsp) movl $0x0, 0x4(%rsp) movq 0x20(%rsp), %rdi callq 0x332f0 movq %rax, %rdi leaq 0xe(%rsp), %rsi movl $0x2, %edx callq 0x33300 movq 0x20(%rsp), %rdi callq 0x332f0 movq %rax, %rd...
/igormironchik[P]read-excel/test/datetime/../../read-excel/parser.hpp
QPDFJob::parseRotationParameter(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void QPDFJob::parseRotationParameter(std::string const& parameter) { std::string angle_str; std::string range; size_t colon = parameter.find(':'); int relative = 0; if (colon != std::string::npos) { if (colon > 0) { angle_str = parameter.substr(0, colon); } if (co...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x80, %rsp movq %rsi, %rbx movq %rdi, %r14 leaq 0x38(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) xorl %ecx, %ecx movb %cl, (%rax) leaq 0x58(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb %cl, (%rax) pushq $0x3a popq %rsi movq %rbx,...
/jberkenbilt[P]qpdf/libqpdf/QPDFJob.cc
QPDFJob::checkConfiguration()
void QPDFJob::checkConfiguration() { // Do final checks for command-line consistency. (I always think this is called doFinalChecks, // so I'm putting that in a comment.) if (m->replace_input) { // Check for --empty appears later after we have checked m->infilename. if (m->outfilename) { ...
pushq %r14 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx movq (%rdi), %r14 cmpb $0x1, 0x3c9(%r14) jne 0x5d0e6 cmpq $0x0, 0x3e0(%r14) jne 0x5d3a1 cmpl $0x0, 0x5c(%r14) jne 0x5d3c1 cmpl $0x0, 0x288(%r14) je 0x5d148 leaq 0xb7288(%rip), %rsi # 0x114355 leaq 0x10(%rsp), %rdi leaq 0x38(%rsp), %rdx callq 0x1c8f4 leaq 0x10(%...
/jberkenbilt[P]qpdf/libqpdf/QPDFJob.cc
QPDFJob::handleUnderOverlay(QPDF&)
void QPDFJob::handleUnderOverlay(QPDF& pdf) { if (m->underlay.empty() && m->overlay.empty()) { return; } for (auto& uo: m->underlay) { validateUnderOverlay(pdf, &uo); } for (auto& uo: m->overlay) { validateUnderOverlay(pdf, &uo); } // First map key is 1-based page nu...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x2c8, %rsp # imm = 0x2C8 movq %rsi, 0x10(%rsp) movq %rdi, %r15 movq (%rdi), %rax movq 0x348(%rax), %rbx movq 0x350(%rax), %r14 cmpq %r14, %rbx jne 0x5fb57 movq 0x360(%rax), %rcx cmpq 0x368(%rax), %rcx jne 0x5fb57 jmp 0x60255 movq %r15, ...
/jberkenbilt[P]qpdf/libqpdf/QPDFJob.cc
QPDFJob::writeQPDF(QPDF&)
void QPDFJob::writeQPDF(QPDF& pdf) { if (createsOutput()) { if (!Pl_Flate::zopfli_check_env(pdf.getLogger().get())) { m->warnings = true; } } if (!createsOutput()) { doInspection(pdf); } else if (m->split_pages) { doSplitPages(pdf); } else { writeO...
pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rsi, %r14 movq %rdi, %rbx movq (%rdi), %rax cmpq $0x0, 0x3e0(%rax) jne 0x60dd4 cmpb $0x1, 0x3c9(%rax) jne 0x60e04 leaq 0x8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x31086 movq (%r15), %rdi callq 0x2cab6 movl %eax, %ebp leaq 0x10(%rs...
/jberkenbilt[P]qpdf/libqpdf/QPDFJob.cc
QPDFJob::writeOutfile(QPDF&)
void QPDFJob::writeOutfile(QPDF& pdf) { std::shared_ptr<char> temp_out; if (m->replace_input) { // Append but don't prepend to the path to generate a temporary name. This saves us from // having to split the path by directory and non-directory. temp_out = QUtil::make_shared_cstr(std::str...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x98, %rsp movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movaps %xmm0, 0x50(%rsp) movq (%rdi), %rdi cmpb $0x1, 0x3c9(%rdi) jne 0x61e22 movq 0x3d0(%rdi), %rsi leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x1c8f4 leaq 0xb4ca6(%rip), %rdx # 0x116a68 leaq 0x10(...
/jberkenbilt[P]qpdf/libqpdf/QPDFJob.cc
glfwDestroyCursor
GLFWAPI void glfwDestroyCursor(GLFWcursor* handle) { _GLFWcursor* cursor = (_GLFWcursor*) handle; _GLFW_REQUIRE_INIT(); if (cursor == NULL) return; // Make sure the cursor is not being used by any window { _GLFWwindow* window; for (window = _glfw.windowListHead; window; ...
pushq %r14 pushq %rbx pushq %rax leaq 0xf8aa(%rip), %rax # 0x16668 cmpb $0x0, (%rax) je 0x6e26 movq %rdi, %rbx testq %rdi, %rdi je 0x6e3b movl $0xb0, %r14d addq 0xf208(%rip), %r14 # 0x15fe0 movq (%r14), %r14 testq %r14, %r14 je 0x6df2 cmpq %rbx, 0x38(%r14) jne 0x6dd8 movq %r14, %rdi xorl %esi, %esi callq 0x6e...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/input.c
enterFullscreenMode
static void enterFullscreenMode(_GLFWwindow* window) { if (_glfw.x11.saver.count == 0) { // Remember old screen saver settings XGetScreenSaver(_glfw.x11.display, &_glfw.x11.saver.timeout, &_glfw.x11.saver.interval, &_glfw.x1...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx leaq 0xb7d2(%rip), %r13 # 0x16678 movl 0x460(%r13), %eax testl %eax, %eax jne 0xaef6 movq 0xd8(%r13), %rdi leaq 0x464(%r13), %rsi leaq 0x468(%r13), %rdx leaq 0x46c(%r13), %rcx leaq 0x470(%r13), %r8 callq 0x4960 movq 0xd8(%r13),...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/x11_window.c
glfwPlatformPollEvents
void _glfwPlatformPollEvents(void) { int count = XPending(_glfw.x11.display); while (count--) { XEvent event; XNextEvent(_glfw.x11.display, &event); processEvent(&event); } _GLFWwindow* window = _glfw.cursorWindow; if (window && window->cursorMode == GLFW_CURSOR_DISABLED...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1c8, %rsp # imm = 0x1C8 leaq 0xacda(%rip), %r12 # 0x16678 movq 0xd8(%r12), %rdi callq 0x4ba0 movl %eax, %ebp leaq 0x30(%rsp), %rbx leaq 0x100(%rsp), %r14 subl $0x1, %ebp jb 0xc5eb movq 0xd8(%r12), %rdi movq %rbx, %rsi callq 0x4610...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/x11_window.c
glfwPlatformPostEmptyEvent
void _glfwPlatformPostEmptyEvent(void) { XEvent event; _GLFWwindow* window = _glfw.windowListHead; memset(&event, 0, sizeof(event)); event.type = ClientMessage; event.xclient.window = window->x11.handle; event.xclient.format = 32; // Data is 32-bit longs event.xclient.message_type = _glfw.x...
pushq %r15 pushq %r14 pushq %rbx subq $0xc0, %rsp leaq 0x9f7d(%rip), %r14 # 0x16678 movq 0xb0(%r14), %r15 movq %rsp, %rbx movl $0xc0, %edx movq %rbx, %rdi xorl %esi, %esi callq 0x4140 movl $0x21, (%rbx) movq 0x288(%r15), %rsi movq %rsi, 0x20(%rbx) movl $0x20, 0x30(%rbx) movq 0x408(%r14), %rax movq %rax, 0x28(%rbx)...
/Alfred-Franz[P]OpenGL-Template/external/glfw-3.1.2/src/x11_window.c
StringBased_FirstWithComments_Test::TestBody()
TEST(StringBased, FirstWithComments) { std::stringstream ofile; ofile << ";this is a comment" << std::endl; ofile << "one=three" << std::endl; ofile << "two=four" << std::endl; ofile << "; and another one" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(o...
pushq %rbx subq $0x1e0, %rsp # imm = 0x1E0 leaq 0x58(%rsp), %rdi callq 0xb3a0 leaq 0x68(%rsp), %rbx leaq 0x308b1(%rip), %rsi # 0x3e1d1 movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x307b7(%rip), %rsi # 0x3e0ee movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x309c5(%r...
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_Spaces_Test::TestBody()
TEST(StringBased, Spaces) { std::stringstream ofile; ofile << "one = three" << std::endl; ofile << "two = four" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(ofile); EXPECT_EQ((size_t)2, output.size()); EXPECT_EQ("one", output.at(0).name()); EXPECT...
pushq %rbx subq $0x1e0, %rsp # imm = 0x1E0 leaq 0x58(%rsp), %rdi callq 0xb3a0 leaq 0x68(%rsp), %rbx leaq 0x2f177(%rip), %rsi # 0x3e289 movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x2f16c(%rip), %rsi # 0x3e295 movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x58(%rsp)...
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_Sections_Test::TestBody()
TEST(StringBased, Sections) { std::stringstream ofile; ofile << "one=three" << std::endl; ofile << "[second]" << std::endl; ofile << " two=four" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(ofile); EXPECT_EQ((size_t)2, output.size()); EXPECT_EQ("...
pushq %rbx subq $0x1e0, %rsp # imm = 0x1E0 leaq 0x58(%rsp), %rdi callq 0xb3a0 leaq 0x68(%rsp), %rbx leaq 0x2e9e6(%rip), %rsi # 0x3e0ee movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x2ebe9(%rip), %rsi # 0x3e308 movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 leaq 0x2ebdb(%r...
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_SpacesSections_Test::TestBody()
TEST(StringBased, SpacesSections) { std::stringstream ofile; ofile << "one=three" << std::endl; ofile << std::endl; ofile << "[second]" << std::endl; ofile << " " << std::endl; ofile << " two=four" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(of...
pushq %rbx subq $0x1e0, %rsp # imm = 0x1E0 leaq 0x58(%rsp), %rdi callq 0xb3a0 leaq 0x68(%rsp), %rbx leaq 0x2e30c(%rip), %rsi # 0x3e0ee movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi callq 0xb270 movq %rbx, %rdi callq 0xb270 leaq 0x2e507(%rip), %rsi # 0x3e308 movq %rbx, %rdi callq 0xb4f0 movq %rax, %rdi...
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniNotRequired_Test::TestBody()
TEST_F(TApp, IniNotRequired) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=99" << std::endl; out << "three=3" << std::endl; } int one = 0, two = 0, three = 0; ...
pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x388, %rsp # imm = 0x388 movq %rdi, %rbx leaq 0x2de91(%rip), %rsi # 0x3e365 leaq 0x168(%rsp), %rdi leaq 0x188(%rsp), %rdx callq 0xb200 leaq 0x28(%rsp), %rdi leaq 0x168(%rsp), %rsi callq 0x17f8e leaq 0x168(%rsp), %rdi callq 0xbbd8 leaq 0x2de65(%rip), %rsi...
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniConfigurable_Test::TestBody()
TEST_F(TApp, IniConfigurable) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); bool value; app.add_flag("--val", value)->configurable(true); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "val=1" << std::endl; } EXPECT...
pushq %r14 pushq %rbx subq $0x308, %rsp # imm = 0x308 movq %rdi, %rbx leaq 0x2b053(%rip), %rsi # 0x3e365 leaq 0xe8(%rsp), %rdi leaq 0x108(%rsp), %rdx callq 0xb200 leaq 0x28(%rsp), %rdi leaq 0xe8(%rsp), %rsi callq 0x17f8e leaq 0xe8(%rsp), %rdi callq 0xbbd8 leaq 0x2b027(%rip), %rsi # 0x3e374 leaq 0xc8(...
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniSubFailure_Test::TestBody()
TEST_F(TApp, IniSubFailure) { TempFile tmpini{"TestIniTmp.ini"}; app.add_subcommand("other"); app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[other]" << std::endl; out << "val=1" << std::endl; } EXPECT_THROW(run(), CLI::INIError); }
pushq %r14 pushq %rbx subq $0x2e8, %rsp # imm = 0x2E8 movq %rdi, %rbx leaq 0x2a99f(%rip), %rsi # 0x3e365 leaq 0xc8(%rsp), %rdi leaq 0xe8(%rsp), %rdx callq 0xb200 leaq 0x8(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x17f8e leaq 0xc8(%rsp), %rdi callq 0xbbd8 leaq 0x2adcb(%rip), %rsi # 0x3e7cc leaq 0xa8(%r...
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniFlagConvertFailure_Test::TestBody()
TEST_F(TApp, IniFlagConvertFailure) { TempFile tmpini{"TestIniTmp.ini"}; app.add_flag("--flag"); app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "flag=moobook" << std::endl; } EXPECT_THROW(run(), CLI::ConversionError); }
pushq %r14 pushq %rbx subq $0x2e8, %rsp # imm = 0x2E8 movq %rdi, %rbx leaq 0x2a475(%rip), %rsi # 0x3e365 leaq 0xc8(%rsp), %rdi leaq 0xe8(%rsp), %rdx callq 0xb200 leaq 0x8(%rsp), %rdi leaq 0xc8(%rsp), %rsi callq 0x17f8e leaq 0xc8(%rsp), %rdi callq 0xbbd8 leaq 0x2a8d5(%rip), %rsi # 0x3e800 leaq 0xa8(%r...
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniQuotedOutput_Test::TestBody()
TEST_F(TApp, IniQuotedOutput) { std::string val1; app.add_option("--val1", val1); std::string val2; app.add_option("--val2", val2); args = {"--val1", "I am a string", "--val2", R"(I am a "confusing" string)"}; run(); EXPECT_EQ("I am a string", val1); EXPECT_EQ("I am a \"confusing\" ...
pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x200, %rsp # imm = 0x200 movq %rdi, %r14 leaq 0x110(%rsp), %rax movq %rax, -0x10(%rax) andq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x27709(%rip), %rsi # 0x3eae9 leaq 0x1e0(%rsp), %rdi leaq 0x60(%rsp), %rdx callq 0xb200 leaq 0x2b3f3(%rip), %rs...
/SX91[P]CLI11/tests/IniTest.cpp
CLI::App::reset()
void reset() { parsed_ = false; missing_.clear(); parsed_subcommands_.clear(); for(const Option_p &opt : options_) { opt->clear(); } for(const App_p &app : subcommands_) { app->reset(); } }
pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movb $0x0, 0x168(%rdi) addq $0xf8, %rdi callq 0x23c78 movq 0x128(%rbx), %rax cmpq %rax, 0x130(%rbx) je 0x1837d movq %rax, 0x130(%rbx) movq 0x98(%rbx), %r14 movq 0xa0(%rbx), %r15 movl $0x1a8, %r12d # imm = 0x1A8 cmpq %r15, %r14 je 0x183a7 m...
/SX91[P]CLI11/include/CLI/App.hpp
CLI::Option* CLI::App::add_flag<bool, (CLI::detail::enabler)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Option *add_flag(std::string name, T &count, ///< A variable holding true if passed std::string description = "") { count = false; CLI::callback_t fun = [&count](CLI::results_t res) { count = true; return res.size() == 1; }; ...
pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xc8, %rsp movq %rcx, %r15 movq %rsi, %rbx movq %rdi, %r14 movb $0x0, (%rdx) andq $0x0, 0x10(%rsp) movq %rdx, 0x8(%rsp) leaq 0xd807(%rip), %rax # 0x260a4 movq %rax, 0x20(%rsp) leaq 0xd801(%rip), %rax # 0x260aa movq %rax, 0x18(%rsp) leaq 0x88(%rsp), %rdi callq ...
/SX91[P]CLI11/include/CLI/App.hpp
testing::AssertionResult testing::internal::PredicateFormatterFromMatcher<testing::internal::NotMatcher<testing::PolymorphicMatcher<testing::internal::HasSubstrMatcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>>::operator()<std::__cxx11::basic_string<char, std::char_traits<char>, ...
AssertionResult operator()(const char* value_text, const T& x) const { // We convert matcher_ to a Matcher<const T&> *now* instead of // when the PredicateFormatterFromMatcher object was constructed, // as matcher_ may be polymorphic (e.g. NotNull()) and we won't // know which type to instantiate it to ...
pushq %r15 pushq %r14 pushq %rbx subq $0x370, %rsp # imm = 0x370 movq %rcx, %r14 movq %rdx, %r15 movq %rdi, %rbx leaq 0x38(%rsp), %rdi callq 0x26a52 leaq 0x1d8(%rsp), %rdi callq 0x263f2 leaq 0x38(%rsp), %rsi leaq 0x1d8(%rsp), %rdx movq %r14, %rdi callq 0x26410 testb %al, %al je 0x1942c movq %rbx, %rdi callq ...
/SX91[P]CLI11/build_O2/googletest-src/googlemock/include/gmock/gmock-matchers.h
StringBased_First_Test::~StringBased_First_Test()
TEST(StringBased, First) { std::stringstream ofile; ofile << "one=three" << std::endl; ofile << "two=four" << std::endl; ofile.seekg(0, std::ios::beg); std::vector<CLI::detail::ini_ret_t> output = CLI::detail::parse_ini(ofile); EXPECT_EQ((size_t)2, output.size()); EXPECT_EQ("one", output...
pushq %rbx movq %rdi, %rbx callq 0x2c6de movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_Sections_Test::~StringBased_Sections_Test()
TEST(StringBased, Sections) { std::stringstream ofile; ofile << "one=three" << std::endl; ofile << "[second]" << std::endl; ofile << " two=four" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(ofile); EXPECT_EQ((size_t)2, output.size()); EXPECT_EQ("...
pushq %rbx movq %rdi, %rbx callq 0x2c6de movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_SpacesSections_Test::~StringBased_SpacesSections_Test()
TEST(StringBased, SpacesSections) { std::stringstream ofile; ofile << "one=three" << std::endl; ofile << std::endl; ofile << "[second]" << std::endl; ofile << " " << std::endl; ofile << " two=four" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(of...
pushq %rbx movq %rdi, %rbx callq 0x2c6de movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniNotRequired_Test::~TApp_IniNotRequired_Test()
TEST_F(TApp, IniNotRequired) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=99" << std::endl; out << "three=3" << std::endl; } int one = 0, two = 0, three = 0; ...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniNotRequiredNotDefault_Test::~TApp_IniNotRequiredNotDefault_Test()
TEST_F(TApp, IniNotRequiredNotDefault) { TempFile tmpini{"TestIniTmp.ini"}; TempFile tmpini2{"TestIniTmp2.ini"}; app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=99" << std::endl; out << "three=3" << std::end...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniOverwrite_Test::~TApp_IniOverwrite_Test()
TEST_F(TApp, IniOverwrite) { TempFile tmpini{"TestIniTmp.ini"}; { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=99" << std::endl; } std::string orig = "filename_not_exist.ini"; std::string next = "TestIniTmp.ini"; app.set_config("--config", ori...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniRequired_Test::~TApp_IniRequired_Test()
TEST_F(TApp, IniRequired) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini, "", true); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=99" << std::endl; out << "three=3" << std::endl; } int one = 0, two = 0, three = ...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniConfigurable_Test::~TApp_IniConfigurable_Test()
TEST_F(TApp, IniConfigurable) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); bool value; app.add_flag("--val", value)->configurable(true); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "val=1" << std::endl; } EXPECT...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniNotConfigurable_Test::~TApp_IniNotConfigurable_Test()
TEST_F(TApp, IniNotConfigurable) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); bool value; app.add_flag("--val", value)->configurable(false); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "val=1" << std::endl; } EX...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniSubFailure_Test::~TApp_IniSubFailure_Test()
TEST_F(TApp, IniSubFailure) { TempFile tmpini{"TestIniTmp.ini"}; app.add_subcommand("other"); app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[other]" << std::endl; out << "val=1" << std::endl; } EXPECT_THROW(run(), CLI::INIError); }
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniNoSubFailure_Test::~TApp_IniNoSubFailure_Test()
TEST_F(TApp, IniNoSubFailure) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[other]" << std::endl; out << "val=1" << std::endl; } EXPECT_THROW(run(), CLI::INIError); }
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniFlagConvertFailure_Test::~TApp_IniFlagConvertFailure_Test()
TEST_F(TApp, IniFlagConvertFailure) { TempFile tmpini{"TestIniTmp.ini"}; app.add_flag("--flag"); app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "flag=moobook" << std::endl; } EXPECT_THROW(run(), CLI::ConversionError); }
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniFlagNumbers_Test::~TApp_IniFlagNumbers_Test()
TEST_F(TApp, IniFlagNumbers) { TempFile tmpini{"TestIniTmp.ini"}; bool boo; app.add_flag("--flag", boo); app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "flag=3" << std::endl; } EXPECT_NO_THROW(run()); EXPECT_TRUE(boo); }
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniFlagText_Test::~TApp_IniFlagText_Test()
TEST_F(TApp, IniFlagText) { TempFile tmpini{"TestIniTmp.ini"}; bool flag1, flag2, flag3, flag4; app.add_flag("--flag1", flag1); app.add_flag("--flag2", flag2); app.add_flag("--flag3", flag3); app.add_flag("--flag4", flag4); app.set_config("--config", tmpini); { std::ofstream o...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
TApp_IniFlags_Test::~TApp_IniFlags_Test()
TEST_F(TApp, IniFlags) { TempFile tmpini{"TestIniTmp.ini"}; app.set_config("--config", tmpini); { std::ofstream out{tmpini}; out << "[default]" << std::endl; out << "two=2" << std::endl; out << "three=true" << std::endl; out << "four=on" << std::endl; out << ...
pushq %rbx movq %rdi, %rbx callq 0x19f94 movq %rbx, %rdi popq %rbx jmp 0xb4e0
/SX91[P]CLI11/tests/IniTest.cpp
StringBased_Quotes_Test::StringBased_Quotes_Test()
TEST(StringBased, Quotes) { std::stringstream ofile; ofile << R"(one = "three")" << std::endl; ofile << R"(two = 'four')" << std::endl; ofile << R"(five = "six and seven")" << std::endl; ofile.seekg(0, std::ios::beg); auto output = CLI::detail::parse_ini(ofile); EXPECT_EQ((size_t)3, outp...
pushq %rbx movq %rdi, %rbx callq 0x2c698 leaq 0x4436e(%rip), %rax # 0x5fa30 movq %rax, (%rbx) popq %rbx retq nop
/SX91[P]CLI11/tests/IniTest.cpp
CLI::Option* CLI::App::add_option<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, (CLI::detail::enabler)0>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_...
Option *add_option(std::string name, T &variable, ///< The variable to set std::string description, bool defaulted) { std::string simple_name = CLI::detail::split(name, ',').at(0); CLI::callback_t fun = [&variable, simple_name](CLI::r...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x268, %rsp # imm = 0x268 movl %r8d, %ebp movq %rcx, %r15 movq %rdx, %rbx movq %rsi, %r12 movq %rdi, %r14 leaq 0xe0(%rsp), %r13 pushq $0x2c popq %rdx movq %r13, %rdi callq 0x1b3ff movq %r13, %rdi xorl %esi, %esi callq 0x17ebc leaq 0xc0(%...
/SX91[P]CLI11/include/CLI/App.hpp
CLI::Option::set_custom_option(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int)
void set_custom_option(std::string typeval, int expected = 1) { typeval_ = typeval; expected_ = expected; if(expected == 0) required_ = false; changeable_ = expected < 0; }
pushq %r14 pushq %rbx pushq %rax movl %edx, %ebx movq %rdi, %r14 addq $0xd8, %rdi callq 0xb2e0 movl %ebx, 0xfc(%r14) testl %ebx, %ebx jne 0x1cac1 movb $0x0, 0x20(%r14) shrl $0x1f, %ebx movb %bl, 0x100(%r14) addq $0x8, %rsp popq %rbx popq %r14 retq nop
/SX91[P]CLI11/include/CLI/Option.hpp
void CLI::OptionBase<CLI::OptionDefaults>::copy_to<CLI::Option>(CLI::Option*) const
void copy_to(T *other) const { other->group(group_); other->required(required_); other->ignore_case(ignore_case_); other->configurable(configurable_); other->multi_option_policy(multi_option_policy_); }
pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rsp, %r15 movq %r15, %rdi movq %r14, %rsi callq 0xb7e0 movq %rbx, %rdi movq %r15, %rsi callq 0xb2e0 movq %rsp, %rdi callq 0xbbd8 movb 0x20(%r14), %al movb %al, 0x20(%rbx) movzbl 0x21(%r14), %esi movq %rbx, %rdi callq 0x1e74c movb 0x...
/SX91[P]CLI11/include/CLI/Option.hpp