repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
pmoura/yap
packages/python/pypreds.c
<gh_stars>10-100 #include "Yap.h" #include "YapInterface.h" #include "py4yap.h" PyObject *py_Main; void pyErrorHandler__(int line, const char *file, const char *code) { // this code is called if a Python error is found. // int lvl = push_text_stack(); // PyErr_Fetch(&type, &val, NULL); // PyErr_Print(...
pmoura/yap
C/corout.c
/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ************************************...
pmoura/yap
os/readline/readline.c
<reponame>pmoura/yap /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * *******...
pmoura/yap
os/stream.h
/************************************************************************** * * * File: stream.h * * Last rev: 5/2/88 * * mods: * * comments: Stream core routunes * * * *************************************************************************/ #ifdef SCCS static char SccsId[] = "%W% ...
pmoura/yap
H/YapCompile.h
/************************************************************************* * * * YAP Prolog %W% %G% * * * *Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ************************************************************************** *...
pmoura/yap
H/YapFlags.h
/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 2015- * * * ***************************************...
pmoura/yap
C/exec.c
<reponame>pmoura/yap /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * *******...
pmoura/yap
os/yapio.h
<filename>os/yapio.h /************************************************************************* * * * YAP Prolog %W% %G% * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-2003 * * * ...
pmoura/yap
C/modules.c
<reponame>pmoura/yap<filename>C/modules.c /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * ...
pmoura/yap
C/write.c
/************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ****************************...
pmoura/yap
H/ScannerTypes.h
<reponame>pmoura/yap #ifndef SCANNER_TYPES_H #define SCANNER_TYPES_H typedef enum TokenKinds { Name_tok, Number_tok, Var_tok, String_tok, BQString_tok, Ponctuation_tok, Error_tok, QuasiQuotes_tok, eot_tok } tkinds; typedef struct TOKEN { enum TokenKinds Tok; YAP_Term TokInfo; intptr_t TokLineP...
pmoura/yap
H/YapEval.h
/************************************************************************* * * * YAP Prolog @(#)YapEval.h 1.2 * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ***************************...
pmoura/yap
OPTYap/tab.insts.h
/************************************************************************ ** ** ** The YapTab/YapOr/OPTYap systems ** ** ** ** YapTab extends the Y...
pmoura/yap
H/trim_trail.h
#ifdef FROZEN_STACKS { tr_fr_ptr pt0, pt1, pbase, ptop; pbase = B->cp_tr, ptop = TR; pt0 = pt1 = TR - 1; while (pt1 >= pbase) { BEGD(d1); d1 = TrailTerm(pt1); if (IsVarTerm(d1)) { if (d1 < (CELL)HBREG || d1 > Unsigned(B->cp_b)) { TrailTerm(pt0) = d1; TrailVal(pt0) = TrailVal(pt...
pmoura/yap
C/fail_absmi_insts.h
/***************************************************************** * Failure * *****************************************************************/ #ifdef INDENT_CODE { #endif /* INDENT_CODE */ /* trust_fail */ BOp(trust_fail, e); { ...
pmoura/yap
os/mem.c
<gh_stars>10-100 /************************************************************************* * * * YAP Prolog * * * * Yap Prolog was developed at NCCUP - Universidade do Porto * * * * Copyright L.Damas, V.S.Costa and Universidade do Porto 1985-1997 * * * ***********...
pmoura/yap
C/control_absmi_insts.h
/************************************************************************\ * Cut & Commit Instructions * \************************************************************************/ #ifdef INDENT_CODE { { { #endif /* INDENT_CODE */ /* cut ...
victronenergy/dbus_gps
software/src/gps.c
#include <velib/base/base.h> #include <velib/base/ve_string.h> #include <velib/types/ve_item.h> #include <velib/utils/ve_logger.h> #include "values.h" #include "gps.h" #include <string.h> #include <errno.h> #include <math.h> #include <time.h> #ifdef WIN32 #include <stdio.h> #else #include <stdlib.h> #endif #define ...
victronenergy/dbus_gps
software/src/values_dbus_service.c
<filename>software/src/values_dbus_service.c #include <stdio.h> #include <stdlib.h> #include <velib/base/base.h> #include <velib/base/ve_string.h> #include <velib/vecan/products.h> #include <velib/types/ve_item.h> #include <velib/types/variant_print.h> #include <velib/types/ve_dbus_item.h> #include <velib/types/ve_str...
victronenergy/dbus_gps
software/src/platform/pc/serial_hal_pc.c
#include <velib/base/base.h> #include <velib/platform/console.h> #include <velib/platform/plt.h> #include <velib/platform/serial.h> #include <velib/utils/ve_logger.h> #include <velib/utils/ve_assert.h> #include <velib/utils/ve_todo.h> #include "gps.h" #include "dev_reg.h" #include "serial_hal.h" #define MODULE "Seria...
victronenergy/dbus_gps
software/inc/gps.h
<filename>software/inc/gps.h #ifndef GPS_H #define GPS_H #include <velib/base/base.h> #include <velib/types/ve_item.h> #include <velib/types/ve_item_def.h> typedef struct { VeItem connected; VeItem hardwareRevision; VeItem firmwareVersion; } ProductInfo; typedef struct { VeItem longitude; VeItem latitude; } Gps...
victronenergy/dbus_gps
software/inc/serial_hal.h
<filename>software/inc/serial_hal.h #ifndef SERIAL_HAL_H #define SERIAL_HAL_H #include <velib/base/base.h> #include <velib/types/variant.h> veBool serialHalConnect(void); #endif
victronenergy/dbus_gps
software/src/platform/pc/velib/velib_config_app.h
<filename>software/src/platform/pc/velib/velib_config_app.h #ifndef _VELIB_CONFIG_APP_H_ #define _VELIB_CONFIG_APP_H_ #define VELIB_EXPECTED_TRACKING_NR 11 #ifdef DEBUG //#define CFG_ASSERT_ENABLED 1 #endif /* utils */ #define CFG_WITH_VE_ARG 1 #define CFG_WITH_TASK 1 #define CFG_INIT_DEFAULT_DBUS ...
ctubio/bgfx
src/nvapi.h
<filename>src/nvapi.h /* * Copyright 2011-2018 <NAME>. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #ifndef BGFX_NVAPI_H_HEADER_GUARD #define BGFX_NVAPI_H_HEADER_GUARD struct ID3D11DeviceContext; struct ID3D11Buffer; namespace bgfx { struct NvPhysicalGpuHandle; type...
malusev998/ext-uv
src/args/fs/uv_pipe.h
#pragma once #include <php.h> /* {{{ proto UVPipe uv_pipe_init([UVLoop $loop = uv_default_loop(), bool $ipc = false]) */ PHP_FUNCTION(uv_pipe_init); /* }}} */ /* {{{ proto long|false uv_pipe_open(UVPipe $handle, resource|long $pipe) */ PHP_FUNCTION(uv_pipe_open); /* }}} */ /* {{{ proto long uv_pipe_bind(UVPipe $han...
malusev998/ext-uv
src/args/loop/uv_check.h
#pragma once #include <php.h> /* {{{ proto UVCheck uv_check_init([UVLoop $loop]) */ PHP_FUNCTION(uv_check_init); /* }}} */ /* {{{ proto void uv_check_start(UVCheck $handle, callable(UVCheck $handle) $callback) */ PHP_FUNCTION(uv_check_start); /* }}} */ /* {{{ proto void uv_check_stop(UVCheck $handle) */ PHP_FUNCTIO...
malusev998/ext-uv
include/php_uv_error.h
<filename>include/php_uv_error.h<gh_stars>1-10 #pragma once const char *php_uv_strerror(long error_code);
malusev998/ext-uv
src/args/uv_timer.h
#pragma once #include <php.h> /* {{{ proto UVTimer uv_timer_init([UVLoop $loop = uv_default_loop()]) */ PHP_FUNCTION(uv_timer_init); /* }}} */ /* {{{ proto void uv_timer_start(UVTimer $timer, long $timeout, long $repeat[, callable(UVTimer $timer) $callback = function() {}]) */ PHP_FUNCTION(uv_timer_start); /* }}} */...
malusev998/ext-uv
src/args/locks/uv_locks.h
<gh_stars>1-10 #pragma once #include "uv_rwlock.h" #include "uv_mutex.h" #include "uv_semaphore.h"
malusev998/ext-uv
include/php_uv_cb.h
#pragma once #include <php.h> #include "php_uv.h" void php_uv_cb_init(php_uv_cb_t **result, php_uv_t *uv, zend_fcall_info *fci, zend_fcall_info_cache *fcc, enum php_uv_callback_type type); int php_uv_do_callback(zval *retval_ptr, php_uv_cb_t *callback, zval *params, int param_count TSRMLS_DC); int php_uv_do_callbac...
malusev998/ext-uv
src/args/fs/uv_stream.h
#pragma once #include <php.h> static void php_uv_read_alloc(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf); /* {{{ proto void uv_write(UVStream $handle, string $data[, callable(UVStream $handle, long $status) $callback = function() {}]) */ PHP_FUNCTION(uv_write); /* }}} */ /* {{{ proto void uv_write2(Uv...
malusev998/ext-uv
src/fs/php_uv_poll.c
<reponame>malusev998/ext-uv #include <php.h> #include "include/php_uv_private.h" #include "php_uv.h" #include "src/args/fs/uv_fs_common.h" static php_socket_t php_uv_zval_to_valid_poll_fd(zval *ptr) { php_socket_t fd = -1; php_stream *stream; /* Validate Checks */ php_socket *socket; /* TODO: is this correct ...
malusev998/ext-uv
src/args/locks/uv_rwlock.h
#pragma once #include <php.h> /* {{{ proto UVLock uv_rwlock_init(void) */ PHP_FUNCTION(uv_rwlock_init); /* }}} */ /* {{{ proto null|false uv_rwlock_rdlock(UVLock $handle) */ PHP_FUNCTION(uv_rwlock_rdlock); /* }}} */ /* {{{ proto bool uv_rwlock_tryrdlock(UVLock $handle) */ PHP_FUNCTION(uv_rwlock_tryrdlock); /* }}} *...
malusev998/ext-uv
src/args/net/uv_tcp.h
<reponame>malusev998/ext-uv #pragma once #include <php.h> /* {{{ proto UVTcp uv_tcp_init([UVLoop $loop]) */ PHP_FUNCTION(uv_tcp_init); /* }}} */ /* {{{ proto void uv_tcp_bind(UVTcp $uv_tcp, UVSockAddr $uv_sockaddr) */ PHP_FUNCTION(uv_tcp_bind); /* }}} */ /* {{{ proto void uv_tcp_bind6(UVTcp $uv_tcp, UVSockAddr $uv_...
malusev998/ext-uv
src/locks/php_uv_rwlock.c
#include <php.h> #include "include/php_uv_private.h" #include "src/args/locks/uv_rwlock.h"
malusev998/ext-uv
php_uv.c
/* +----------------------------------------------------------------------+ | PHP Version 5 | +----------------------------------------------------------------------+ | Copyright (c) 1997-2012 The PHP Group | +---------...
malusev998/ext-uv
src/args/fs/uv_fs.h
#pragma once #include <php.h> #include "uv_fs_common.h" #include "uv_fs_poll.h" #include "uv_fs_event.h" #include "uv_pipe.h" #include "uv_stream.h" #include "uv_poll.h" /* {{{ proto UVStdio uv_stdio_new([UV|resource|long|null $fd[, long $flags = 0]]) */ PHP_FUNCTION(uv_stdio_new); /* }}} */ /* {{{ proto void uv_fs...
malusev998/ext-uv
src/args/loop/uv_idle.h
#pragma once #include <php.h> /* {{{ proto UVIdle uv_idle_init([UVLoop $loop = uv_default_loop()]) */ PHP_FUNCTION(uv_idle_init); /* }}} */ /* {{{ proto void uv_idle_start(UVIdle $idle, callable $callback) */ PHP_FUNCTION(uv_idle_start); /* }}} */ /* {{{ proto void uv_idle_stop(UVIdle $idle) */ PHP_FUNCTION(uv_idle...
malusev998/ext-uv
src/args/uv_functions.h
#pragma once #include <php.h> #include "net/uv_net.h" #include "fs/uv_fs.h" #include "locks/uv_locks.h" #include "loop/uv_loop.h" #include "misc/uv_misc.h" #include "uv_tty.h" #include "uv_timer.h" #include "uv_signal.h" #include "uv_process.h" #include "uv_async.h" #include "uv_queue.h"
malusev998/ext-uv
src/args/misc/uv_cpu.h
#pragma once #include <php.h> /* {{{ proto array uv_cpu_info(void) */ PHP_FUNCTION(uv_cpu_info); /* }}} */ /* {{{ proto array uv_loadavg(void) */ PHP_FUNCTION(uv_loadavg); /* }}} */ /* {{{ proto double uv_uptime(void) */ PHP_FUNCTION(uv_uptime); /* }}} */
malusev998/ext-uv
src/fs/php_uv_fs.c
#include <php.h> #include "include/php_uv_private.h" #include "php_uv.h" #include "src/args/fs/uv_fs.h" /* {{{ proto UVStdio uv_stdio_new([UV|resource|long|null $fd[, long $flags = 0]]) */ PHP_FUNCTION(uv_stdio_new) { php_uv_stdio_t *stdio; zval *handle; zend_long flags = 0; php_socket *socket; php_socket_t fd...
malusev998/ext-uv
src/args/uv_process.h
#pragma once #include <php.h> /* {{{ proto UVProcess|long uv_spawn(UVLoop $loop, string $command, array $args, array $stdio, string $cwd, array $env, callable(UVProcess $process, long $exit_status, long $term_signal) $callback[, long $flags = 0, array $options = []]) */ PHP_FUNCTION(uv_spawn); /* }}} */ /* {{{ proto...
malusev998/ext-uv
src/fs/php_uv_fs_common.c
<gh_stars>1-10 #include <php.h> #include <php_network.h> #include <ext/sockets/php_sockets.h> #include "include/php_uv_private.h" #include "php_uv.h" #include "src/args/fs/uv_fs_common.h" zend_class_entry *uv_fs_ce; static php_socket_t php_uv_zval_to_fd(zval *ptr); static zval php_uv_make_stat(const uv_stat_t *s); ...
malusev998/ext-uv
src/args/uv_queue.h
<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto void uv_queue_work(UVLoop $loop, callable() $callback, callable() $after_callback) */ PHP_FUNCTION(uv_queue_work); /* }}} */
malusev998/ext-uv
src/args/loop/uv_prepare.h
<reponame>malusev998/ext-uv #pragma once #include <php.h> /* {{{ proto UVPrepare uv_prepare_init(UVLoop $loop) */ PHP_FUNCTION(uv_prepare_init); /* }}} */ /* {{{ proto long uv_prepare_start(UVPrepare $handle, callable(UVPrepare $handle) $callback) */ PHP_FUNCTION(uv_prepare_start); /* }}} */ /* {{{ proto long uv_pr...
malusev998/ext-uv
src/fs/php_uv_stream.c
#include <php.h> #include <uv.h> #include "include/php_uv_private.h" #include "php_uv.h" typedef struct { uv_write_t req; uv_buf_t buf; php_uv_cb_t *cb; } write_req_t; zend_class_entry *uv_stream_ce; #define PHP_UV_INIT_WRITE_REQ(w, uv, str, strlen, cb) \ w = (write_req_t *)emalloc(sizeof(write_req_t)); ...
malusev998/ext-uv
src/locks/php_uv_mutex.c
<gh_stars>1-10 #include <php.h> #include "include/php_uv_private.h" #include "src/args/locks/uv_mutex.h"
malusev998/ext-uv
src/args/net/uv_ip.h
#pragma once #include <php.h> /* {{{ proto string uv_ip4_name(UVSockAddr $address) */ PHP_FUNCTION(uv_ip4_name); /* }}} */ /* {{{ proto string uv_ip6_name(UVSockAddr $address) */ PHP_FUNCTION(uv_ip6_name); /* }}} */ /* {{{ proto UVSockAddrIPv4 uv_ip4_addr(string $ipv4_addr, long $port)*/ PHP_FUNCTION(uv_ip4_addr); ...
malusev998/ext-uv
src/args/misc/uv_memory.h
<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto long uv_get_free_memory(void) */ PHP_FUNCTION(uv_get_free_memory); /* }}} */ /* {{{ proto long uv_get_total_memory(void) */ PHP_FUNCTION(uv_get_total_memory); /* }}} */ /* {{{ proto long uv_resident_set_memory(void) */ PHP_FUNCTION(uv_resident_set_memory); /...
malusev998/ext-uv
src/args/net/uv_net.h
<filename>src/args/net/uv_net.h<gh_stars>1-10 #pragma once #include <php.h> #include "uv_tcp.h" #include "uv_udp.h" #include "uv_ip.h" /* {{{ proto void uv_accept<T = UVTcp|UVPipe>(T $server, T $client)*/ PHP_FUNCTION(uv_accept); /* }}} */ /* {{{ proto void uv_listen<T = UVTcp|UVPipe>(T $handle, long $backlog, call...
malusev998/ext-uv
src/php_uv_cb.c
#include <php.h> #include "include/php_uv_private.h" #include "php_uv.h" int php_uv_do_callback(zval *retval_ptr, php_uv_cb_t *callback, zval *params, int param_count TSRMLS_DC) { if (!ZEND_FCI_INITIALIZED(callback->fci)) { return -1; } callback->fci.params = params; callback->fci.retval = retval_ptr; callba...
malusev998/ext-uv
src/args/fs/uv_fs_poll.h
<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto UVFsPoll uv_fs_poll_init([UVLoop $loop = uv_default_loop()]) */ PHP_FUNCTION(uv_fs_poll_init); /* }}} */ /* {{{ proto uv uv_fs_poll_start(UVFsPoll $handle, callable(UVFsPoll $handle, long $status, array $prev_stat, array $cur_stat) $callback, string $path, lo...
malusev998/ext-uv
src/args/uv_tty.h
<reponame>malusev998/ext-uv<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto UVTty uv_tty_init(UVLoop $loop, resource $fd, long $readable) */ PHP_FUNCTION(uv_tty_init); /* }}} */ /* {{{ proto long uv_tty_get_winsize(UVTty $tty, long &$width, long &$height) */ PHP_FUNCTION(uv_tty_get_winsize); /* }}} */ /* {...
malusev998/ext-uv
src/locks/php_uv_semaphore.c
#include <php.h> #include "include/php_uv_private.h" #include "src/args/locks/uv_semaphore.h"
malusev998/ext-uv
src/args/locks/uv_semaphore.h
<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto UVLock uv_sem_init(long $value) */ PHP_FUNCTION(uv_sem_init); /* }}} */ /* {{{ proto void uv_sem_post(UVLock $sem) */ PHP_FUNCTION(uv_sem_post); /* }}} */ /* {{{ proto void uv_sem_wait(UVLock $sem) */ PHP_FUNCTION(uv_sem_wait); /* }}} */ /* {{{ proto long u...
malusev998/ext-uv
src/args/misc/uv_misc.h
<gh_stars>1-10 #pragma once #include <php.h> #include "uv_error.h" #include "uv_memory.h" #include "uv_cpu.h" /* {{{ proto long uv_guess_handle(resource $uv) */ PHP_FUNCTION(uv_guess_handle); /* }}} */ /* {{{ proto long uv_hrtime(void) */ PHP_FUNCTION(uv_hrtime); /* }}} */
malusev998/ext-uv
src/args/net/uv_udp.h
#pragma once #include <php.h> /* {{{ proto UVUdp uv_udp_init([UVLoop $loop]) */ PHP_FUNCTION(uv_udp_init); /* }}} */ /* {{{ proto int|false uv_udp_open(UVUdp $handle, long|resource $udpfd) */ PHP_FUNCTION(uv_udp_open); /* }}} */ /* {{{ proto void uv_udp_bind(UVUdp $resource, UVSockAddr $address[, long $flags = 0]) ...
malusev998/ext-uv
src/args/fs/uv_fs_event.h
<filename>src/args/fs/uv_fs_event.h<gh_stars>1-10 #pragma once #include <php.h> // TODO: Add functions: uv_fs_event_start, uv_fs_event_stop, uv_fs_event_getpath /* {{{ proto UVFsEvent uv_fs_event_init(UVLoop $loop, string $path, callable(UVFsEvent $handle, string|null $filename, long $events, long $status) $callback...
malusev998/ext-uv
include/php_uv_classes.h
<reponame>malusev998/ext-uv<filename>include/php_uv_classes.h #pragma once #include <php.h> extern zend_object_handlers uv_default_handlers; extern zend_class_entry *uv_ce; extern zend_object_handlers uv_handlers; extern zend_class_entry *uv_stream_ce; extern zend_class_entry *uv_tcp_ce; extern zend_class_entry *uv_u...
malusev998/ext-uv
include/php_uv_param.h
#pragma once #include <php.h> ZEND_COLD zend_string *php_uv_concat_ce_names(zend_class_entry *ce, zend_class_entry *next, ...); int uv_parse_arg_object(zval *arg, zval **dest, int check_null, zend_class_entry *ce, ...); #define uv_zend_wrong_parameter_class_error(throw, ...) zend_wrong_parameter_class_error(__VA_ARG...
malusev998/ext-uv
src/fs/php_uv_fs_event.c
<filename>src/fs/php_uv_fs_event.c #include <php.h> #include "include/php_uv_private.h" #include "php_uv.h" #include "src/args/fs/uv_fs_event.h" zend_class_entry *uv_fs_event_ce; static void php_uv_fs_event_cb(uv_fs_event_t *req, const char *filename, int events, int status) { zval params[4] = {0}; zval retval = {...
malusev998/ext-uv
src/args/misc/uv_error.h
<filename>src/args/misc/uv_error.h #pragma once #include <php.h> /* {{{ proto string uv_err_name(long $error_code) */ PHP_FUNCTION(uv_err_name); /* }}} */ /* {{{ proto string uv_strerror(long $error_code) */ PHP_FUNCTION(uv_strerror); /* }}} */
malusev998/ext-uv
src/fs/php_uv_fs_poll.c
#include <php.h> #include "include/php_uv_private.h" #include "php_uv.h" #include "src/args/fs/uv_fs_poll.h" zend_class_entry *uv_fs_poll_ce; static zval php_uv_stat_to_zval(const uv_stat_t *stat) { zval result = {0}; array_init(&result); add_assoc_long_ex(&result, ZEND_STRL("dev"), stat->st_dev); add_assoc_lo...
malusev998/ext-uv
src/args/fs/uv_poll.h
#pragma once #include <php.h> /* {{{ proto UVPoll uv_poll_init(UVLoop $loop, resource $fd) */ PHP_FUNCTION(uv_poll_init); /* }}} */ /* {{{ proto void uv_poll_start(UVPoll $handle, long $events, callable(UVPoll $handle, long $status, long $events, resource $fd) $callback) */ PHP_FUNCTION(uv_poll_start); /* }}} */ /*...
malusev998/ext-uv
src/args/fs/uv_fs_common.h
<gh_stars>1-10 #pragma once #include <php.h> #define PHP_UV_CHECK_VALID_FD(fd, zstream) \ if (fd < 0) \ { ...
malusev998/ext-uv
src/args/uv_signal.h
<reponame>malusev998/ext-uv #pragma once #include <php.h> /* {{{ proto resource uv_signal_init([UVLoop $uv_loop = uv_default_loop()]) */ PHP_FUNCTION(uv_signal_init); /* }}} */ /* {{{ proto void uv_signal_start(UVSignal $sig_handle, callable(UVSignal $sig_handle, long $sig_num) $sig_callback, int $sig_num) */ PHP_FU...
malusev998/ext-uv
src/args/locks/uv_mutex.h
<reponame>malusev998/ext-uv<gh_stars>1-10 #pragma once #include <php.h> /* {{{ proto UVLock uv_mutex_init(void) */ PHP_FUNCTION(uv_mutex_init); /* {{{ proto void uv_mutex_lock(UVLock $lock) */ PHP_FUNCTION(uv_mutex_lock); /* }}} */ /* {{{ proto bool uv_mutex_trylock(UVLock $lock) */ PHP_FUNCTION(uv_mutex_trylock); ...
malusev998/ext-uv
include/php_uv_private.h
#pragma once #include "php_uv_cb.h" #include "php_uv_classes.h" #include "php_uv_debug.h" #include "php_uv_error.h" #include "php_uv_loop.h" #include "php_uv_param.h"
malusev998/ext-uv
include/php_uv_loop.h
<gh_stars>1-10 #pragma once #include "php_uv.h" php_uv_loop_t *php_uv_default_loop(); void destruct_uv(zend_object *obj); void clean_uv_handle(php_uv_t *uv); #define PHP_UV_FETCH_UV_DEFAULT_LOOP(loop) \ if (loop == NULL) \ { \ loop = php_uv_default_loop()...
malusev998/ext-uv
src/args/loop/uv_loop.h
#pragma once #include <php.h> #include "uv_prepare.h" #include "uv_idle.h" #include "uv_check.h" /* {{{ proto UVLoop uv_default_loop() */ PHP_FUNCTION(uv_default_loop); /* }}} */ /* {{{ proto UVLoop uv_loop_new() */ PHP_FUNCTION(uv_loop_new); /* }}} */ /* {{{ proto bool uv_walk(UVLoop $loop, callable $closure[, ar...
malusev998/ext-uv
src/fs/php_uv_pipe.c
#include <php.h> #include "include/php_uv_private.h" zend_class_entry *uv_pipe_ce; extern void php_uv_handle_open(int (*open_cb)(uv_handle_t *, long), zend_class_entry *ce, INTERNAL_FUNCTION_PARAMETERS); static void php_uv_pipe_connect_cb(uv_connect_t *req, int status) { zval retval = {0}; zval params[2] = {0}; ...
malusev998/ext-uv
include/php_uv_debug.h
#pragma once #include <php.h> #if PHP_UV_DEBUG >= 1 #define PHP_UV_DEBUG_PRINT(format, ...) fprintf(stderr, format, ##__VA_ARGS__) #define PHP_UV_DEBUG_OBJ_ADD_REFCOUNT(handler, uv) \ { ...
malusev998/ext-uv
src/args/uv_async.h
#pragma once #include <php.h> /* {{{ proto UVAsync uv_async_init(UVLoop $loop, callable(UVAsync $handle) $callback) */ PHP_FUNCTION(uv_async_init); /* }}} */ /* {{{ proto void uv_async_send(UVAsync $handle) */ PHP_FUNCTION(uv_async_send); /* }}} */
maandree/libcontacts
libcontacts_address_destroy.c
/* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_address_destroy(struct libcontacts_address *this) { free(this->context); free(this->country); free(this->care_of); free(this->address); free(this->postcode); free(this->city); DESTROY_ALL_STRINGS(this->unrecognised_d...
maandree/libcontacts
libcontacts_list_contacts.c
<reponame>maandree/libcontacts<filename>libcontacts_list_contacts.c /* See LICENSE file for copyright and license details. */ #include "common.h" int libcontacts_list_contacts(char ***idsp, const struct passwd *user, int with_me) { char *dirnam; DIR *dir; struct dirent *f; size_t i = 0; void *new; int saved_err...
maandree/libcontacts
libcontacts_load_contact.c
<filename>libcontacts_load_contact.c /* See LICENSE file for copyright and license details. */ #include "common.h" int libcontacts_load_contact(const char *id, struct libcontacts_contact *contactp, const struct passwd *user) { int ret, fd, saved_errno; char *data = NULL, *path; size_t p = 0, n = 0; ssize_t r; vo...
maandree/libcontacts
libcontacts_format_contact.c
/* See LICENSE file for copyright and license details. */ #include "common.h" int libcontacts_format_contact(const struct libcontacts_contact *contact, char **datap) { FILE *fp; size_t siz = 0; char **list, *p, *q; const char *suffix; struct libcontacts_block **blocks, *block; struct libcontacts_organisation **...
maandree/libcontacts
libcontacts_same_number.c
/* See LICENSE file for copyright and license details. */ #include "common.h" static const char *digits[255] = { ['#'] = "#", ['*'] = "*", ['+'] = "00", ['0'] = "0", ['1'] = "1", ['2'] = "2", ['3'] = "3", ['4'] = "4", ['5'] = "5", ['6'] = "6", ['7'] = "7", ['8'] = "8", ['9'] = "9", ['A'] = "2", ['B'] = "2", ['C']...
maandree/libcontacts
libcontacts_email_destroy.c
<gh_stars>1-10 /* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_email_destroy(struct libcontacts_email *this) { free(this->context); free(this->address); DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
libcontacts_save_contact.c
/* See LICENSE file for copyright and license details. */ #include "common.h" static int makedirs(char *path) { char *p, *last; last = strrchr(path, '/'); if (!last) return 0; *last = '\0'; for (p = path; *p == '/'; p++); while (*p) { for (; *p && *p != '/'; p++); *p = '\0'; if (mkdir(path, 0777) && ...
maandree/libcontacts
libcontacts_get_path.c
/* See LICENSE file for copyright and license details. */ #include "common.h" char * libcontacts_get_path(const char *id, const struct passwd *user) { size_t len; char *buf; if (!id || !user || !user->pw_dir || !*user->pw_dir) { errno = EINVAL; return NULL; } len = strlen(user->pw_dir) + sizeof("/.config/c...
maandree/libcontacts
libcontacts_contact_destroy.c
/* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_contact_destroy(struct libcontacts_contact *this) { free(this->id); free(this->name); free(this->first_name); free(this->last_name); free(this->full_name); free(this->nickname); DESTROY_ALL_STRINGS(this->photos); DE...
maandree/libcontacts
libcontacts_parse_contact.c
<filename>libcontacts_parse_contact.c /* See LICENSE file for copyright and license details. */ #include "common.h" ATTRIBUTE_PURE static time_t gettime(const char *data) { time_t ret = 0; while (*data == ' ' || *data == '\t') data++; data = &strchr(data, ' ')[1]; if ('1' > *data || *data > '9') return 0; for ...
maandree/libcontacts
libcontacts_pgpkey_destroy.c
<gh_stars>1-10 /* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_pgpkey_destroy(struct libcontacts_pgpkey *this) { free(this->context); free(this->id); DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
common.h
<filename>common.h<gh_stars>1-10 /* See LICENSE file for copyright and license details. */ #include "libcontacts.h" #include <sys/stat.h> #include <alloca.h> #include <ctype.h> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <limits.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #incl...
maandree/libcontacts
libcontacts_organisation_destroy.c
/* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_organisation_destroy(struct libcontacts_organisation *this) { free(this->organisation); free(this->title); DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
libcontacts_birthday_destroy.c
<reponame>maandree/libcontacts /* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_birthday_destroy(struct libcontacts_birthday *this) { DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
test.c
<reponame>maandree/libcontacts /* See LICENSE file for copyright and license details. */ #include "common.h" #include <stdarg.h> #define TEST(EXPR)\ do {\ errno = 0;\ if (EXPR)\ break;\ fprintf(stderr, "Failure at line %i, with errno = %i (%s): %s\n", __LINE__, errno, strerror(errno), #EXPR);\ exit(1);\ ...
maandree/libcontacts
libcontacts_number_destroy.c
/* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_number_destroy(struct libcontacts_number *this) { free(this->context); free(this->number); DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
libcontacts.h
<reponame>maandree/libcontacts /* See LICENSE file for copyright and license details. */ #ifndef LIBCONTACTS_H #define LIBCONTACTS_H #include <pwd.h> #include <time.h> /** * Block type for contact */ enum libcontacts_block_type { LIBCONTACTS_SILENT, /* The phone shall not call its owner's attention */ LIBCO...
maandree/libcontacts
libcontacts_block_destroy.c
/* See LICENSE file for copyright and license details. */ #include "common.h" void libcontacts_block_destroy(struct libcontacts_block *this) { free(this->service); DESTROY_ALL_STRINGS(this->unrecognised_data); }
maandree/libcontacts
libcontacts_load_contacts.c
/* See LICENSE file for copyright and license details. */ #include "common.h" int libcontacts_load_contacts(struct libcontacts_contact ***contactsp, const struct passwd *user, int with_me) { int saved_errno = errno; char **ids; void *temp; size_t i, j, n; struct libcontacts_contact contact; *contactsp = NULL; ...
alwaysqi/insightface
3rdparty/operator/amsoftmax-inl.h
<gh_stars>100-1000 /*! * Copyright (c) 2018 by Contributors * \file amsoftmax-inl.h * \brief AmSoftmax from <TODO> * \author <NAME> */ #ifndef MXNET_OPERATOR_AMSOFTMAX_INL_H_ #define MXNET_OPERATOR_AMSOFTMAX_INL_H_ #include <dmlc/logging.h> #include <dmlc/parameter.h> #include <mxnet/operator.h> #include <cmath> ...
herumi/mie_string
mie_string.h
<gh_stars>1-10 #pragma once /** @file @brief fast function to find character by SSE4.2 @author <NAME>(@herumi) @license modified new BSD license http://opensource.org/licenses/BSD-3-Clause https://github.com/herumi/mie_string */ #include <stdlib.h> // #define MIE_STRING_DECL // #define MIE_STRING_INLINE // #def...
herumi/mie_string
mie_string.c
#define MIE_STRING_IMPL #undef MIE_STRING_DECL #undef MIE_STRING_INLINE #include "mie_string.h"
Lora-net/llcc68_driver
src/llcc68_regs.h
/** * @file llcc68_regs.h * * @brief LLCC68 register definitions * * Revised BSD License * Copyright Semtech Corporation 2020. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * ...
Esysteme/hive
metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ #ifndef ThriftHiveMetastore_H #define ThriftHiveMetastore_H #include <thrift/TDispatchProcessor.h> #include <thrift/async/TConcurrentClientSyncInfo.h> #include "hive_metastore_types...
ursoup/ursoup
include/ParticleManager.h
// // Created by <NAME> on 12/10/19. // Modified by <NAME> 2021-07-16 // #ifndef ParticleManager_H #define ParticleManager_H #include <vector> #include "Particle.h" #include "SpeciesProperties.h" class ParticleManager { private: std::vector<Particle> particles; public: ParticleManager(); ParticleManag...
ursoup/ursoup
include/SpeciesProperties.h
// // Created by <NAME> on 2021-06-14. // #ifndef SpeciesProperties_H #define SpeciesProperties_H #include <SFML/Graphics.hpp> struct SpeciesProperties { float speed; float perception; float alpha; float beta; sf::Color color; SpeciesProperties(float speed, float perception, float alpha, flo...
ursoup/ursoup
include/Particle.h
// // Created by <NAME> on 12/9/19. // Modified by <NAME> 2021-07-16 // #ifndef Particle_H #define Particle_H #include <vector> #include "Vector2D.h" class Particle { public: Vector2D position; float phi; int species; int n_neighbors = 0; int n_close_neighbors = 0; // Constructors Partic...