repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
tmihalik/cphalcon
ext/kernel/memory.c
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phal...
tmihalik/cphalcon
ext/mvc/model/behavior/timestampable.c
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/logger/formatter/line.c
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phal...
tmihalik/cphalcon
ext/mvc/micro.c
<filename>ext/mvc/micro.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalco...
tmihalik/cphalcon
ext/acl/adapter/memory.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/kernel/main.c
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phal...
tmihalik/cphalcon
ext/loader.c
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/di.h
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
build/safe/php_phalcon.h
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconp...
tmihalik/cphalcon
ext/mvc/view/engine/volt/scanner.c
/* Generated by re2c 0.13.5 on Tue Jan 22 20:36:59 2013 */ // 1 "scanner.re" /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copy...
tmihalik/cphalcon
ext/mvc/model/relation.c
<filename>ext/mvc/model/relation.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://w...
tmihalik/cphalcon
ext/mvc/view/engine/volt/scanner.h
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2012 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/db/profiler.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/di/service.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/mvc/model/query/builder.c
<reponame>tmihalik/cphalcon<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (h...
tmihalik/cphalcon
ext/mvc/model/query/builderinterface.h
<filename>ext/mvc/model/query/builderinterface.h /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon ...
tmihalik/cphalcon
ext/annotations/scanner.c
/* Generated by re2c 0.13.5 on Sat Feb 9 01:35:48 2013 */ // 1 "scanner.re" /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copy...
tmihalik/cphalcon
ext/http/response/cookies.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/kernel/string.h
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phal...
tmihalik/cphalcon
ext/kernel/array.c
<filename>ext/kernel/array.c<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (...
tmihalik/cphalcon
ext/annotations/annotation.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/di/factorydefault.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/http/cookie.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/mvc/model/criteria.h
<filename>ext/mvc/model/criteria.h /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://w...
tmihalik/cphalcon
ext/mvc/view/engine/volt/parser.h
<gh_stars>1-10 #define PHVOLT_COMMA 1 #define PHVOLT_COLON 2 #define PHVOLT_SBRACKET_OPEN 3 #define PHVOLT_RANGE 4 #define PHVOLT_AND 5 #define PHVOLT_OR 6 #define PHV...
tmihalik/cphalcon
ext/kernel/fcall.c
<filename>ext/kernel/fcall.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.pha...
tmihalik/cphalcon
ext/mvc/model/resultset.h
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/mvc/model/relation.h
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/mvc/model/metadata/strategy/introspection.c
<filename>ext/mvc/model/metadata/strategy/introspection.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013...
tmihalik/cphalcon
ext/http/request.c
<reponame>tmihalik/cphalcon<filename>ext/http/request.c<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (...
tmihalik/cphalcon
ext/mvc/url.c
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/mvc/model/validator/uniqueness.c
<filename>ext/mvc/model/validator/uniqueness.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Te...
tmihalik/cphalcon
ext/mvc/application.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
build/32bits/phalcon.h
<reponame>tmihalik/cphalcon /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phal...
tmihalik/cphalcon
ext/cache/backend/apc.c
<reponame>tmihalik/cphalcon<filename>ext/cache/backend/apc.c /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2...
tmihalik/cphalcon
ext/mvc/model/manager.c
<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) ...
tmihalik/cphalcon
ext/db/dialectinterface.h
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/session/adapter.c
<reponame>tmihalik/cphalcon<gh_stars>1-10 /* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (h...
tmihalik/cphalcon
ext/db/adapter.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/mvc/router/group.h
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/mvc/view/engine/php.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
tmihalik/cphalcon
ext/translate/adapter/nativearray.c
/* +------------------------------------------------------------------------+ | Phalcon Framework | +------------------------------------------------------------------------+ | Copyright (c) 2011-2013 Phalcon Team (http://www.phalconphp.com) | +-----...
fezfez/symfony2-eventdispatcher-extension
ext/kernel/globals.h
/* +------------------------------------------------------------------------+ | Zephir Language | +------------------------------------------------------------------------+ | Copyright (c) 2011-2014 Zephir Team (http://www.zephir-lang.com) | +-----...
brynbellomy/ReactiveBoxer
ReactiveBoxer.h
#import <ReactiveBoxer/MGBox+RACSupport.h> #import <ReactiveBoxer/MGLine+RACSupport.h> #import <ReactiveBoxer/MGTableBox+RACSupport.h> #import <ReactiveBoxer/MGScrollView+RACSupport.h> #import <ReactiveBoxer/RACBox.h> #import <ReactiveBoxer/RACLine.h> #import <ReactiveBoxer/RACTableBox.h>
brynbellomy/ReactiveBoxer
Classes/RACTableBox.h
// // RACTableBox.h // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <ReactiveCocoa/ReactiveCocoa.h> #import <MGBox2/MGTableBox.h> #import <BrynKit/MGBoxHelpers.h> @interface RACTableBox : MGTableBox + (instancetype) boxWithTopLinesSi...
brynbellomy/ReactiveBoxer
Classes/MGLine+RACSupport.h
<reponame>brynbellomy/ReactiveBoxer // // MGLine+RACSupport.h // ReactiveBoxer // // Created by <NAME> on 4.2.2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <MGBox2/MGLine.h> @class RACFuture; @interface MGLine (BrynKit) - (RACFuture *) bryn_setLeftItems: (NSArray *)leftItems andLayoutW...
brynbellomy/ReactiveBoxer
Classes/MGScrollView+RACSupport.h
// // MGScrollView+RACSupport.h // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <MGBox2/MGScrollView.h> @class RACSignal, RACFuture; @interface MGScrollView (RACSupport) - (RACFuture *) bryn_layoutWithSpeed:(NSTimeInterval)speed; @e...
brynbellomy/ReactiveBoxer
Classes/RACBox.h
<reponame>brynbellomy/ReactiveBoxer<filename>Classes/RACBox.h // // RACBox.h // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <ReactiveCocoa/ReactiveCocoa.h> #import <MGBox2/MGBox.h> @interface RACBox : MGBox + (instancetype) boxWithB...
brynbellomy/ReactiveBoxer
Classes/MGBox+RACSupport.h
<gh_stars>1-10 // // MGBox+RACSupport.h // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <MGBox2/MGBox.h> @class RACSignal, RACFuture; @interface MGBox (RACSupport) - (RACSignal *) rac_onTap; - (RACFuture *) bryn_setBoxes:(NSMutableOr...
brynbellomy/ReactiveBoxer
Classes/SESignalObservingTableBoxStyled.h
// // SESignalObservingTableBoxStyled.h // Stan // // Created by <NAME> on 1.15.13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <MGBox2/MGTableBoxStyled.h> #import <ReactiveCocoa/RACSubscriber.h> @interface SESignalObservingTableBoxStyled : MGTableBoxStyled <RACSubscriber> @property (nonatomic,...
brynbellomy/ReactiveBoxer
Classes/MGTableBox+RACSupport.h
// // MGTableBox+RACSupport.m // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <MGBox2/MGTableBox.h> @interface MGTableBox (BrynKit) - (RACFuture *) bryn_setTopLines:(NSArray *)topLines andLayoutWithSpeed:(NSTimeInterval)speed; -...
brynbellomy/ReactiveBoxer
Classes/RACLine.h
// // RACLine.h // ReactiveBoxer // // Created by <NAME> on 5.24.13. // Copyright (c) 2013 signalenvelope llc. All rights reserved. // #import <ReactiveCocoa/ReactiveCocoa.h> #import <MGBox2/MGLine.h> #import <BrynKit/MGBoxHelpers.h> @interface RACLine : MGLine + (instancetype) lineWithLeftSignal:(RACSignal *)si...
brynbellomy/ReactiveBoxer
Classes/SESignalObservingBox.h
// // SESignalObservingGridBox.h // Stan // // Created by <NAME> on 1.16.13. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <MGBox2/MGTableBoxStyled.h> @class RACSignal; @interface SESignalObservingGridBox : MGBox - (instancetype) initWithObservedSignal:(RACSignal *)observedSignal; - (instancetyp...
PatrickNiyogitare28/data-structures-with-c
hash-table/main.c
<filename>hash-table/main.c<gh_stars>0 #include<stdio.h> #define size 7 int arr[size]; void init() { int i; for(i = 0; i < size; i++) arr[i] = -1; } void insert(int value) { int key = value % size; if(arr[key] == -1) { arr[key] = value; printf("%d inserted ...
cmol/arduino-rgb
lib/RGBLamp/RGBLamp.h
<reponame>cmol/arduino-rgb<filename>lib/RGBLamp/RGBLamp.h /* RGBLamp.h - Library for controlling RGB diodes. Created by <NAME>, May 19, 2013. For license, see LICENSE file. */ #ifndef RGBLamp_h #define RGBLamp_h #include "Arduino.h" class RGBLamp { public: RGBLamp(); void create(int pin_r, int pin_g, i...
cmol/arduino-rgb
lib/ComplementaryColors/ComplementaryColors.h
/* ComplemetaryColors.h - Library for calculating complemetary colors. Created by <NAME>, Aug 1, 2013. For license, see LICENSE file. */ #ifndef ComplementaryColors_h #define ComplementaryColors_h #include "Arduino.h" class ComplementaryColors { public: ComplementaryColors(); void SetColor(int color[])...
HenriqueBuzin/binary-insertion-sort
insertion_sort_binario/src/dados.h
#ifndef DADO_H_INCLUDED typedef struct dados dado_t; dado_t * criar_dado (int amostra, float temperatura, char * timestamp); dado_t **ler_dados_csv(char *nome_do_arquivo, int * n_linhas); void exibe_dado(dado_t * dado); void exibe_dados(dado_t ** dados, int linhas); void liberar_dados(dado_t **vetor, int n_linhas...
HenriqueBuzin/binary-insertion-sort
insertion_sort_binario/src/insertion_sort_binario.h
#ifndef INSERTION_SORT_BINARIO_H_INCLUDED #include "dados.h" void insertion_sort_binario(dado_t ** dados, int n_linhas); #endif
HenriqueBuzin/binary-insertion-sort
insertion_sort_binario/src/insertion_sort_binario.c
<filename>insertion_sort_binario/src/insertion_sort_binario.c #include <stdio.h> #include <stdlib.h> #include <string.h> #include "insertion_sort_binario.h" void insertion_sort_binario(dado_t ** dados, int n_linhas){ for(int i = 1; i < n_linhas; i++){ dado_t * tmp = dados[i]; int esquerda = 0; int direita = i;...
chickeningot/tcp-boost
test/packet/session_cl.h
<reponame>chickeningot/tcp-boost #include <iostream> #include <boost/shared_ptr.hpp> #include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_cl : public session { public: static int COUNT; session_cl(io_service &ios) ...
chickeningot/tcp-boost
test/stress/server_test.h
<filename>test/stress/server_test.h #include "tcp_boost.h" #include "session_cl.h" using namespace tcp_boost; using namespace boost::asio; class server_test : public server { protected: session* create_new_session(io_service &ios) override { return new session_cl(ios); } };
chickeningot/tcp-boost
test/stress/client_test.h
#include <string> #include "tcp_boost.h" #include "session_sv.h" using namespace tcp_boost; using namespace boost::asio; class client_test : public client { protected: session* create_new_session(io_service &ios) override { return new session_sv(ios); } };
chickeningot/tcp-boost
tcp-boost/include/server.h
<filename>tcp-boost/include/server.h #ifndef __SERVER_H__ #define __SERVER_H__ #include <boost/asio.hpp> #include <boost/function.hpp> #include <boost/thread.hpp> #include "network_service_interface.h" using namespace boost::asio; using namespace boost::asio::ip; namespace tcp_boost { /** * @brief * Ca...
chickeningot/tcp-boost
test/connect/session_cl.h
#include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_cl : public session { public: static int COUNT; session_cl(io_service &ios) : session(ios) { } void on_created() override...
chickeningot/tcp-boost
test/echo/session_sv.h
<filename>test/echo/session_sv.h #include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_sv : public session { public: session_sv(io_service &ios) : session(ios) { } void on_message(pack...
chickeningot/tcp-boost
tcp-boost/include/session.h
#ifndef __SESSION_H__ #define __SESSION_H__ #include <boost/asio.hpp> #include <boost/thread.hpp> #include <boost/container/deque.hpp> #include <boost/shared_ptr.hpp> #include "packet.h" using namespace boost::asio; using namespace boost::asio::ip; namespace tcp_boost { /** * @brief * Represents each ...
chickeningot/tcp-boost
test/packet/session_sv.h
#include <string> #include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_sv : public session { public: session_sv(io_service &ios) : session(ios) { } void on_created() override ...
chickeningot/tcp-boost
tcp-boost/include/tcp_boost.h
<reponame>chickeningot/tcp-boost #ifndef __TCP_BOOST_H__ #define __TCP_BOOST_H__ #include "server.h" #include "client.h" #include "packet.h" #include "session.h" #endif
chickeningot/tcp-boost
test/serialize/session_sv.h
<reponame>chickeningot/tcp-boost<filename>test/serialize/session_sv.h<gh_stars>0 #include <string> #include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_sv : public session { public: session_sv(io_service &ios) : session(i...
chickeningot/tcp-boost
tcp-boost/include/network_service_interface.h
#ifndef __NETWORK_SERVICE_INTERFACE_H__ #define __NETWORK_SERVICE_INTERFACE_H__ #include <boost/asio.hpp> #include "session.h" using namespace boost::asio; namespace tcp_boost { /** * @brief * Network services are object that manages boost::asio::io_service and network session. * * @author c...
chickeningot/tcp-boost
test/serialize/serialize_test.h
#include <string> #include <iostream> // Following data types are can't be serialized by type casting. // 1. std::string // 2. pointers class inner_class { public: inner_class() { k = 888; l = 123.445f; //m = "inner_class"; } std::string to_stri...
chickeningot/tcp-boost
test/stress/session_sv.h
<gh_stars>0 #include <string> #include "tcp_boost.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_sv : public session { public: session_sv(io_service &ios) : session(ios) { } void on_created() overr...
chickeningot/tcp-boost
test/serialize/session_cl.h
<reponame>chickeningot/tcp-boost #include <iostream> #include <boost/shared_ptr.hpp> #include "tcp_boost.h" #include "serialize_test.h" using namespace tcp_boost; using namespace boost::asio; using namespace boost::asio::ip; class session_cl : public session { public: static int COUNT; session_cl...
chickeningot/tcp-boost
tcp-boost/include/client.h
#ifndef __CLIENT_H__ #define __CLIENT_H__ #include <boost/asio.hpp> #include <boost/function.hpp> #include <boost/thread.hpp> #include <string> #include "network_service_interface.h" using namespace boost::asio; using namespace boost::asio::ip; namespace tcp_boost { /** * @brief * Can connect to only o...
chickeningot/tcp-boost
tcp-boost/include/packet.h
<filename>tcp-boost/include/packet.h<gh_stars>0 #ifndef __PACKET_H__ #define __PACKET_H__ #include <boost/shared_ptr.hpp> #include <string> namespace tcp_boost { /** * @brief * A class for reading and writing byte stream. * * @details * It doesn't care whether the structure is little end...
FiriaCTO/circuitpython
ports/esp32s2/common-hal/wifi/__init__.c
/* * This file is part of the MicroPython project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2020 <NAME> for Adafruit Industries * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to d...
nickmain/swipl-devel
src/libtai/taia_frac.c
#include "taia.h" double taia_frac(struct taia *t) { return ((double)t->atto * 0.000000001 + (double)t->nano) * 0.000000001; }
nickmain/swipl-devel
cmake/TestGNUQsortR.c
#define _GNU_SOURCE #include <stdlib.h> static int mycompare(const void *p1, const void *p2, void *c) { const int *s1 = p1; const int *s2 = p2; int *ip = c; if ( *ip != 1 ) exit(1); return *s1 - *s2; } int main(int argc, char**argv) { int data[] = {0,1,2,3,4,5,6,7,8,9}; int ctx = 1; qsort_r(data, 1...
nickmain/swipl-devel
src/test/recmutex.c
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2000-2011, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that t...
nickmain/swipl-devel
src/os/pl-os.h
<filename>src/os/pl-os.h /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2011-2019, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribut...
nickmain/swipl-devel
src/libtai/caldate_scan.c
#include "tai.h" #include "caldate.h" unsigned int caldate_scan(char *s, struct caldate *cd) { int sign = 1; char *t = s; unsigned long z; unsigned long c; if (*t == '-') { ++t; sign = -1; } z = 0; while ((c = (unsigned char) (*t - '0')) <= 9) { z = z * 10 + c; ++t; } cd->year = z * sign; if (*t++ !=...
nickmain/swipl-devel
cmake/TestSCNProcessors.c
<reponame>nickmain/swipl-devel<filename>cmake/TestSCNProcessors.c #include <unistd.h> int main() { long n = sysconf(_SC_NPROCESSORS_CONF); }
nickmain/swipl-devel
src/libtai/caltime_utc.c
<gh_stars>100-1000 #include "tai.h" #include "leapsecs.h" #include "caldate.h" #include "caltime.h" /* XXX: breaks tai encapsulation */ void caltime_utc(struct caltime *ct, struct tai *t, int *pwday, int *pyday) { struct tai t2 = *t; uint64_t u; int leap; long s; /* XXX: check for overfow? */ leap = lea...
nickmain/swipl-devel
src/pl-rsort.c
<filename>src/pl-rsort.c /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2017, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and ...
nickmain/swipl-devel
src/pl-ext.c
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1985-2020, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and...
nickmain/swipl-devel
src/libtai/leapsecs_init.c
#include "tai.h" #include "leapsecs.h" static int flaginit = 0; int leapsecs_init(void) { if (flaginit) return 0; if (leapsecs_read("/etc/leapsecs.dat") == -1) return -1; flaginit = 1; return 0; }
nickmain/swipl-devel
cmake/CheckAlignment.c
/******************************************************* * Create ascii pattern to match in order to find * alignment at compile time *******************************************************/ // Compile this program and m...
nickmain/swipl-devel
cmake/TestBSDSignals.c
#include <sys/types.h> #include <signal.h> #include <unistd.h> static int signalled; static void catch(int s) { signalled = 1; } int main() { signal(SIGINT, (void*)catch); kill(getpid(), SIGINT); while(!signalled) sleep(1); if ( (void*)signal(SIGINT, (void*)catch) == (void*)catch ) return 0; return 1...
nickmain/swipl-devel
src/pl-ldpass.h
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2010-20120, University of Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are ...
nickmain/swipl-devel
src/pl-segstack.h
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2007-2013, University of Amsterdam VU University Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or w...
nickmain/swipl-devel
src/pl-alloc.c
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1985-2020, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and...
nickmain/swipl-devel
src/libtai/caltime_scan.c
<gh_stars>100-1000 #include "tai.h" #include "caltime.h" unsigned int caltime_scan(char *s, struct caltime *ct) { char *t = s; unsigned long z; unsigned long c; int sign; t += caldate_scan(t,&ct->date); while ((*t == ' ') || (*t == '\t') || (*t == 'T')) ++t; z = 0; while ((c = (unsigned char) (*t - '0'...
nickmain/swipl-devel
src/libtai/caldate_norm.c
<reponame>nickmain/swipl-devel #include "tai.h" #include "caldate.h" void caldate_normalize(struct caldate *cd) { caldate_frommjd(cd,caldate_mjd(cd),(int *) 0,(int *) 0); }
nickmain/swipl-devel
src/pl-btree.c
<gh_stars>1-10 /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2004-2018, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted ...
nickmain/swipl-devel
src/pl-init.h
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2012-2019, University of Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are p...
nickmain/swipl-devel
src/pentium.c
/* Part of SWI-Prolog Author: <NAME> and <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2003-2011, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
nickmain/swipl-devel
src/pl-gc.c
/* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 1985-2020, University of Amsterdam VU University Amsterdam CWI, Amsterdam All rights reserved. Redistribution and use in source and...
nickmain/swipl-devel
src/compat/sicstus.h
<gh_stars>100-1000 /* Part of SWI-Prolog Author: <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2010-2011, VU University Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permit...
nickmain/swipl-devel
src/pentium.h
/* Part of SWI-Prolog Author: <NAME> and <NAME> E-mail: <EMAIL> WWW: http://www.swi-prolog.org Copyright (c) 2003-2011, University of Amsterdam All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted prov...
nickmain/swipl-devel
src/libtai/easter.c
#include <stdio.h> #include <stdlib.h> #include "caldate.h" char *dayname[7] = { "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" } ; char out[101]; int main(int argc, char **argv) { struct caldate cd; long day; int weekday; int yearday; while (*++argv) { cd.year = atoi(*argv); if (cd.year > 0) { ...