commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
c5f766b9b116c7bcdb2e7ece1ca1802327376778
src/zcash/Zcash.h
src/zcash/Zcash.h
#ifndef _ZCCONSTANTS_H_ #define _ZCCONSTANTS_H_ #define ZC_NUM_JS_INPUTS 2 #define ZC_NUM_JS_OUTPUTS 2 #define INCREMENTAL_MERKLE_TREE_DEPTH 20 #define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4 #define ZC_NOTEPLAINTEXT_LEADING 1 #define ZC_V_SIZE 8 #define ZC_RHO_SIZE 32 #define ZC_R_SIZE 32 #define ZC_MEMO_SIZE 128 #...
#ifndef _ZCCONSTANTS_H_ #define _ZCCONSTANTS_H_ #define ZC_NUM_JS_INPUTS 2 #define ZC_NUM_JS_OUTPUTS 2 #define INCREMENTAL_MERKLE_TREE_DEPTH 29 #define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4 #define ZC_NOTEPLAINTEXT_LEADING 1 #define ZC_V_SIZE 8 #define ZC_RHO_SIZE 32 #define ZC_R_SIZE 32 #define ZC_MEMO_SIZE 128 #...
Change merkle tree depth to 29.
Change merkle tree depth to 29.
C
mit
bitcoinsSG/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTR...
b608152c41f235a0bf4ffd9db21d954bada3ceea
atom/common/chrome_version.h
atom/common/chrome_version.h
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // This file is generated by script/bootstrap.py, you should never modify it // by hand. #ifndef ATOM_COMMON_CHROME_VERSION_H_ #define ATOM_COMMON_CHROME_VERSION_H_ #define CHROME_VE...
// Copyright (c) 2014 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. // This file is generated by script/bootstrap.py, you should never modify it // by hand. #ifndef ATOM_COMMON_CHROME_VERSION_H_ #define ATOM_COMMON_CHROME_VERSION_H_ #define CHROME_VE...
Update Chrome version to 63.0.3239.84
Update Chrome version to 63.0.3239.84
C
mit
bpasero/electron,electron/electron,shiftkey/electron,shiftkey/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,electron/electron,electron/electron,seanchas116/electron,seanchas116/electron,the-ress/electron,gerhardberger/electr...
61377d69a4eba2ccfda4a6bf8c16cfdb84fe70c3
assembly/screenmsg.c
assembly/screenmsg.c
/* * screenmsg - Print a message to terminal * * Written in 2012 by Prashant P Shah <pshah.mumbai@gmail.com> * * To the extent possible under law, the author(s) have dedicated * all copyright and related and neighboring rights to this software * to the public domain worldwide. This software is distributed * wit...
Print a message to terminal screen
Print a message to terminal screen Signed-off-by: Prashant Shah <80f978b5ac27fb318171799f0fb6a277863f2bf5@gmail.com>
C
cc0-1.0
prashants/c
efbf667dd43005cc46c83097ee19499f57be14af
src/lib/blockdev.h
src/lib/blockdev.h
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin plugin); #endif /* BD_LIB */
#include <glib.h> #ifndef BD_LIB #define BD_LIB #include "plugins.h" gboolean bd_init (BDPluginSpec *force_plugins); gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean reload); gchar** bd_get_available_plugin_names (); gboolean bd_is_plugin_available (BDPlugin plugin); #endif /* BD_LIB */
Fix name of the paramenter for requesting plugin reload
Fix name of the paramenter for requesting plugin reload 'reload' better explains what happens than 'replace'.
C
lgpl-2.1
vpodzime/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,rhinstaller/libblockdev,dashea/libblockdev,atodorov/libblockdev,snbueno/libblockdev,atodorov/libblockdev
7d95d1ae451ed247f4c25f2b21cd2d5ff37046c9
Sources/Rumia/Iterator.h
Sources/Rumia/Iterator.h
#pragma once namespace Rumia { template<typename Ty, typename ContainerTy> class Iterator { public: using DataType = Ty; using ContainerType = ContainerTy; public: Iterator( ContainerType& container ) : m_container( container ) { } virtual ~Iterator...
#pragma once namespace Rumia { template<typename Ty, typename ContainerTy> class Iterator { public: using DataType = Ty; using ContainerType = ContainerTy; public: Iterator( ContainerType& container ) : m_container( container ) { } virtual ~Iterator...
Delete non-const reference operator pure virtual function
Delete non-const reference operator pure virtual function
C
mit
HoRangDev/Rumia,HoRangDev/Rumia
bb072543fdf3b2954715351399ad29ff5c4d74d0
hw3/syscall/accomodate_space.c
hw3/syscall/accomodate_space.c
#include<stdio.h> #include<stdlib.h> #include<unistd.h> int main( int argc, char *argv[] ){ int *pointer; int i; pointer = (int*)malloc(sizeof(int)*1337); //Declare 5 arrays of 'char' variables char *space0, *space1, *space2, *space3, *space4; //Accomodate some (random) space for them space0 = (char*) mal...
#include<stdio.h> #include<stdlib.h> #include<unistd.h> #include<time.h> int main( int argc, char *argv[] ){ int *pointer; int i; pointer = (int*)malloc(sizeof(int)*1337); //Declare 5 arrays of 'char' variables char *space0, *space1, *space2, *space3, *space4; clock_t begin = clock(); //Accomodate some (r...
Test Program that accomodates space now returns the time spent
Test Program that accomodates space now returns the time spent
C
mit
eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems
526d5c80f57093bcfe5d294c3b48e7fd395b272b
timeout_getaline.c
timeout_getaline.c
#include "leafnode.h" #include "ln_log.h" #include <signal.h> #include <setjmp.h> #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #include <unistd.h> static jmp_buf to; static RETSIGTYPE timer(int sig) { (void)sig; siglongjmp(to, 1); } /* * call getaline with timeout */ char * timeout_getaline(FILE * f, ...
#include "leafnode.h" #include "ln_log.h" #include <signal.h> #include <setjmp.h> #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #include <unistd.h> static sigjmp_buf to; static RETSIGTYPE timer(int sig) { (void)sig; siglongjmp(to, 1); } /* * call getaline with timeout */ char * timeout_getaline(FILE * ...
Fix type: jmp_buf -> sigjmp_buf.
Fix type: jmp_buf -> sigjmp_buf.
C
lgpl-2.1
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
112bb84c8ea50a4e5a415723906ea314a4cd374a
transmitter/comm.h
transmitter/comm.h
#ifndef COMM_H_ #define COMM_H_ #define COMM_BUFFER_LEN 3 typedef struct{ uint8_t key; uint16_t val; } comm_t; // Buffer messages to sent to the monitor comm_t comm_buffer[COMM_BUFFER_LEN]; unsigned char comm_head; unsigned char comm_tail; /** * Push an element onto the end of the buffer. */ void comm_push(c...
#ifndef COMM_H_ #define COMM_H_ #define COMM_BUFFER_LEN 4 typedef struct{ uint8_t key; uint16_t val; } comm_t; // Buffer messages to sent to the monitor comm_t comm_buffer[COMM_BUFFER_LEN]; unsigned char comm_head; unsigned char comm_tail; /** * Push an element onto the end of the buffer. */ void comm_push(c...
Make the buffer a little larger
Make the buffer a little larger
C
mit
theapi/quadcopter
2ee6ed64ebc9875b2aa143b52a6dac2590cbe569
src/zcash/Zcash.h
src/zcash/Zcash.h
#ifndef _ZCCONSTANTS_H_ #define _ZCCONSTANTS_H_ #define ZC_NUM_JS_INPUTS 2 #define ZC_NUM_JS_OUTPUTS 2 #define INCREMENTAL_MERKLE_TREE_DEPTH 29 #define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4 #define ZC_NOTEPLAINTEXT_LEADING 1 #define ZC_V_SIZE 8 #define ZC_RHO_SIZE 32 #define ZC_R_SIZE 32 #define ZC_MEMO_SIZE 512 #...
#ifndef _ZCCONSTANTS_H_ #define _ZCCONSTANTS_H_ #define ZC_NUM_JS_INPUTS 2 #define ZC_NUM_JS_OUTPUTS 2 #define INCREMENTAL_MERKLE_TREE_DEPTH 29 #define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4 #define ZC_NOTEPLAINTEXT_LEADING 1 #define ZC_V_SIZE 8 #define ZC_RHO_SIZE 32 #define ZC_R_SIZE 32 #define ZC_MEMO_SIZE 512 #...
Add parenthesis around macro value definition
Add parenthesis around macro value definition
C
mit
bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash
9d91e7e87b791e281f07d5a19117b1ebc7a6ec73
compat/compat.h
compat/compat.h
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \ (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \ if ((vsp)->tv_nsec < 0) { \ (vsp)->tv_sec--; ...
#ifndef COMPAT_H #define COMPAT_H #ifndef HAVE_PLEDGE #include "pledge.h" #endif /* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */ #ifndef CLOCK_MONOTONIC #define CLOCK_MONOTONIC CLOCK_REALTIME #endif #ifndef timespecsub #define timespecsub(tsp, usp, vsp) \ do { \ (vsp)->tv_sec = (tsp)->tv_s...
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
C
bsd-2-clause
fcambus/statzone
008450bab039ce5b287155faddf118bfe8e71a27
tests/divide/in.c
tests/divide/in.c
#include <assert.h> int main() { int x = 285; int y = 23; assert(x / y == 12); return 0; }
Add forgotten test for /
Add forgotten test for /
C
mit
orodley/naive,orodley/naive,orodley/naive,orodley/naive
495efcbb59a71a305b9036da895b4651f6b3d72c
cpp/EXGL.h
cpp/EXGL.h
#ifndef __EXGL_H__ #define __EXGL_H__ #include <OpenGLES/ES2/gl.h> #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' value. typedef unsigned int EXGLContextId; // [JS thread] Create an EXGL cont...
#ifndef __EXGL_H__ #define __EXGL_H__ #include <OpenGLES/ES2/gl.h> #include <JavaScriptCore/JSBase.h> #ifdef __cplusplus extern "C" { #endif // Identifies an EXGL context. No EXGL context has the id 0, so that can be // used as a 'null' value. typedef unsigned int EXGLContextId; // [JS thread] Create an EXGL cont...
Clarify need for custom default framebuffer
Clarify need for custom default framebuffer fbshipit-source-id: 40e157b
C
bsd-3-clause
exponentjs/exponent,exponentjs/exponent,exponent/exponent,jolicloud/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,exponent/expo...
2d35923e4e043c2d5a001e1e11b36adec9e495a4
gmond/core_metrics.c
gmond/core_metrics.c
#include <metric.h> #include <gm_mmn.h> #include <libmetrics.h> mmodule core_metrics; /* ** A helper function to determine the number of cpustates in /proc/stat (MKN) */ static int core_metrics_init ( apr_pool_t *p ) { int i; for (i = 0; core_metrics.metrics_info[i].name != NULL; i++) { /* Initial...
Move heartbeat, location and gexec metrics to a core module that will always be statically linked
Move heartbeat, location and gexec metrics to a core module that will always be statically linked git-svn-id: 27e0aca8c7a52a9ae65dfba2e16879604119af8c@913 93a4e39c-3214-0410-bb16-828d8e3bcd0f
C
bsd-3-clause
fastly/ganglia,fastly/ganglia,fastly/ganglia,fastly/ganglia,fastly/ganglia
51f20f3dfcb48b12e1b20737e40ef035076f9461
WordPerfectIndexer/stdafx.h
WordPerfectIndexer/stdafx.h
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, // but are changed infrequently #pragma once #ifndef STRICT #define STRICT #endif #include "targetver.h" #define _CRT_SECURE_NO_WARNINGS #define _ATL_APARTMENT_THREADED #define _ATL_NO_AUTOM...
// stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, // but are changed infrequently #pragma once #ifndef STRICT #define STRICT #endif #include "targetver.h" #define _CRT_SECURE_NO_WARNINGS #define _ATL_APARTMENT_THREADED #define _ATL_NO_AUTOM...
Swap out header in precompiled header file
Swap out header in precompiled header file
C
mpl-2.0
SunburstApps/WordPerfectIndexer,SunburstApps/WordPerfectIndexer
1798b679e24088f17763729158cfd103e0270a06
lib/libgnumalloc/cfree.c
lib/libgnumalloc/cfree.c
void cfree(void *foo) { free(foo); }
/* * cfree.c */ #include <sys/cdefs.h> __FBSDID("$FreeBSD$"); void cfree(void *foo) { free(foo); }
Add __FBSDID()s to internal libgnumalloc()
Add __FBSDID()s to internal libgnumalloc()
C
bsd-3-clause
jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase
274289167ac12e6213fa502c2c1e956f4bbd1d61
src/x86/is_fpreg-x86.c
src/x86/is_fpreg-x86.c
/* libunwind - a platform-independent unwind library Copyright (c) 2004 Hewlett-Packard Development Company, L.P. Contributed by David Mosberger-Tang <davidm@hpl.hp.com> This file is part of libunwind. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated doc...
Declare as returning an "int" and fix typo.
(unw_is_fpreg): Declare as returning an "int" and fix typo. (Logical change 1.158)
C
mit
cms-externals/libunwind,mpercy/libunwind,tronical/libunwind,atanasyan/libunwind-android,android-ia/platform_external_libunwind,mpercy/libunwind,geekboxzone/mmallow_external_libunwind,maltek/platform_external_libunwind,wdv4758h/libunwind,CyanogenMod/android_external_libunwind,dropbox/libunwind,evaautomation/libunwind,li...
06e77b29734b000098ec29bf642a15bb523e180e
psimpl-c.h
psimpl-c.h
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* psimpl-c Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com> Based on psimpl Copyright ...
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ /* psimpl-c Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com> Based on psimpl Copyright ...
Update API to only support 1, 2 or 3 dimensional lines
Update API to only support 1, 2 or 3 dimensional lines
C
mpl-2.0
jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c
a59afbf3fb2b0392f19f5be8f4fac05e962fd7c4
tests/polylog-bug.c
tests/polylog-bug.c
/* gmp3.c -- Test calc of Dilogarithm. */ /* Last change: 27-Mar-2012. Ken Roberts */ /* Calc Li_2(u+iv) * then Li_2(u+iv) * again. Expect consistent results. * Looking for possible bug re caching * of info within cpx_polylog logic. */ #include <math.h> #include <stdio.h> #include <stdlib.h> #include <stdarg...
Add a polylog bug report
Add a polylog bug report
C
lgpl-2.1
linas/anant
5e35dc73b64ddcb393f291139a394007f6ebb166
include/ATM.h
include/ATM.h
#pragma once /* Customer Structure */ typedef struct customer { char name[25]; // Customer's name long int accnum; // Customer's Account Number long int balance; // Customer's Balance long long int ccn; // Customer's CCN short int pin; // Customer's PIN } customer; /* Current Logged In Custom...
#pragma once /* Customer Structure */ typedef struct customer { char name[25]; // Customer's name long int accnum; // Customer's Account Number long int balance; // Customer's Balance long long int ccn; // Customer's CCN short int pin; // Customer's PIN } customer; /* Current Logged In Custom...
Fix declaration of welcome message!
Fix declaration of welcome message!
C
mit
saifali96/ATM-Simulator,saifali96/ATM-Simulator
3038605c0256d43291a0f1ac1cebd54d5bcb4876
ch1/uniqueChars.c
ch1/uniqueChars.c
#include <stdio.h> int main(int argc, char** argv) { if (argc < 2) { return 1; // No word given - error } char* word = argv[1]; int index = 0; short seen[256] = {0}; char c; while (c = word[index]) { printf("%c\n", c); if (seen[c]) { printf("Not unique ...
Determine if a string has all unique chars
Determine if a string has all unique chars
C
mit
WalrusCow/ctci
d7bcc60432296b0b573194926f8a7d4164517b02
imageprocessingstrategy.h
imageprocessingstrategy.h
#ifndef IMAGEPROCESSINGSTRATEGY_H #define IMAGEPROCESSINGSTRATEGY_H #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/ocl/ocl.hpp" #include "constants.h" #include "qdebug.h" using namespace std; using namespace cv; class ImageProcessingStrategy { public: ImageProcess...
#ifndef IMAGEPROCESSINGSTRATEGY_H #define IMAGEPROCESSINGSTRATEGY_H #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/gpu/gpu.hpp" #include "constants.h" #include "qdebug.h" using namespace std; using namespace cv; class ImageProcessingStrategy { public: ImageProcess...
Fix cuda incomplete type issue
Fix cuda incomplete type issue
C
mit
emmamm05/parkeye,emmamm05/parkeye,emmamm05/parkeye
2ddb08c1f7f69a3d7da1820d40fd32910a37c617
include/timers.h
include/timers.h
/************************************************* * Timestamp Functions Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_TIMERS_H__ #define BOTAN_TIMERS_H__ #include <botan/base.h> namespace Botan { /*******************...
/************************************************* * Timestamp Functions Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_TIMERS_H__ #define BOTAN_TIMERS_H__ #include <botan/base.h> namespace Botan { /*******************...
Add BOTAN_DLL to Timer class declaration
Add BOTAN_DLL to Timer class declaration
C
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,randombit/botan,webmaster1...
afca1b7a6a332d667bf9f92a0402a51af1a51ff6
test/tests.c
test/tests.c
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include "../src/rootdb.h" int main(void) { MDB_env *env; MDB_dbi dbi; int status; status = rootdb_open(&env, &dbi, "./testingdb"); assert(status == 0); char key_char[] = "hello"; char value_char[] = "world"; MDB_val key; MDB_val value; ...
#include <stdlib.h> #include <stdio.h> #include <assert.h> #include <string.h> #include "../src/rootdb.h" int main(void) { MDB_env *env; MDB_dbi dbi; int status; status = rootdb_open(&env, &dbi, "./testingdb"); assert(status == 0); char key_char[] = "hello"; char value_char[] = "world"; MDB_val key; ...
Add assertion for value in get/put test
Add assertion for value in get/put test
C
mit
braydonf/rootdb,braydonf/rootdb,braydonf/rootdb
509a2f29b962ea555660743a485f97b1dacbaf1d
tmcd/decls.h
tmcd/decls.h
/* * Insert Copyright Here. */ #ifdef LBS #define MASTERNODE "206.163.153.25" #else #define MASTERNODE "boss.emulab.net" #endif #define TBSERVER_PORT 7777 #define MYBUFSIZE 1024
/* * Insert Copyright Here. */ #ifdef LBS #define MASTERNODE "192.168.1.25" #else #define MASTERNODE "boss.emulab.net" #endif #define TBSERVER_PORT 7777 #define MYBUFSIZE 1024
Change the IP of my home machine for testing.
Change the IP of my home machine for testing.
C
agpl-3.0
nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome
521c91c3b5ec34462ae0202d61ab029a86d5bca8
lib/uart.h
lib/uart.h
/** * This is used to setup the UART device on an AVR unit. */ #pragma once #include <avr/io.h> #ifndef BAUD # define BAUD 9600 # warning BAUD rate not set. Setting BAUD rate to 9600. #endif // BAUD #define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) static inline void uart_enable(void) { UBRR0H = BAUDRATE >> 8; UBR...
/** * This is used to setup the UART device on an AVR unit. */ #pragma once #ifdef __cplusplus extern "C" { #endif #include <avr/io.h> #ifndef BAUD # define BAUD 9600 # warning BAUD rate not set. Setting BAUD rate to 9600. #endif // BAUD #define BAUDRATE ((F_CPU)/(BAUD*16UL)-1) /** * @brief Enables the UART...
Add some comments, clean up the code, and add extern "C".
Add some comments, clean up the code, and add extern "C".
C
mpl-2.0
grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr
584110ed44810e40f029e985612acdb421d504b3
LYPopView/Classes/PopView.h
LYPopView/Classes/PopView.h
// // PopView.h // LYPOPVIEW // // CREATED BY LUO YU ON 19/12/2016. // COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED. // #ifndef PopView_h #define PopView_h #import <LYPopView/LYPopView.h> #import <LYPopView/LYPopMessage.h> #import <LYPopView/LYPopTable.h> #import <LYPopView/LYPopActionView.h> #endif /* PopView_h...
// // PopView.h // LYPOPVIEW // // CREATED BY LUO YU ON 19/12/2016. // COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED. // #ifndef PopView_h #define PopView_h #import <LYPopView/LYPopView.h> #import <LYPopView/LYPopMessage.h> #import <LYPopView/LYPopTable.h> #import <LYPopView/LYPopDate.h> #import <LYPopView/LYPopAc...
Add : date picker pop view importer
Add : date picker pop view importer
C
mit
blodely/LYPopView,blodely/LYPopView
41e95da32afb7457e28427975e4fc07ca218ddc1
src/laco.h
src/laco.h
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState { struct lua_State* L; const char* version; int argc; const char** argv; int status; }; /** * Initilazation of laco's state * * param pointer to LacoState * param argument count (argc) * p...
#ifndef __LACO_H #define __LACO_H struct lua_State; /* State of laco REPL */ struct LacoState { struct lua_State* L; const char* version; int argc; const char** argv; int status; }; typedef struct LacoState LacoState; /** * Initilazation of laco's state * * param pointer to LacoState * para...
Add typedef of LacoState in header
Add typedef of LacoState in header This is so the code base isn't littered with `typedef struct LacoState LacoState`.
C
bsd-2-clause
sourrust/laco
7fc441ff876199bae81d250f10f931138f9be1bf
7segments.c
7segments.c
main(int u,char**a){for(;u<129;u*=8)for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
main(int u,char**a){for(char*c,y;y=u;u*=8)for(c=a[1];*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);}
Save one more byte by casting loop counter u to a char
Save one more byte by casting loop counter u to a char
C
mit
McZonk/7segements,McZonk/7segements
176b88ed92daa22bd561e61a53f5a7a4866ca81e
alura/c/adivinhacao.c
alura/c/adivinhacao.c
#include <stdio.h> int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; printf("Qual é o seu chute? "...
#include <stdio.h> int main() { // imprime o cabecalho do nosso jogo printf("******************************************\n"); printf("* Bem vindo ao nosso jogo de adivinhação *\n"); printf("******************************************\n"); int numerosecreto = 42; int chute; printf("Qual é o seu chute? "...
Update files, Alura, Introdução a C, Aula 2.3
Update files, Alura, Introdução a C, Aula 2.3
C
mit
fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs
fac6dbb6292944a258dee1b726df16c78c2d0c90
src/lib/utils/rounding.h
src/lib/utils/rounding.h
/* * Integer Rounding Functions * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_ROUNDING_H_ #define BOTAN_ROUNDING_H_ #include <botan/types.h> namespace Botan { /** * Round up * @param n a non-negative integer * @param align_to the alignment bound...
/* * Integer Rounding Functions * (C) 1999-2007 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #ifndef BOTAN_ROUNDING_H_ #define BOTAN_ROUNDING_H_ #include <botan/types.h> namespace Botan { /** * Round up * @param n a non-negative integer * @param align_to the alignment bound...
Remove clamp, which was unused
Remove clamp, which was unused (And replaced by the std:: version in C++17 if we did need it)
C
bsd-2-clause
randombit/botan,randombit/botan,randombit/botan,randombit/botan,randombit/botan
0e3d9a4ce3640f5935e3f17b043497fdaf305c01
Braintree/3D-Secure/@Public/Braintree-3D-Secure.h
Braintree/3D-Secure/@Public/Braintree-3D-Secure.h
// All-in-one import for Braintree 3D Secure #import <Braintree/BTThreeDSecure.h>
// All-in-one import for Braintree 3D Secure #import <Braintree/BTThreeDSecure.h>
Add a new line to end of file
Add a new line to end of file
C
mit
bytemarkinc/braintree_ios,bytemarkinc/braintree_ios,Feverup/braintree_ios,apascual/braintree_ios,apascual/braintree_ios,TeachersPayTeachers/braintree_ios,TeachersPayTeachers/braintree_ios,billCTG/braintree_ios,TeachersPayTeachers/braintree_ios,EverettQuebral/braintree_ios,Feverup/braintree_ios,billCTG/braintree_ios,Eve...
ee5bc070ec0ce0f231cd1cf9728d83f80c076ff7
CocoaControls/CocoaControls/RSCCControlCellView.h
CocoaControls/CocoaControls/RSCCControlCellView.h
// // RSCCControlCellView.h // CocoaControls // // Created by R0CKSTAR on 14-5-5. // Copyright (c) 2014年 P.D.Q. All rights reserved. // #import <Cocoa/Cocoa.h> extern int const RSCCControlCellViewImageButtonTagBase; extern int const RSCCControlCellViewCocoaPodsButtonTagBase; extern int const RSCCControlCellViewCl...
// // RSCCControlCellView.h // CocoaControls // // Created by R0CKSTAR on 14-5-5. // Copyright (c) 2014年 P.D.Q. All rights reserved. // #import <Cocoa/Cocoa.h> extern int const RSCCControlCellViewImageButtonTagBase; extern int const RSCCControlCellViewCocoaPodsButtonTagBase; extern int const RSCCControlCellViewCl...
Change nonatomic, weak to assign for all IBOutlets
Change nonatomic, weak to assign for all IBOutlets
C
mit
yeahdongcn/CocoaControlsPlugin
fef701f7b0975c523cbe5a2e8e9730328a9f071a
core/base/inc/TThreadSlots.h
core/base/inc/TThreadSlots.h
// @(#)root/thread:$Id$ // Author: Philippe Canal 09/30/2011 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
// @(#)root/base:$Id$ // Author: Philippe Canal 09/30/2011 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Fix module loc. Add missing final newline.
Fix module loc. Add missing final newline. git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41534 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
esakellari/my_root_for_test,krafczyk/root,buuck/root,sbinet/cxx-root,vukasinmilosevic/root,esakellari/my_root_for_test,sawenzel/root,Duraznos/root,gganis/root,sawenzel/root,CristinaCristescu/root,agarciamontoro/root,esakellari/my_root_for_test,dfunke/root,arch1tect0r/root,davidlt/root,abhinavmoudgil95/root,krafczyk/roo...
37fb2148f2634989191e5770f3a2eabd93d3a3c7
lilthumb.h
lilthumb.h
#ifndef lilthumb #define lilthumb #include <ctime> #include <ostream> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); re...
#ifndef lilthumb #define lilthumb #include <ctime> #include <ostream> namespace lilthumb{ std::string timeString() { time_t rawtime; struct tm * timeinfo; char buffer[80]; time (&rawtime); timeinfo = localtime(&rawtime); strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo); std::string str(buffer); re...
Add a n-tuple vector logging function
Add a n-tuple vector logging function
C
apache-2.0
jeromevelut/lilthumb
b5f6cbbacfbb7a24599912e77c349f4ac1101c8f
High_Temp.h
High_Temp.h
/* High_Temp.h 2014 Copyright (c) Seeed Technology Inc. All right reserved. Loovee 2013-4-14 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Lice...
/* High_Temp.h 2014 Copyright (c) Seeed Technology Inc. All right reserved. Loovee 2013-4-14 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the Lice...
Add virtual decl to getAnalog to enable overloading
Add virtual decl to getAnalog to enable overloading
C
mit
mhaas/Grove_HighTemp_Sensor
0c15a524c532c1006a7bd36d3a680f8e8b8db9fc
src/include/pg_getopt.h
src/include/pg_getopt.h
/* * Portions Copyright (c) 1987, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group * * src/include/pg_getopt.h */ #ifndef PG_GETOPT_H #define PG_GETOPT_H /* POSIX says getopt() is provided by unistd.h */ #in...
/* * Portions Copyright (c) 1987, 1993, 1994 * The Regents of the University of California. All rights reserved. * * Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group * * src/include/pg_getopt.h */ #ifndef PG_GETOPT_H #define PG_GETOPT_H /* POSIX says getopt() is provided by unistd.h */ #in...
Allow for platforms that have optreset but not <getopt.h>.
Allow for platforms that have optreset but not <getopt.h>. Reportedly, some versions of mingw are like that, and it seems plausible in general that older platforms might be that way. However, we'd determined experimentally that just doing "extern int" conflicts with the way Cygwin declares these variables, so explici...
C
mpl-2.0
Postgres-XL/Postgres-XL,yazun/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,xinzweb/gpdb,50wu/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,50wu/gpdb,oberstet/postgres-xl,techdragon/Postgres-X...
a15f0d5910d660ab8cd5c9d98316115c88e16713
Classes/Core/KWMatching.h
Classes/Core/KWMatching.h
// // Licensed under the terms in License.txt // // Copyright 2010 Allen Ding. All rights reserved. // #import "KiwiConfiguration.h" @protocol KWMatching<NSObject> #pragma mark - Initializing - (id)initWithSubject:(id)anObject; #pragma mark - Getting Matcher Strings + (NSArray *)matcherStrings; #pragma mark - Ge...
// // Licensed under the terms in License.txt // // Copyright 2010 Allen Ding. All rights reserved. // #import "KiwiConfiguration.h" @protocol KWMatching<NSObject> #pragma mark - Initializing - (id)initWithSubject:(id)anObject; #pragma mark - Getting Matcher Strings + (NSArray *)matcherStrings; #pragma mark - Ge...
Use method declaration instead of property
Use method declaration instead of property
C
bsd-3-clause
carezone/Kiwi,tangwei6423471/Kiwi,emodeqidao/Kiwi,weslindsay/Kiwi,tcirwin/Kiwi,LiuShulong/Kiwi,weslindsay/Kiwi,JoistApp/Kiwi,tcirwin/Kiwi,howandhao/Kiwi,iosRookie/Kiwi,weslindsay/Kiwi,tonyarnold/Kiwi,iosRookie/Kiwi,allending/Kiwi,tcirwin/Kiwi,ecaselles/Kiwi,PaulTaykalo/Kiwi,ecaselles/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,...
a48ecd50079818e7a4d1444a1d14aebefb9cbb67
FringeFM/FFMSongUpdater.h
FringeFM/FFMSongUpdater.h
// // FFMSongUpdater.h // FringeFM // // Created by John Sheets on 6/10/12. // Copyright (c) 2012 John Sheets. All rights reserved. // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal //...
// // FFMSongUpdater.h // FringeFM // // Created by John Sheets on 6/10/12. // Copyright (c) 2012 John Sheets. All rights reserved. // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal //...
Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip).
Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip).
C
mit
jsheets/FringeFM
5e55843bb8ed1ec7d134a759c53e34beb1618952
include/asm-mn10300/ipcbuf.h
include/asm-mn10300/ipcbuf.h
#ifndef _ASM_IPCBUF_H_ #define _ASM_IPCBUF_H /* * The ipc64_perm structure for MN10300 architecture. * Note extra padding because this structure is passed back and forth * between kernel and user space. * * Pad space is left for: * - 32-bit mode_t and seq * - 2 miscellaneous 32-bit values */ struct ipc64_perm...
#ifndef _ASM_IPCBUF_H #define _ASM_IPCBUF_H /* * The ipc64_perm structure for MN10300 architecture. * Note extra padding because this structure is passed back and forth * between kernel and user space. * * Pad space is left for: * - 32-bit mode_t and seq * - 2 miscellaneous 32-bit values */ struct ipc64_perm ...
Fix typo in header guard
MN10300: Fix typo in header guard Fix a typo in the header guard of asm/ipc.h. Signed-off-by: Vegard Nossum <c9abf7248a519119ccb31f4fd3c3a4e0b6ebd20b@gmail.com> Signed-off-by: David Howells <ebac1d06c1688626821bb0e574a037a7a5354e49@redhat.com> Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@li...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
da16baebce5c500fa77b346e18a68e0e31c453f4
set/prod.c
set/prod.c
int set_empty(void) { return 0; } int set_size(int set) { int size = 0; while (set) { size += set & 1; set >>= 1; } return size; } int set_add(int set, int element) { return set | (1 << element); }
int set_empty(void) { return 0; } int set_size(int set) { /* Bit-Twiddling Hacks */ /* TODO: shall export to bits module to provide more robust solutions * based on hardware capabilities (eg. popcount instruction) */ set = set - ((set >> 1) & ~(unsigned int)0/3); set = (set & ~(unsigned int)0/15*3) + ((set >> 2...
Optimize counting size of larger sets
[SET] REFACTOR: Optimize counting size of larger sets
C
mit
w3ln4/open
78207b6e00ed9a4d296bbfce43da63b1e034a84e
spinlock.h
spinlock.h
#pragma once #define SPINLOCK_DEBUG 1 // Mutual exclusion lock. struct spinlock { u32 locked; // Is the lock held? #if SPINLOCK_DEBUG // For debugging: char *name; // Name of lock. struct cpu *cpu; // The cpu holding the lock. uptr pcs[10]; // The call stack (an array of program counte...
#pragma once #define SPINLOCK_DEBUG 1 // Mutual exclusion lock. struct spinlock { u32 locked; // Is the lock held? #if SPINLOCK_DEBUG // For debugging: char *name; // Name of lock. struct cpu *cpu; // The cpu holding the lock. uptr pcs[10]; // The call stack (an array of program counte...
Make lockname(s) a macro instead of a inline.
Make lockname(s) a macro instead of a inline.
C
mit
aclements/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6
4705e8ddf88e130ce1899366e2647176ce6d9407
src/main.c
src/main.c
#include "backend.h" #include "frontend.h" #include <ncurses.h> int main() { initscr(); cbreak(); noecho(); keypad(stdscr, TRUE); // make keys work curs_set(0); // hide cursor timeout(100); int xmax; int ymax; getmaxyx(stdscr, ymax, xmax); enum Direction dir = RIGHT; Board* board = create_board...
#include "backend.h" #include "frontend.h" #include <ncurses.h> int main() { initscr(); cbreak(); noecho(); keypad(stdscr, TRUE); // make keys work curs_set(0); // hide cursor timeout(100); int xmax; int ymax; getmaxyx(stdscr, ymax, xmax); enum Direction dir = RIGHT; Board* board = create_board...
Call `clear` and `refresh` to update screen
Call `clear` and `refresh` to update screen
C
mit
jvns/snake,jvns/snake
fcd34497864825e90f2c0331278142e10dec2ae0
src/main.h
src/main.h
// Copyright (c) 2016 Brian Barto // // This program is free software; you can redistribute it and/or modify it // under the terms of the MIT License. See LICENSE for more details. #ifndef MAIN_H #define MAIN_H 1 #define VERSION "0.1.0" #define DEFAULT_KEY_NAME "default" #define DEFAULT_KEY_PATH ".config/mir...
// Copyright (c) 2016 Brian Barto // // This program is free software; you can redistribute it and/or modify it // under the terms of the MIT License. See LICENSE for more details. #ifndef MAIN_H #define MAIN_H 1 #define VERSION "0.1.0" #define DEFAULT_KEY_NAME "default" #define DEFAULT_KEY_PATH ".config/mrr...
Change config dir name to mrrcrypt
Change config dir name to mrrcrypt modified: src/main.h
C
mit
bartobri/mirror-crypt
262e8b301b1369581e80af57508e55035cf78916
sw/device/lib/testing/test_rom/english_breakfast_fake_driver_funcs.c
sw/device/lib/testing/test_rom/english_breakfast_fake_driver_funcs.c
// Copyright lowRISC contributors. // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/silicon_creator/lib/drivers/lifecycle.h" #include "sw/device/silicon_creator/lib/drivers/otp.h" #include "sw/device/silicon_creator/lib/drivers/rstmg...
Add fake functions for hardware missing in english breakfast
[sw/test_rom] Add fake functions for hardware missing in english breakfast Signed-off-by: Alphan Ulusoy <23b245cc5a07aacf75a9db847b24c67dee1707bf@google.com>
C
apache-2.0
lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan
0272010e05ecc508be41317eb8f392a78a707eab
src/util.c
src/util.c
/** * @file util.c * @author Bryce Davis * @date 19 November 2015 * @brief Header file for internal libbad declarations * @copyright Copyright (c) 2015, Bryce Davis. Released under the MIT License. * See LICENSE.txt for details. */ #include <stdio.h> #include "libbad_base.h" /** * @...
Implement function to print an integer from a DATA
Implement function to print an integer from a DATA
C
mit
mahimahi42/libbad
d257a1c2e1d577e7902d47696b9f98ece299e7dd
src/dnscap_common.h
src/dnscap_common.h
/* * setup MY_BPFTIMEVAL as the timeval structure that bpf packets * will be assoicated with packets from libpcap */ #ifdef __OpenBSD__ # define MY_BPFTIMEVAL bpf_timeval #endif #ifndef MY_BPFTIMEVAL # define MY_BPFTIMEVAL timeval #endif typedef struct MY_BPFTIMEVAL my_bpftimeval; /* * Structure to contain IP add...
#include <netinet/in.h> /* * setup MY_BPFTIMEVAL as the timeval structure that bpf packets * will be assoicated with packets from libpcap */ #ifndef MY_BPFTIMEVAL # define MY_BPFTIMEVAL timeval #endif typedef struct MY_BPFTIMEVAL my_bpftimeval; /* * Structure to contain IP addresses */ typedef struct { ...
Fix compilation on FreeBSD and OpenBSD
Fix compilation on FreeBSD and OpenBSD
C
isc
verisign/dnscap,verisign/dnscap
39878a58e58dfa4029c0ddfc2f3c45098fe06466
libgdi/gdi_shape.h
libgdi/gdi_shape.h
/* FreeRDP: A Remote Desktop Protocol client. GDI Shape Functions Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a...
/* FreeRDP: A Remote Desktop Protocol client. GDI Shape Functions Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License a...
Fix missing declaration for ShapeInit()
Fix missing declaration for ShapeInit()
C
apache-2.0
FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old
cb14a9aaa5fa50b22982f14aeab7d9f2f634ea3d
tests/vio_tests/check_vio_file_stat.c
tests/vio_tests/check_vio_file_stat.c
#include "support.h" #include "vio/csync_vio_file_stat.h" START_TEST (check_csync_vio_file_stat_new) { csync_vio_file_stat_t *stat = NULL; stat = csync_vio_file_stat_new(); fail_if(stat == NULL, NULL); csync_vio_file_stat_destroy(stat); } END_TEST static Suite *csync_vio_suite(void) { Suite *s = suite_c...
#include "support.h" #include "vio/csync_vio_file_stat.h" START_TEST (check_csync_vio_file_stat_new) { csync_vio_file_stat_t *tstat = NULL; tstat = csync_vio_file_stat_new(); fail_if(tstat == NULL, NULL); csync_vio_file_stat_destroy(tstat); } END_TEST static Suite *csync_vio_suite(void) { Suite *s = sui...
Fix build warning for shadowed variable.
Fix build warning for shadowed variable.
C
lgpl-2.1
meeh420/csync,gco/csync,meeh420/csync,gco/csync,meeh420/csync,gco/csync,gco/csync
bef527848955070cab42bcc1f42799656e8da0a6
src/hostnet/stubs_utils.c
src/hostnet/stubs_utils.c
#include <caml/mlvalues.h> #include <caml/memory.h> #include <caml/custom.h> #include <caml/callback.h> #include <caml/alloc.h> #include <stdio.h> #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <ws2tcpip.h> #else #include <sys/socket.h> #endif CAMLprim value stub_get_SOMAXCONN(){ fprintf(s...
#include <caml/mlvalues.h> #include <caml/memory.h> #include <caml/custom.h> #include <caml/callback.h> #include <caml/alloc.h> #include <stdio.h> #ifdef WIN32 #define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <ws2tcpip.h> #else #include <sys/socket.h> #endif CAMLprim value stub_get_SOMAXCONN(value unit){ ...
Add `value` parameter to SOMAXCONN binding
Add `value` parameter to SOMAXCONN binding Problem spotted by yallop in https://github.com/moby/vpnkit/commit/8d718125a66fbe746ba17ad3e85b7924ac0ed9a4#commitcomment-21930309 Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@docker.com>
C
apache-2.0
djs55/vpnkit,djs55/vpnkit,djs55/vpnkit
c03dcdf5e249ac87c917f3b57f2f532be7fa3aa1
iOS/AIBHTMLWebView.h
iOS/AIBHTMLWebView.h
// // AIBHTMLWebView.h // AIBHTMLWebView // // Created by Thomas Parslow on 05/04/2015. // Copyright (c) 2015 Thomas Parslow. MIT License. // #import "RCTView.h" @class RCTEventDispatcher; @interface AIBHTMLWebView : RCTView @property (nonatomic, strong) NSString *HTML; - (instancetype)initWithEventDispatcher:...
// // AIBHTMLWebView.h // AIBHTMLWebView // // Created by Thomas Parslow on 05/04/2015. // Copyright (c) 2015 Thomas Parslow. MIT License. // #import "RCTView.h" @class RCTEventDispatcher; @interface AIBHTMLWebView : RCTView @property (nonatomic, strong) NSString *HTML; - (instancetype)initWithFrame:(CGRect)fr...
Remove designated initializer compiler warnings
Remove designated initializer compiler warnings
C
mit
almost/react-native-html-webview
aa470966fb84e16c92c210236cc5348a3e4c7bb7
Settings/Controls/Label.h
Settings/Controls/Label.h
#pragma once #include "Control.h" #include "../../3RVX/Logger.h" class Label : public Control { public: Label() { } Label(int id, HWND parent) : Control(id, parent) { } virtual bool Text(std::wstring text) { bool result = Control::Text(text); if (result == false) { ...
#pragma once #include "Control.h" #include "../../3RVX/Logger.h" class Label : public Control { public: Label() { } Label(int id, HWND parent) : Control(id, parent) { } virtual bool Text(std::wstring text) { bool result = Control::Text(text); if (result == false) { ...
Test the new width functionality
Test the new width functionality
C
bsd-2-clause
Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX
b4948876ed0bd3cec6a9ac6e74fa9d1b266b6c37
ccnd/include/ccn/keystore.h
ccnd/include/ccn/keystore.h
/* * ccn/keystore.h * * KEYSTORE interface * * This is a veneer so that the ccn code can avoid exposure to the * underlying keystore implementation types */ #ifndef CCN_KEYSTORE_DEFINED #define CCN_KEYSTORE_DEFINED #include <stddef.h> struct ccn_keystore; struct ccn_keystore *ccn_keystore_create(); void ccn_k...
/* * ccn/keystore.h * * KEYSTORE interface * * This is a veneer so that the ccn code can avoid exposure to the * underlying keystore implementation types */ #ifndef CCN_KEYSTORE_DEFINED #define CCN_KEYSTORE_DEFINED #include <stddef.h> struct ccn_keystore; struct ccn_keystore *ccn_keystore_create(void); void c...
Fix missing void in parameterless call prototype
Fix missing void in parameterless call prototype
C
lgpl-2.1
svartika/ccnx,svartika/ccnx,ebollens/ccnmp,svartika/ccnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,cawka/ndnx,svartika/ccnx,ebollens/ccnmp,cawka/ndnx,cawka/ndnx,svartika/ccnx,cawka/ndnx,svartika/ccnx,ebollens/ccnmp
d0817bdc0e8416ce62f49dcd63191aac870cc3e0
src/sota_tools/ostree_hash.h
src/sota_tools/ostree_hash.h
#ifndef SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #define SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #include <cstdint> #include <cstring> // memcmp, memcpy #include <iostream> #include <string> class OSTreeHash { public: /** * Parse an OSTree hash from a string. This will normally be a root commit. * @throws OSTreeCommitPar...
#ifndef SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #define SOTA_CLIENT_TOOLS_OSTREE_HASH_H_ #include <cstdint> #include <cstring> // memcmp, memcpy #include <iostream> #include <string> class OSTreeHash { public: /** * Parse an OSTree hash from a string. This will normally be a root commit. * @throws OSTreeCommitPar...
Remove TODO test comment about OSTreeHash::Parse
Remove TODO test comment about OSTreeHash::Parse PRO-4592
C
mpl-2.0
advancedtelematic/sota_client_cpp,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/aktualizr,advancedtelematic/sota_client_cpp
d5b46a21c209a5f05b5bc96b06fa205d9e333ec5
tests/hwloc_insert_misc.c
tests/hwloc_insert_misc.c
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA * Copyright © 2009-2010 Université Bordeaux 1 * See COPYING in top-level directory. */ #include <private/config.h> #include <hwloc.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> int main(void) { hwloc_topology_t topolo...
/* * Copyright © 2009 CNRS * Copyright © 2009-2010 INRIA * Copyright © 2009-2010 Université Bordeaux 1 * See COPYING in top-level directory. */ #include <private/config.h> #include <hwloc.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> int main(void) { hwloc_topology_t topolo...
Fix a memory leak in tests
Fix a memory leak in tests This commit was SVN r2903.
C
bsd-3-clause
ggouaillardet/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,ggouaillardet/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc
a888bc12a58e8fc2abf53e97c2ff838e68fbe955
cman/qdisk/gettid.c
cman/qdisk/gettid.c
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" #include <pthread.h>...
#include <sys/types.h> #include <linux/unistd.h> #include <gettid.h> #include <unistd.h> #include <errno.h> /* Patch from Adam Conrad / Ubuntu: Don't use _syscall macro */ #ifdef __NR_gettid pid_t gettid (void) { return syscall(__NR_gettid); } #else #warn "gettid not available -- substituting with pthread_self()" ...
Add include so we get a prototype for syscall()
Add include so we get a prototype for syscall()
C
lgpl-2.1
stevenraspudic/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents,asp24/resource-agents,asp24/resource-agents,stevenraspudic/resource-agents
0cf104dc47a64079e522b9b3025a8371c09402e4
src/python/helpers/python_convert_any.h
src/python/helpers/python_convert_any.h
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_CONVERT_ANY_H #define VISTK_PYTHON_HELPERS_PYTHON_CONVERT...
/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #ifndef VISTK_PYTHON_HELPERS_PYTHON_CONVERT_ANY_H #define VISTK_PYTHON_HELPERS_PYTHON_CONVERT...
Use a class instead of a struct
Use a class instead of a struct
C
bsd-3-clause
mathstuf/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit
53b94d9190d66c1fbf910fd65d9d3a4dfef3a238
shims/graphics.h
shims/graphics.h
/* BLACK color, which I presume was defined in graphics.h */ #define BLACK 0
/* BLACK color, which I presume was defined in the original graphics.h */ #define BLACK 0 /* All my original cpp files create constant ints named true and false. This worked with the Borland C++ compiler, but not gcc. I'll redefine them with a preprocessor macro to be a non-reserved name, but first I need to i...
Handle reserved true/false variable names
Handle reserved true/false variable names
C
mit
sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta,sortelli/tankbeta
4f76d799edab526b1de4ac24b61c909336b86bb9
gba/devkitarm/source/main.c
gba/devkitarm/source/main.c
// GBT Player v3.0.9 // // SPDX-License-Identifier: MIT // // Copyright (c) 2022, Antonio Niño Díaz <antonio_nd@outlook.com> #include <gba.h> #include <stdio.h> #include "gbt_player.h" extern const uint8_t *template_data[]; int main(int argc, char *argv[]) { irqInit(); irqEnable(IRQ_VBLANK); consoleDe...
// GBT Player v3.0.9 // // SPDX-License-Identifier: MIT // // Copyright (c) 2022, Antonio Niño Díaz <antonio_nd@outlook.com> #include <gba.h> #include "gbt_player.h" extern const uint8_t *template_data[]; int main(int argc, char *argv[]) { irqInit(); irqEnable(IRQ_VBLANK); gbt_play(template_data, 5); ...
Stop using console in demo ROM
gba: Stop using console in demo ROM This makes it easier to analyse the elf map file to look for changes after modifications to GBT Player.
C
mit
AntonioND/gbt-player,AntonioND/gbt-player,AntonioND/gbt-player
b8b83dbd95aa051017ef442b311e3867cf71bf77
src/ifdwrapper.h
src/ifdwrapper.h
/* * This wraps the dynamic ifdhandler functions. The abstraction will * eventually allow multiple card slots in the same terminal. * * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 1999 * David Corcoran <corcoran@linuxnet.com> * * $Id$ */ #ifndef __ifdwrapper_h__ #define __ifdw...
/* * This wraps the dynamic ifdhandler functions. The abstraction will * eventually allow multiple card slots in the same terminal. * * MUSCLE SmartCard Development ( http://www.linuxnet.com ) * * Copyright (C) 1999 * David Corcoran <corcoran@linuxnet.com> * * $Id$ */ #ifndef __ifdwrapper_h__ #define __ifdw...
Modify the prototype of IFDOpenIFD.
Modify the prototype of IFDOpenIFD. git-svn-id: f2d781e409b7e36a714fc884bb9b2fc5091ddd28@603 0ce88b0d-b2fd-0310-8134-9614164e65ea
C
bsd-3-clause
vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android,vicamo/pcsc-lite-android
87004dbc4eab7de47be325ac4211d2ce0c43e938
src/imap/cmd-close.c
src/imap/cmd-close.c
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
/* Copyright (c) 2002-2008 Dovecot authors, see the included COPYING file */ #include "common.h" #include "commands.h" #include "imap-expunge.h" bool cmd_close(struct client_command_context *cmd) { struct client *client = cmd->client; struct mailbox *mailbox = client->mailbox; struct mail_storage *storage; if (!...
Synchronize the mailbox after expunging messages to actually get them expunged.
CLOSE: Synchronize the mailbox after expunging messages to actually get them expunged. --HG-- branch : HEAD
C
mit
dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot
e2aa329f967e3ceb9e789dbc8cf636d5fb373a3b
src/cpu/cpu.c
src/cpu/cpu.c
#define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <errno.h> #include <stdint.h> #include <sys/resource.h> #include "cpu.h" #include "../util/taskstats.h" #include "../util/file_utils.h" int current_cpus(int pid) { cpu_set_t proc_cpus; size_t mask_size = sizeof proc_cpus; int ret = sche...
#define _GNU_SOURCE #include <stdio.h> #include <sched.h> #include <errno.h> #include <stdint.h> #include <sys/resource.h> #include "cpu.h" #include "../util/taskstats.h" #include "../util/file_utils.h" int current_cpus(int pid) { cpu_set_t proc_cpus; size_t mask_size = sizeof proc_cpus; int ret = sche...
Use parse_proc for context switches if lower perms
Use parse_proc for context switches if lower perms
C
mit
tijko/dashboard
0e9372ac7a77505d62deb9a09c700b67b083b09a
include/SafeQueue.h
include/SafeQueue.h
#pragma once #include <mutex> #include <queue> // Thread safe implementation of a Queue using a std::queue template <typename T> class SafeQueue { private: std::queue<T> m_queue; std::mutex m_mutex; public: SafeQueue() { } SafeQueue(SafeQueue& other) { //TODO: } ~SafeQueue() { } bool empty...
#pragma once #include <mutex> #include <queue> // Thread safe implementation of a Queue using a std::queue template <typename T> class SafeQueue { private: std::queue<T> m_queue; std::mutex m_mutex; public: SafeQueue() { } SafeQueue(SafeQueue& other) { //TODO: } ~SafeQueue() { } bool empty...
Fix bug in dequeue that caused to return always false
Fix bug in dequeue that caused to return always false
C
mit
mtrebi/thread-pool
83760d3323bb88e46761382cb17f0ea3e62ebc63
quic/core/crypto/server_proof_verifier.h
quic/core/crypto/server_proof_verifier.h
// Copyright (c) 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef QUICHE_QUIC_CORE_CRYPTO_SERVER_PROOF_VERIFIER_H_ #define QUICHE_QUIC_CORE_CRYPTO_SERVER_PROOF_VERIFIER_H_ #include <memory> #include <string>...
Add a ServerProofVerifier interface to QUIC.
Add a ServerProofVerifier interface to QUIC. This is a server-side equivalent of ProofVerifier. It is used to verify a client's certificate chain. It will only be used when the server needs to request client certificates. ServerProofVerifier drops the VerifyProof() function (not used in TLS 1.3) and the |hostname|,...
C
bsd-3-clause
google/quiche,google/quiche,google/quiche,google/quiche
de10afff330e862d976436c702ce77165888a1f2
gdk-pixbuf/gdk-pixbuf.h
gdk-pixbuf/gdk-pixbuf.h
#ifndef _GDK_PIXBUF_H_ #define _GDK_PIXBUF_H_ #include <libart_lgpl/art_misc.h> #include <libart_lgpl/art_pixbuf.h> typedef struct { int ref_count; ArtPixBuf *art_pixbuf; void (*unref_func)(void *gdkpixbuf); } GdkPixBuf; GdkPixBuf *gdk_pixbuf_load_image (const char *file); void gdk_pixbuf_save_image (const ...
#ifndef _GDK_PIXBUF_H_ #define _GDK_PIXBUF_H_ #include <libart_lgpl/art_misc.h> #include <libart_lgpl/art_pixbuf.h> #include <glib.h> typedef struct { int ref_count; ArtPixBuf *art_pixbuf; void (*unref_func)(void *gdkpixbuf); } GdkPixBuf; GdkPixBuf *gdk_pixbuf_load_image (const char *file); void gdk_pixbuf_...
Include glib.h as it uses g* datatypes Added for gnome-config
Include glib.h as it uses g* datatypes Added for gnome-config 1999-07-23 Richard Hestilow <hestgray@ionet.net> * src/gdk-pixbuf.h: Include glib.h as it uses g* datatypes * gdk_pixbufConf.sh.in: Added for gnome-config * Makefile.am: * configure.in: Modified to generate gdk_pixbufConf....
C
lgpl-2.1
GNOME/gdk-pixbuf,GNOME/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,Distrotech/gdk-pixbuf,GNOME/gdk-pixbuf,GNOME/gdk-pixbuf,djdeath/gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,YueLinHo/MB3Gdk-pixbuf,Distrotech/gdk-pixbuf,djdeath/gdk-pixbuf,Distrotech/...
0ef3023b55fd36cace3db6e95dfa650485e54569
src/OrbitBase/include/OrbitBase/Result.h
src/OrbitBase/include/OrbitBase/Result.h
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_BASE_RESULT_H_ #define ORBIT_BASE_RESULT_H_ #include <string> #include <type_traits> #include "outcome.hpp" class ErrorMessage final { ...
// Copyright (c) 2020 The Orbit Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ORBIT_BASE_RESULT_H_ #define ORBIT_BASE_RESULT_H_ #include <string> #include <type_traits> #include "outcome.hpp" class [[nodiscard]] ErrorMes...
Add nodiscard to ErrorMessage and ErrorMessageOr
Add nodiscard to ErrorMessage and ErrorMessageOr Test: builds
C
bsd-2-clause
google/orbit,google/orbit,google/orbit,google/orbit
70917f5a1ab1b56e80daf1f2056d73ccb925c19e
src/hello.c
src/hello.c
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> int main(void) { static const char hello_world[] = "Hello world!\r\ncc65 for Challenger 1P"; unsigned int i; clrscr(); gotoxy(0, 0); cputs(hello_world); gotoxy(0, 4); for (i = 0;...
/* * Challenger 1P Hello World Program for cc65. */ #include <conio.h> int main(void) { static const char hello_world[] = "Hello world!\r\ncc65 for Challenger 1P"; unsigned int i; clrscr(); /* TODO this should be implicitly done in clrscr() */ gotoxy(0, 0); ...
Test new cursor functionality now implemented in the c1p runtime library.
Test new cursor functionality now implemented in the c1p runtime library.
C
mit
smuehlst/c1pctest,smuehlst/c1pctest
cc49d646230696b642a1d94a372c38bd3105c25d
include/TextureHandle.h
include/TextureHandle.h
/*! \file TextureHandle.h * \author Jared Hoberock * \brief Defines the interface to an opaque * pointer type for Textures. */ #pragma once #include <string> typedef unsigned int TextureHandle; struct TextureParameter { inline TextureParameter(void) :mHandle(0),mAlias(""){} inline TexturePara...
/*! \file TextureHandle.h * \author Jared Hoberock * \brief Defines the interface to an opaque * pointer type for Textures. */ #pragma once #include <string> typedef unsigned int TextureHandle; struct TextureParameter { inline TextureParameter(void) :mHandle(0),mAlias(""){} inline TexturePara...
Make the cast operator inline for use with CUDA
Make the cast operator inline for use with CUDA git-svn-id: eeeef91d721e48f02083ec31b1220ddf564a51e4@1671 3bb10773-34f4-0310-b88c-ec9d511ba0d9
C
apache-2.0
jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham,jaredhoberock/gotham
32a03501ea2030314b9b610ea0181f1f60bce11e
src/a_samp.c
src/a_samp.c
/* Copyright (C) 2011-2012 Zeex * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
/* Copyright (C) 2011-2012 Zeex * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
Make timer ID's start with 1
Make timer ID's start with 1
C
apache-2.0
Zeex/sampgdk,WopsS/sampgdk,Zeex/sampgdk,WopsS/sampgdk,WopsS/sampgdk,Zeex/sampgdk
3073b5fabe5af86afa9bae6e644f6cc515e6c438
src/animator/SkDump.h
src/animator/SkDump.h
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkDump_DEFINED #define SkDump_DEFINED #include "SkDisplayable.h" #include "SkMemberInfo.h" class SkAnimateMaker; class SkString; class SkDump ...
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkDump_DEFINED #define SkDump_DEFINED #include "SkDisplayable.h" #include "SkMemberInfo.h" class SkAnimateMaker; class SkString; class SkDump ...
Fix a stray -Winconsistent-missing-override warning.
Fix a stray -Winconsistent-missing-override warning. TBR= BUG=skia: Review URL: https://codereview.chromium.org/1261043002
C
bsd-3-clause
vanish87/skia,ominux/skia,todotodoo/skia,noselhq/skia,Hikari-no-Tenshi/android_external_skia,nvoron23/skia,tmpvar/skia.cc,qrealka/skia-hc,HalCanary/skia-hc,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,HalCanary/skia-hc,ominux/skia,nvoron23/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,vanish87/skia,...
0bf4ae3f34ae754e770c7a46bb81a70c855c2795
include/msvc_hacks.h
include/msvc_hacks.h
// This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. // // Copyright (C) 2012-2016, Ryan P. Wilson // // Authority FX, Inc. // www.authorityfx.com #ifndef AFX_M...
Add file for msvc compile
Add file for msvc compile
C
mpl-2.0
AuthorityFX/afx-nuke-plugins,AuthorityFX/afx-nuke-plugins
e45e60c78fbffded0fb138ee7d60832132d53342
src/scanner/scanner.h
src/scanner/scanner.h
#ifndef OCELOT2_SCANNER_H #define OCELOT2_SCANNER_H void get_symbol(); #endif // OCELOT2_SCANNER_H
#ifndef OCELOT2_SCANNER_H #define OCELOT2_SCANNER_H /** * Tokens */ int T_EOF; int current_symbol; void scanner_init(); void scanner_token_init(); void scanner_get_symbol(); #endif // OCELOT2_SCANNER_H
Add first token, current_symbol and function prototypes
Add first token, current_symbol and function prototypes
C
mit
danielkocher/ocelot2
5bfca9b16992084c279022c1086e555476131987
src/debug.h
src/debug.h
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG msg x #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define DBG if (0) #define MSG(x) #define PRECONDITION(x) // nothing #endif #endif
#ifndef __DEBUG_H #define __DEBUG_H #ifdef DEBUG extern bool debug; extern bool debug_z; #define DBG if (debug) #define MSG(x) DBG msg x #else #define DBG if (0) #define MSG(x) #endif #if defined(DEBUG) || defined(PRECON) #define PRECONDITION(x) if (x); else precondition( #x , __FILE__, __LINE__) #else #define PRECO...
Make PRECONDITION usable in isolation by compile time define PRECON.
Make PRECONDITION usable in isolation by compile time define PRECON.
C
lgpl-2.1
dicej/icewm,dicej/icewm,dicej/icewm,dicej/icewm
6dad07a76fce27591b93f1a9d39b86abe19efb0c
src/marks.c
src/marks.c
#include <stdio.h> #include <stdlib.h> #define MARK_SIZE 8 int read_marks(float marks[]) { char mark[MARK_SIZE]; int c = 0; for (int i = 0; i < 4; i++) { c += 1; printf("mark[%d]: ", i+1); fgets(mark, sizeof(mark), stdin); marks[i] = strtol(mark, NULL, 0); } retur...
#include <stdio.h> #include <stdlib.h> #define MARK_SIZE 8 int read_marks(float marks[]) { char mark[MARK_SIZE]; int c = 0; for (int i = 0; i < 4; i++) { c += 1; printf("mark[%d]: ", i+1); fgets(mark, sizeof(mark), stdin); marks[i] = strtol(mark, NULL, 0); } retur...
Use the size of the array passed in
Use the size of the array passed in * It'll work for any size array
C
mit
azbshiri/student
992ed68ed65b99fd76213cb355404f9a18e26da1
src/mesa/main/api_loopback.h
src/mesa/main/api_loopback.h
/* * Mesa 3-D graphics library * Version: 3.5 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, in...
/* * Mesa 3-D graphics library * Version: 3.5 * * Copyright (C) 1999-2001 Brian Paul All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, in...
Fix warning ('struct gl_context' declared inside parameter list).
main: Fix warning ('struct gl_context' declared inside parameter list). This eliminates a warning in GCC 4.7.1. Reviewed-by: Brian Paul <3cb4e1df5ec4da2c7c4af7c52cec8cf340a55a10@vmware.com> Reviewed-by: Jordan Justen <a79006884ba9cf5f4f7fcbb92a15b208780d8c97@intel.com> Reviewed-by: Ian Romanick <2b237cafb16dc45038e85...
C
mit
metora/MesaGLSLCompiler,mapbox/glsl-optimizer,benaadams/glsl-optimizer,tokyovigilante/glsl-optimizer,zeux/glsl-optimizer,zeux/glsl-optimizer,bkaradzic/glsl-optimizer,benaadams/glsl-optimizer,mapbox/glsl-optimizer,jbarczak/glsl-optimizer,tokyovigilante/glsl-optimizer,bkaradzic/glsl-optimizer,zz85/glsl-optimizer,jbarczak...
cf20031f60f3a242f0cf4e0a42e115762e2948e4
test/FrontendC/2009-07-15-pad-wchar_t-array.c
test/FrontendC/2009-07-15-pad-wchar_t-array.c
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null typedef int __darwin_wchar_t; typedef __darwin_wchar_t wchar_t; typedef signed short SQLSMALLINT; typedef SQLSMALLINT SQLRETURN; typedef enum { en_sqlstat_total } sqlerrmsg_t; SQLRETURN _iodbcdm_sqlerror( ) { wchar_t _sqlState[6] = { L"\0" }; }
// RUN: %llvmgcc -S %s -o - | llvm-as -f -o /dev/null #include <stddef.h> signed short _iodbcdm_sqlerror( ) { wchar_t _sqlState[6] = { L"\0" }; }
Fix test so it works on systems where wchar_t != int.
Fix test so it works on systems where wchar_t != int. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@75827 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,apple...
394a095665a5ac4f465d194b46da6bf77a340958
ReQL.h
ReQL.h
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { }; typedef struct _ReQL_Cur_s _ReQL_Cur_t; int _reql_connect(_ReQL_Conn_t *conn, unsigned char hos...
/** * @author Adam Grandquist */ #include "ReQL-ast.h" #ifndef _REQL_H #define _REQL_H struct _ReQL_Conn_s { int socket; int error; char *buf; unsigned int max_token; struct _ReQL_Cur_s **cursor; }; typedef struct _ReQL_Conn_s _ReQL_Conn_t; struct _ReQL_Cur_s { }; typedef struct _ReQL_Cur_s _ReQL_Cur_t;...
Add token counter and cursor array to connections.
Add token counter and cursor array to connections.
C
apache-2.0
grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core,grandquista/ReQL-Core
88877290116f8da110404ff96a3df8f508bc60a2
src/calculator/fourier/fourier_transform_fftw.h
src/calculator/fourier/fourier_transform_fftw.h
#ifndef BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #define BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #include "calculator/fourier/fourier_transform_i.h" namespace bart { namespace calculator { namespace fourier { class FourierTransformFFTW : public FourierTransformI { public: FourierTrans...
#ifndef BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #define BART_SRC_CALCULATOR_FOURIER_FOURIER_TRANSFORM_FFTW_H_ #include "calculator/fourier/fourier_transform_i.h" namespace bart { namespace calculator { namespace fourier { class FourierTransformFFTW : public FourierTransformI { public: FourierTrans...
Put constructor for FourierTransformFFTW in cc file.
Put constructor for FourierTransformFFTW in cc file.
C
mit
jsrehak/BART,jsrehak/BART
b1e795e9014c091b2dc9d997b8a292afe9780597
libcpu/timings.h
libcpu/timings.h
#ifndef __libcpu_timings_h #define __libcpu_timings_h #ifdef __MACH__ #include <mach/mach_time.h> #define abs_time() mach_absolute_time() #endif #ifdef sun #include <sys/time.h> #define abs_time() gethrtime() #endif #ifdef linux #warning High precission timing currently n/a on Linux // HACK #define abs_time() 0 #...
#ifndef __libcpu_timings_h #define __libcpu_timings_h #ifdef __MACH__ #include <mach/mach_time.h> #define abs_time() mach_absolute_time() #endif #ifdef sun #include <sys/time.h> #define abs_time() gethrtime() #endif #ifdef linux #warning High precission timing currently n/a on Linux // HACK #define abs_time() 0 #...
Make abs_time() use GetTickCount() on Windows
Make abs_time() use GetTickCount() on Windows
C
bsd-2-clause
ukatemi/libcpu,monocasa/libcpu,ukatemi/libcpu,curtiszimmerman/libcpu,curtiszimmerman/libcpu,monocasa/libcpu,monocasa/libcpu,libcpu/libcpu,libcpu/libcpu,libcpu/libcpu,ukatemi/libcpu,glguida/libcpu,libcpu/libcpu,ukatemi/libcpu,curtiszimmerman/libcpu,curtiszimmerman/libcpu,glguida/libcpu,glguida/libcpu,monocasa/libcpu,glg...
31c42798c74f5ae31a996ea17c96ec1301876a26
PWG3/PWG3baseLinkDef.h
PWG3/PWG3baseLinkDef.h
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliD0toKpi+; #pragma link C++ class AliD0toKpiAnalysis+; #pragma link C++ class AliBtoJP...
#ifdef __CINT__ #pragma link off all globals; #pragma link off all classes; #pragma link off all functions; #pragma link C++ class AliQuarkoniaAcceptance+; #pragma link C++ class AliQuarkoniaEfficiency+; #pragma link C++ class AliAODRecoDecayHF+; #pragma link C++ class AliAODRecoDecayHF2Prong+; #pragma link C++ cl...
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
Move AliD0toKpi* and AliBtoJPSI* from libPWG3base to libPWG3 (Andrea)
C
bsd-3-clause
yowatana/AliPhysics,akubera/AliPhysics,rderradi/AliPhysics,rbailhac/AliPhysics,AMechler/AliPhysics,adriansev/AliPhysics,ppribeli/AliPhysics,hcab14/AliPhysics,pbatzing/AliPhysics,dlodato/AliPhysics,ALICEHLT/AliPhysics,pbuehler/AliPhysics,alisw/AliPhysics,SHornung1/AliPhysics,dstocco/AliPhysics,hzanoli/AliPhysics,rihanph...
9796e4cc76c93344578a8fbed88feb6c552d7ba4
thcrap/src/global.c
thcrap/src/global.c
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
/** * Touhou Community Reliant Automatic Patcher * Main DLL * * ---- * * Globals, compile-time constants and runconfig abstractions. */ #include "thcrap.h" CRITICAL_SECTION cs_file_access; json_t* run_cfg = NULL; const char* PROJECT_NAME(void) { return "Touhou Community Reliant Automatic Patcher"; } c...
Increment the run configuration's reference counter.
runconfig_set(): Increment the run configuration's reference counter. Fixes bug #41 (https://bitbucket.org/nmlgc/thpatch-bugs/issue/41).
C
unlicense
thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap,VBChunguk/thcrap,thpatch/thcrap
04743587bbbf4330680ca61ef7ab4392df3529de
leafnode-version.c
leafnode-version.c
/* * (C) 2001 by Matthias Andree */ /* * This file (leafnode-version.c) is public domain. It comes without and * express or implied warranties. Do with this file whatever you wish, but * don't remove the disclaimer. */ #include <stdio.h> #include "leafnode.h" #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #i...
/* * (C) 2001 by Matthias Andree */ /* * This file (leafnode-version.c) is public domain. It comes without and * express or implied warranties. Do with this file whatever you wish, but * don't remove the disclaimer. */ #include <stdio.h> #include "leafnode.h" #ifdef WITH_DMALLOC #include <dmalloc.h> #endif #i...
Fix up the spooldir/lockfile changes that caused a segfault.
Fix up the spooldir/lockfile changes that caused a segfault.
C
lgpl-2.1
BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode
c45c927b2776def13b062707fff08974ddb4c920
motor_shield.h
motor_shield.h
#include "Arduino.h" class MotorShield { public: MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft, uint8_t speedPinRight, uint8_t dirPinRight); void init(); void forward(); void backward(); void stop(); void fullSpeed(); void stopLeft(); void stopRight(); private: in...
#include "Arduino.h" class MotorShield { public: MotorShield(uint8_t speedPinLeft, uint8_t dirPinLeft, uint8_t speedPinRight, uint8_t dirPinRight); void init(); void forward(); void backward(); void stop(); void fullSpeed(); void stopLeft(); void stopRight(); private: ui...
Change var types to the same type that constructor expects
Change var types to the same type that constructor expects
C
mit
lenon/arduino-motorshield
0458bbf2c0cbc41ff06c4db3da0f63ab0785d801
contrib/minizip/mztools.h
contrib/minizip/mztools.h
/* Additional tools for Minizip Code: Xavier Roche '2004 License: Same as ZLIB (www.gzip.org) */ #ifndef _zip_tools_H #define _zip_tools_H #ifdef __cplusplus extern "C" { #endif #ifndef _ZLIB_H #include "zlib.h" #endif #include "unzip.h" /* Repair a ZIP file (missing central directory) file: file to recov...
/* Additional tools for Minizip Code: Xavier Roche '2004 License: Same as ZLIB (www.gzip.org) */ #ifndef _zip_tools_H #define _zip_tools_H #ifdef __cplusplus extern "C" { #endif #ifndef _ZLIB_H #include "zlib.h" #endif #include "unzip.h" /* Repair a ZIP file (missing central directory) file: file to recov...
Fix bug when compiling minizip with C++ [Vollant].
Fix bug when compiling minizip with C++ [Vollant].
C
mit
Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap,Streamlet/ZLibWrap
9be6b4140cba2680fabcce7c030b531eca5a56a6
src/kernel/exceptions.h
src/kernel/exceptions.h
/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2018 EOS di Manlio Morini. * * \license * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.o...
/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2018 EOS di Manlio Morini. * * \license * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this file, * You can obtain one at http://mozilla.o...
Fix a typo in remark
[DOC] Fix a typo in remark
C
mpl-2.0
morinim/vita,morinim/vita,morinim/vita
3e2d4b53e966f253342f6a8bc9b4c39f9ebb2d05
platforms/unix/vm/sqConfig.h
platforms/unix/vm/sqConfig.h
/* Unix sqConfig.h -- platform identification and configuration */ /* This file has been superseded by autoconf for Unix variants. */ #include "config.h" #ifndef UNIX # define UNIX #endif #if !defined(LSB_FIRST) #error "LSB_FIRST is undefined. Used for setting platform endianesness!" #endif #if LSB_FIRST # defin...
/* Unix sqConfig.h -- platform identification and configuration */ /* This file has been superseded by autoconf for Unix variants. */ #include "config.h" #ifndef UNIX # define UNIX #endif #if !defined(LSB_FIRST) #error "LSB_FIRST is undefined. Used for setting platform endianesness!" #endif #if LSB_FIRST # defin...
Make the gcc/clang asm keyword available, even when running in standard C mode.
Make the gcc/clang asm keyword available, even when running in standard C mode.
C
mit
timfel/squeakvm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,timfel/squeakvm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm,OpenSmalltalk/vm
dfdb2d3dac4078fb093df46bb6cae8cf8f11b31c
src/serhex/serhex_api.h
src/serhex/serhex_api.h
#ifndef _SERHEX_H_ #define _SERHEX_H_ #include <termios.h> // POSIX terminal control definitions int configure_port(int fd, speed_t st); int open_port(char *port); int send_cmd(char *, uint8_t *, int, uint8_t *); int send_cmd_with_delay(char *, uint8_t *, int, uint8_t *, int); #endif /* _SERHEX_H_ */
#ifndef _SERHEX_H_ #define _SERHEX_H_ #include <termios.h> // POSIX terminal control definitions #include <stdint.h> int configure_port(int fd, speed_t st); int open_port(char *port); int send_cmd(char *, uint8_t *, int, uint8_t *); int send_cmd_with_delay(char *, uint8_t *, int, uint8_t *, int); #endif /* _SERHEX_H...
Fix to compile on Debian
Fix to compile on Debian Debian fails to compile because `serhex_api.h` wasn't using <stdint.h>
C
mit
RadiusNetworks/serhex,RadiusNetworks/serhex
579967a7ecedd1df1da5c42094d11ff961e28373
test/FrontendC/2011-03-18-StructReturn.c
test/FrontendC/2011-03-18-StructReturn.c
// R UN: %llvmgcc %s -S -O0 -o - | FileCheck %s // Radar 9156771 typedef struct RGBColor { unsigned short red; unsigned short green; unsigned short blue; } RGBColor; RGBColor func(); RGBColor X; void foo() { //CHECK: store i48 X = func(); }
// RUN: %llvmgcc %s -S -O0 -o - | FileCheck %s // REQUIRES: disabled // Radar 9156771 typedef struct RGBColor { unsigned short red; unsigned short green; unsigned short blue; } RGBColor; RGBColor func(); RGBColor X; void foo() { //CHECK: store i48 X = func(); }
Disable test in a way that keeps lit happy.
Disable test in a way that keeps lit happy. git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@127962 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap...
6c4ff39ac27868ece8135bb48c813d16278e043a
engine/include/resources/ResourceCache.h
engine/include/resources/ResourceCache.h
/* * Copyright (c) 2017 Lech Kulina * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #ifndef ROS_RESOURCE_CACHE_H #define ROS_RESOURCE_CACHE_H #include <core/Common.h> #include <core/Environment.h> #include <resources/ArchiveFile...
/* * Copyright (c) 2017 Lech Kulina * * This file is part of the Realms Of Steel. * For conditions of distribution and use, see copyright details in the LICENSE file. */ #ifndef ROS_RESOURCE_CACHE_H #define ROS_RESOURCE_CACHE_H #include <core/Common.h> #include <core/Environment.h> #include <resources/ArchiveFile...
Add support for computing currently used size in resource caches
Add support for computing currently used size in resource caches
C
apache-2.0
lechkulina/RealmsOfSteel,lechkulina/RealmsOfSteel
592c98eefdeaba3bf5d1be29ea497503282abf78
src/shk-trace/src/file_descriptor.h
src/shk-trace/src/file_descriptor.h
#pragma once #include <util/raii_helper.h> namespace shk { namespace detail { void closeFd(int fd); } using FileDescriptor = RAIIHelper<int, void, detail::closeFd, -1>; } // namespace shk
#pragma once #include <util/raii_helper.h> namespace shk { namespace detail { void closeFd(int fd); } // namespace detail using FileDescriptor = RAIIHelper<int, void, detail::closeFd, -1>; } // namespace shk
Add missing namespace closing comment
Style: Add missing namespace closing comment
C
apache-2.0
per-gron/shuriken,per-gron/shuriken,per-gron/shuriken,per-gron/shuriken
5e8e82b221e5528aecbd614a26b62259f4254ab1
src/util/sdk.h
src/util/sdk.h
#pragma once #include "util/none.h" #ifdef PBL_SDK_3 #define SDK_SELECT(sdk3, sdk2) sdk3 #elif PBL_SDK_2 #define SDK_SELECT(sdk3, sdk2) sdk2 #endif
#pragma once #include "util/none.h" #ifdef PBL_SDK_3 #define SDK_SELECT(sdk3, sdk2) sdk3 #define IF_SDK_3_ELSE(sdk3, other) sdk3 #define IF_SDK_2_ELSE(sdk2, other) other #define SDK_3_USAGE #define SDK_2_USAGE __attribute__((unused)) #elif PBL_SDK_2 #define SDK_SELECT(sdk3, sdk2) sdk2 #define IF_SDK_3_ELSE(sdk3, othe...
Add SDK IF_ELSE and USAGE macros
Add SDK IF_ELSE and USAGE macros
C
mit
jsfi/pebblejs,daduke/LMSController,sunshineyyy/CatchOneBus,sunshineyyy/CatchOneBus,daduke/LMSController,jiangege/pebblejs-project,jiangege/pebblejs-project,sunshineyyy/CatchOneBus,pebble/pebblejs,bkbilly/Tvheadend-EPG,youtux/PebbleShows,bkbilly/Tvheadend-EPG,pebble/pebblejs,youtux/PebbleShows,fletchto99/pebblejs,carlo-...
080514a81e4b6fba16474516aa84f48039dad111
src/handlers.c
src/handlers.c
#include "handlers.h" void warning(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.warning()\n"); vfprintf(stdout, msg, args); va_end(args); } void error(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.error()\n"); vfprin...
#include "handlers.h" void warning(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.warning()\n"); vfprintf(stdout, msg, args); va_end(args); } void error(void *ctx, const char *msg, ...) { va_list args; va_start(args, msg); fprintf(stdout, "SAX.error()\n"); vfprin...
Add overridable default message serializer
Add overridable default message serializer
C
bsd-3-clause
jonforums/xvalid,jonforums/xvalid,jonforums/xvalid
bbd6b0230feee05c6efae66c8b98b31ae7bf27cb
php_fast_assert.h
php_fast_assert.h
#ifndef PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_VERSION "0.1" #define PHP_FAST_ASSERT_EXTNAME "fast_assert" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } typedef struct _fast_assert_globals { // global object handles pointing to the 3 commonly used asse...
#ifndef PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_H #define PHP_FAST_ASSERT_VERSION "0.1.1" #define PHP_FAST_ASSERT_EXTNAME "fast_assert" #ifdef HAVE_CONFIG_H #include "config.h" #endif extern "C" { #include "php.h" } typedef struct _fast_assert_globals { // global object handles pointing to the 3 commonly used as...
Add bugfix version to match package version parity
Add bugfix version to match package version parity
C
apache-2.0
box/fast_assert,box/fast_assert,box/fast_assert
3e5235b6114772606a59e3c3165b2b0f5fa77542
mudlib/mud/home/Help/initd.c
mudlib/mud/home/Help/initd.c
#include <kotaka/paths.h> #include <kotaka/privilege.h> #include <kotaka/bigstruct.h> #include <kotaka/log.h> inherit LIB_INITD; inherit UTILITY_COMPILE; static void create() { load_dir("obj", 1); load_dir("sys", 1); } void full_reset() { object turkeylist; object cursor; object first; object this; ACCESS_CH...
#include <kotaka/paths.h> #include <kotaka/privilege.h> #include <kotaka/bigstruct.h> #include <kotaka/log.h> inherit LIB_INITD; inherit UTILITY_COMPILE; static void create() { load_dir("obj", 1); load_dir("sys", 1); } void full_reset() { object turkeylist; object cursor; object first; object this; ACCESS_CH...
Remove now needless debug spam
Remove now needless debug spam
C
agpl-3.0
shentino/kotaka,shentino/kotaka,shentino/kotaka
1242646506e66a9ee21f40b526a841aa272d3e67
src/settings.h
src/settings.h
#define PIN_GAS_PEDAL A0 #define PIN_BATTERY_VOLTAGE A1 #define PIN_CW 5 #define PIN_CCW 6 #define PIN_SWITCH_FORWARDS 12 #define PIN_SWITCH_BACKWARDS 13 #define GAS_VALUE_MIN 442 #define GAS_VALUE_MAX 520 #define BATTERY_READING_12V 670 #define BATTERY_READING_6V 331 #define BATTERY_VOLTAGE_MIN 11 #define SPEED_...
#define PIN_GAS_PEDAL A0 #define PIN_BATTERY_VOLTAGE A1 #define PIN_CW 5 #define PIN_CCW 6 #define PIN_SWITCH_FORWARDS 10 #define PIN_SWITCH_BACKWARDS 11 #define GAS_VALUE_MIN 446 #define GAS_VALUE_MAX 510 #define BATTERY_READING_12V 670 #define BATTERY_READING_6V 331 #define BATTERY_VOLTAGE_MIN 11 #define SPEED_...
Adjust Speed min/max Adjust Gas min/max Use other Pins for gear forwards/backwards
Adjust Speed min/max Adjust Gas min/max Use other Pins for gear forwards/backwards
C
mit
schinken/E-KettCar,schinken/E-KettCar
df5cb4a4b68143e4cfe8b7985cb72422d7853df1
loop.c
loop.c
#include <stdio.h> #include "sass_interface.h" int main(int argc, char** argv) { if (argc < 2) { printf("Hey, I need an input file!\n"); return 0; } while (1) { struct sass_file_context* ctx = sass_new_file_context(); ctx->options.include_paths = "::/blah/bloo/fuzz:/slub/flub/chub::/Users/Aaron/dev/...
Test to see whether or not there are memory leaks.
Test to see whether or not there are memory leaks.
C
mit
lwdgit/node-sass,panicinc/libsass,greyhwndz/node-sass,panicinc/libsass,alanhogan/node-sass,am11/node-sass,TBAPI-0KA/NSass,sass/node-sass,webdev1001/libsass,panicinc/libsass,am11/libsass,glassdimly/node-sass,gravityrail/node-sass,cfebs/node-sass,alanhogan/node-sass,greyhwndz/node-sass,sass/node-sass,nibblebot/node-sass,...
1f8fb661a63fed5affba4be75fd1cfdcc9289690
usr/openssh/src/version.h
usr/openssh/src/version.h
/* $OpenBSD: version.h,v 1.64 2012/02/09 20:00:18 markus Exp $ */ #define SSH_VERSION "OpenSSH_6.0" #define SSH_PORTABLE "p1" #define SSH_RELEASE SSH_VERSION SSH_PORTABLE
/* $OpenBSD: version.h,v 1.64 2012/02/09 20:00:18 markus Exp $ */ #define SSH_VERSION "OpenSSH_6.0" #define SSH_PORTABLE "p1" #define SSH_PORT_NOTE "Barrelfish port" #define SSH_RELEASE SSH_VERSION SSH_PORTABLE SSH_PORT_NOTE
Change the reported openssh release string to indicate the barrelfish port.
openssh: Change the reported openssh release string to indicate the barrelfish port.
C
mit
mslovy/barrelfish,kishoredbn/barrelfish,utsav2601/cmpe295A,kishoredbn/barrelfish,utsav2601/cmpe295A,mslovy/barrelfish,mslovy/barrelfish,linusyang/barrelfish,kishoredbn/barrelfish,kishoredbn/barrelfish,kishoredbn/barrelfish,8l/barrelfish,8l/barrelfish,8l/barrelfish,BarrelfishOS/barrelfish,mslovy/barrelfish,mslovy/barrel...
0abe7310a53a27594af0929e1fcd2fc807a549d4
Demo/Classes/AppDelegate.h
Demo/Classes/AppDelegate.h
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; ViewController *viewController;...
// // SVProgressHUDAppDelegate.h // SVProgressHUD // // Created by Sam Vermette on 27.03.11. // Copyright 2011 Sam Vermette. All rights reserved. // #import <UIKit/UIKit.h> @class ViewController; @interface AppDelegate : NSObject <UIApplicationDelegate> { UIWindow *__weak window; ViewController *__weak v...
Convert demo project to ARC.
Convert demo project to ARC.
C
mit
iamcharleych/SVProgressHUD,bertramdev/SVProgressHUD,Pingco/SVProgressHUD,kohtenko/SVProgressHUD,phildow/SVProgressHUD,ashfurrow/SVProgressHUD,flovilmart/SVProgressHUD,AutoScout24/SVProgressHUD,wrcj12138aaa/SVProgressHUD,zoyi/SVProgressHUD,ShyHornet/SVProgressHUD,hanangellove/SVProgressHUD,PeeJWeeJ/SwiftyHUD,tonyunreal/...
20e384988c8b20f20277a4e90557bce79af49bb9
test/default/sodium_core.c
test/default/sodium_core.c
#define TEST_NAME "sodium_core" #include "cmptest.h" int main(void) { printf("%d\n", sodium_init()); (void)sodium_runtime_has_neon(); (void)sodium_runtime_has_sse2(); (void)sodium_runtime_has_sse3(); return 0; }
#define TEST_NAME "sodium_core" #include "cmptest.h" int main(void) { printf("%d\n", sodium_init()); (void)sodium_runtime_has_neon(); (void)sodium_runtime_has_sse2(); (void)sodium_runtime_has_sse3(); (void)sodium_runtime_has_pclmul(); (void)sodium_runtime_has_aesni(); return 0; }
Test for presence of new sodium_runtime_has_*() functions
Test for presence of new sodium_runtime_has_*() functions
C
isc
eburkitt/libsodium,eburkitt/libsodium,rustyhorde/libsodium,rustyhorde/libsodium,Payshares/libsodium,Payshares/libsodium,pmienk/libsodium,rustyhorde/libsodium,pmienk/libsodium,Payshares/libsodium,eburkitt/libsodium,rustyhorde/libsodium,pmienk/libsodium
e7ea97c272f62f4a66a11831191bcdc1f3af03fb
examples/dist/prob.c
examples/dist/prob.c
#include <assert.h> #include <inform/dist.h> #include <math.h> int main() { inform_dist *dist = inform_dist_create((uint32_t[4]){3, 0, 1, 2}, 4); assert(abs(inform_dist_prob(dist, 0) - 0.5) < 1e-6); assert(abs(inform_dist_prob(dist, 1) - 0.0) < 1e-6); assert(abs(inform_dist_prob(dist, 2) - 0.1666...
#include <assert.h> #include <inform/dist.h> #include <math.h> int main() { inform_dist *dist = inform_dist_create((uint32_t[4]){3, 0, 1, 2}, 4); assert(fabs(inform_dist_prob(dist, 0) - 0.5) < 1e-6); assert(fabs(inform_dist_prob(dist, 1) - 0.0) < 1e-6); assert(fabs(inform_dist_prob(dist, 2) - 0.1...
Fix example build under clang
Fix example build under clang
C
mit
dglmoore/Inform,ELIFE-ASU/Inform,ELIFE-ASU/Inform,dglmoore/Inform
5aec5635d54290e070d0da3987468aeb416ea17d
fq/test/t-pth_root.c
fq/test/t-pth_root.c
/*============================================================================= This file is part of FLINT. FLINT is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, ...
Add a test for fq_pth_root.
Add a test for fq_pth_root.
C
lgpl-2.1
dsroche/flint2,fredrik-johansson/flint2,jpflori/flint2,jpflori/flint2,fredrik-johansson/flint2,fredrik-johansson/flint2,jpflori/flint2,dsroche/flint2,jpflori/flint2,wbhart/flint2,dsroche/flint2,wbhart/flint2,wbhart/flint2,dsroche/flint2