commit
stringlengths
40
40
old_file
stringlengths
4
237
new_file
stringlengths
4
237
old_contents
stringlengths
1
4.24k
new_contents
stringlengths
1
4.87k
subject
stringlengths
15
778
message
stringlengths
15
8.75k
lang
stringclasses
266 values
license
stringclasses
13 values
repos
stringlengths
5
127k
acadbfb90a54673d6c8b05aa4e93218433890411
arch/alpha/include/asm/bug.h
arch/alpha/include/asm/bug.h
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 #...
#ifndef _ALPHA_BUG_H #define _ALPHA_BUG_H #include <linux/linkage.h> #ifdef CONFIG_BUG #include <asm/pal.h> /* ??? Would be nice to use .gprel32 here, but we can't be sure that the function loaded the GP, so this could fail in modules. */ #define BUG() do { \ __asm__ __volatile__( \ "call_pal %0 #...
Convert BUG() to use unreachable()
alpha: Convert BUG() to use unreachable() Use the new unreachable() macro instead of for(;;); Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com> CC: Richard Henderson <aea4fd857e97ee7d33f60175ba9388a955b9d916@twiddle.net> CC: Ivan Kokshaysky <ec437ab60af367f0fec0f6a3cd47f9cbad7b4...
C
apache-2.0
TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program...
2536840398104b0270ba1156b1ff63cb4ae2a2ef
AsynchFilePlugin/AsynchFilePlugin.h
AsynchFilePlugin/AsynchFilePlugin.h
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, long fileName...
/* Header file for AsynchFile plugin */ /* module initialization/shutdown */ int asyncFileInit(void); int asyncFileShutdown(void); /*** Experimental Asynchronous File I/O ***/ typedef struct { int sessionID; void *state; } AsyncFile; int asyncFileClose(AsyncFile *f); int asyncFileOpen(AsyncFile *f, char *fileNam...
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin.
Update platforms/* with Eliot's fixes for 64-bit clean AsyncPlugin. The platforms/unix changes are tested. The win32 and Mac OS changes are not tested but I believe them to be correct. Not applicable to RiscOS. Updates not applied to iOS. @eliot - I changed the declarations in Cross to (void *) rather than long to re...
C
mit
bencoman/pharo-vm,peteruhnak/pharo-vm,peteruhnak/pharo-vm,OpenSmalltalk/vm,timfel/squeakvm,OpenSmalltalk/vm,bencoman/pharo-vm,bencoman/pharo-vm,bencoman/pharo-vm,timfel/squeakvm,timfel/squeakvm,bencoman/pharo-vm,bencoman/pharo-vm,peteruhnak/pharo-vm,timfel/squeakvm,peteruhnak/pharo-vm,OpenSmalltalk/vm,bencoman/pharo-vm...
d7f2d994baaa83db932dbb1a0b8a31a717af1103
src/badgewars.c
src/badgewars.c
#include <badgewars.h> #include <stdio.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { puts("bw_init requested"); } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { puts("bw_run requested"); return 0; } /* Receive a BadgeWars comma...
#include <badgewars.h> #include <string.h> /* Initialize the BadgeWars world */ void bw_init(struct bw_world *world) { memset(&world->core, 0, sizeof(world->core)); world->queue_head = world->queue_tail = 0; } /* Run the BadgeWars world for a single instruction */ int bw_run(struct bw_world *world) { retu...
Initialize the world state to zero
Initialize the world state to zero
C
mit
tarcieri/BadgeWars,tarcieri/BadgeWars
822b9fd29f6ce8b69dc2705f04cae44fbb3e78f7
webkit/glue/plugins/ppb_private.h
webkit/glue/plugins/ppb_private.h
// Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "ppapi/c/pp_var.h" #define PPB_PRIVATE_INTERFACE "PPB...
// Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #define WEBKIT_GLUE_PLUGINS_PPB_PRIVATE_H_ #include "third_party/ppapi/c/pp_var.h" #define PPB_PRIVATE_IN...
Add third_party/ prefix to ppapi include for checkdeps.
Add third_party/ prefix to ppapi include for checkdeps. The only users of this ppb should be inside chrome so this should work fine. TBR=jam@chromium.org Review URL: http://codereview.chromium.org/3019006 git-svn-id: http://src.chromium.org/svn/trunk/src@52766 4ff67af0-8c30-449e-8e8b-ad334ec8d88c Former-commit-id:...
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
e2a6ce53ab445fd8976923171e78bd0e46db2407
src/mapraised.c
src/mapraised.c
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Maps and raises the specified window id (integer). */ #include <X11/Xlib.h> #include <stdlib.h> int main(int argc, char** argv) { if (a...
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. * * Maps and raises the specified window id (integer). */ /* TODO: use XResizeWindow to do the +1 width ratpoison hack. * And at this point, we...
Add TODO to replace ratpoison.
Add TODO to replace ratpoison.
C
bsd-3-clause
nromsdahl/crouton,twmccart/crouton,VandeurenGlenn/crouton,Timvrakas/crouton,stephen-soltesz/crouton,fxcebx/crouton,arbuztw/crouton,StrawnPoint04/crouton,Timvrakas/crouton,ikaritw/crouton,tonyxue/cruise,rperce/chroagh,armgong/chroagh,JDGBOLT/chroagh,arbuztw/crouton,Timvrakas/crouton,jamgregory/crouton,taterbase/crouton,...
40373bf93e90ab4d372d149aad334dfe238c1eed
src/arch/zephyr/csp_zephyr_init.c
src/arch/zephyr/csp_zephyr_init.c
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); static void hook_func(csp_debug_level_t level, const char * format, va_list args) { uint32_t args_num = log_count_args(format); switch (level) { case CSP_ERROR: Z_LO...
#include <zephyr.h> #include <init.h> #include <posix/time.h> #include <csp/csp_debug.h> #include <logging/log.h> LOG_MODULE_REGISTER(libcsp); } static int libcsp_zephyr_init(const struct device * unused) { struct timespec ts = { .tv_sec = 946652400, .tv_nsec = 0, }; clock_settime(CLOCK_REALTIME, &ts); r...
Remove debug print hook function
zephyr: Remove debug print hook function Debug print facility has been removed by the commit 39d6478; csp_debug_hook_set(), csp_debug_level_t, CSP_ERROR and its friends are gone. Remove it from Zephyr as well. Signed-off-by: Yasushi SHOJI <afa9ca3be149447780c2f7b524d61ed3d3db63f9@spacecubics.com>
C
mit
libcsp/libcsp,libcsp/libcsp
ea2b22d62983758013ca528ef1325d6c191420b2
CoreNetworking/AFNetworkSchedule.h
CoreNetworking/AFNetworkSchedule.h
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetwor...
// // AFNetworkEnvironment.h // CoreNetworking // // Created by Keith Duncan on 05/01/2013. // Copyright (c) 2013 Keith Duncan. All rights reserved. // #import <Foundation/Foundation.h> #import "CoreNetworking/AFNetwork-Macros.h" /*! \brief Schedule environment for run loop and dispatch */ @interface AFNetwor...
Make the run loop and queue @public until we enhance the scheduler API
Make the run loop and queue @public until we enhance the scheduler API
C
bsd-3-clause
ddeville/CoreNetworking
1009adc8cf7154d19c7ffebc2e35d70722076ea8
native-unpacker/definitions.h
native-unpacker/definitions.h
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", ...
/* * Header file for the definitions of packers/protectors * * Tim "diff" Strazzere <strazz@gmail.com> */ typedef struct { char* name; char* description; char* filter; char* marker; } packer; static packer packers[] = { // APKProtect { "APKProtect v1->5", "APKProtect generialized detection", ...
Add detection for whatever silly protector new malware was using.
Add detection for whatever silly protector new malware was using. Closes issue #22
C
apache-2.0
strazzere/android-unpacker,strazzere/android-unpacker
b672df825ad9d6b4b16ddadb73c9b012c04ded05
include/llvm/DebugInfo/CodeView/GUID.h
include/llvm/DebugInfo/CodeView/GUID.h
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
//===- GUID.h ---------------------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
Merge in types and items from type servers (/Zi)
[PDB] Merge in types and items from type servers (/Zi) Summary: Object files compiled with /Zi emit type information into a type server PDB. The .debug$S section will contain a single TypeServer2Record with the absolute path and GUID of the type server. LLD needs to load the type server PDB and merge all types and ite...
C
apache-2.0
GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm...
4cb0950cfe4055ca54d08b9639ee4e462cb009a3
src/include/storage/relfilenode.h
src/include/storage/relfilenode.h
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if re...
#ifndef RELFILENODE_H #define RELFILENODE_H /* * This is all what we need to know to find relation file. * tblNode is identificator of tablespace and because of * currently our tablespaces are equal to databases this is * database OID. relNode is currently relation OID on creation * but may be changed later if re...
Fix small but critical typo ...
Fix small but critical typo ...
C
apache-2.0
xuegang/gpdb,jmcatamney/gpdb,cjcjameson/gpdb,chrishajas/gpdb,adam8157/gpdb,zeroae/postgres-xl,cjcjameson/gpdb,atris/gpdb,kaknikhil/gpdb,techdragon/Postgres-XL,janebeckman/gpdb,50wu/gpdb,0x0FFF/gpdb,ahachete/gpdb,rvs/gpdb,yuanzhao/gpdb,yuanzhao/gpdb,kmjungersen/PostgresXL,rubikloud/gpdb,atris/gpdb,ashwinstar/gpdb,janebe...
9b86f2f27bdc1116be1b388e0e66c34b10006ba6
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
Plugins/org.mitk.gui.qt.multilabelsegmentation/src/internal/QmitkCreateMultiLabelSegmentationAction.h
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty o...
Add override keyword to overridden methods.
Add override keyword to overridden methods.
C
bsd-3-clause
iwegner/MITK,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,RabadanLab/MITKats,MITK/MITK,MITK/MITK,MITK/MITK,RabadanLab/MITKats,RabadanLab/MITKats,RabadanLab/MITKats,iwegner/MITK,fmilano/mitk,RabadanLab/MITKats,fmilano/mitk,fmilano/mitk,MITK/MITK,MITK/MITK,iwegner/MITK,iwegner/MITK,fmilano/mitk,fmilano/mitk,MITK/MITK,fmi...
0c55d02164a8fcc6682791603e53d7c099f59699
include/matrix_access_impl.h
include/matrix_access_impl.h
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } ...
//----------------------------------------------------------------------------- // Element Access //----------------------------------------------------------------------------- template<class T> T& matrix<T>::at( std::size_t row, std::size_t col ){ // TODO throw if out of bounds return data_.at(row*cols_+col); } ...
Add square bracket opertator access.
Add square bracket opertator access.
C
mit
actinium/cppMatrix,actinium/cppMatrix
c2b721b570a6919d4e20d86dd380677714d37a61
SSPSolution/SSPSolution/StaticEntity.h
SSPSolution/SSPSolution/StaticEntity.h
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp);...
#ifndef SSPAPPLICATION_ENTITIES_STATICENTITY_H #define SSPAPPLICATION_ENTITIES_STATICENTITY_H #include "Entity.h" class StaticEntity : public Entity { private: //Variables public: StaticEntity(); ~StaticEntity(); int Initialize(int entityID, PhysicsComponent* pComp, GraphicsComponent* gComp, AIComponent* aiComp =...
FIX Interface parameter for Entities
FIX Interface parameter for Entities
C
apache-2.0
Chringo/SSP,Chringo/SSP
c1edd1358355fd02d8687f679cb4486ad43a6cce
src/util.h
src/util.h
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), sizeof(y) - 1) == 0) #endif /* UTIL_H */
#ifndef UTIL_H #define UTIL_H /*** Utility functions ***/ #define ALLOC(type) ((type*) xmalloc(sizeof(type))) void *xmalloc(size_t); #define STARTS_WITH(x, y) (strncmp((x), (y), strlen(y)) == 0) #endif /* UTIL_H */
Fix STARTS_WITH macro comparing 1 less character than needed
Fix STARTS_WITH macro comparing 1 less character than needed
C
apache-2.0
mopidy/libmockspotify,mopidy/libmockspotify,mopidy/libmockspotify
bc33362a093bc50a2b0c6edad3242b5abf688482
ObjectiveRocks/RocksDBComparator.h
ObjectiveRocks/RocksDBComparator.h
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { RocksDBComparatorBytewiseAscending, RocksDBComparatorBytewiseDescending, RocksDBCompar...
// // RocksDBComparator.h // ObjectiveRocks // // Created by Iska on 22/11/14. // Copyright (c) 2014 BrainCookie. All rights reserved. // #import <Foundation/Foundation.h> /** An enum defining the built-in Comparators. */ typedef NS_ENUM(NSUInteger, RocksDBComparatorType) { /** @brief Orders the keys lexicogra...
Add source code documentation for the Comparator class
Add source code documentation for the Comparator class
C
mit
iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks
13d6f51d99675d5c31d4fb6c6fc18dcb1acb9ba0
spellutil.h
spellutil.h
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, void *); void spell_list_free(spell_list_node **, void (*) (void *)); #endif
#ifndef SPELLUTIL_H #define SPELLUTIL_H typedef struct spell_list_node { struct spell_list_node *next; void *data; } spell_list_node; typedef struct spell_hashtable { char *key; spell_list_node *val; } spell_hashtable; spell_list_node *spell_list_init(void *); int spell_list_add(spell_list_node **, v...
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
Add interface for a hash table implementation required for the next stages of the spell checker implementation.
C
bsd-2-clause
abhinav-upadhyay/spell,abhinav-upadhyay/spell
fdd0878001f328e622c1f3997ce803a2ef14a311
src/flags.c
src/flags.c
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "-?", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** argume...
#include "flags.h" #include <stdio.h> #include "laco.h" #include "util.h" static const char* version_matches[] = {"-v", "--version", NULL}; static const char* help_matches[] = {"-h", "--help", NULL}; /* Print off the current version of laco */ static void handle_version(LacoState* laco, const char** arguments) {...
Remove `-?` to display help
Remove `-?` to display help It seems like `--help` and `-h` is good enough alternatives for getting the help display.
C
bsd-2-clause
sourrust/laco
e4d969299a627124fde388be9b057781a3a57fe4
src/libreset/ht.c
src/libreset/ht.c
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets ...
#include <stdlib.h> #include "ht.h" #include "util/macros.h" struct ht* ht_init( struct ht* ht, size_t n ) { if (ht) { ht->buckets = calloc(n, sizeof(*ht->buckets)); ht->nbuckets = n; } return ht; } void ht_destroy( struct ht* ht ) { if (ht) { for (; ht->nbuckets ...
Use division here, not modulo
Fixup: Use division here, not modulo
C
lgpl-2.1
waysome/libreset,waysome/libreset
f350f1048b136bcf5adf21769af3379abc094d68
zuzeelik.c
zuzeelik.c
#include <stdio.h> #include <stdlib.h> #include <editline/readline.h> #include <editline/history.h> int main(int argc, char** argv) { puts("zuzeelik [version: v0.0.0-0.0.2]"); puts("Press Ctrl+C to Exit \n"); /* Starting REPL */ while(1){ /* output from the prompt*/ char* input = readline("zuzeelik> "); ...
#include <stdio.h> #include <stdlib.h> /* if compiling in windows, compiling with this functions */ #ifdef _WIN32 #include <string.h> static char buffer[2048]; /* fake readline functions */ char* readline(char* prompt) { fputs(prompt, stdout); fputs(buffer, 2048, stdin); fgets(buffer, 2048, stdin); char* ...
Add portability for windows OS
Add portability for windows OS Added protibility for windows OS,using preprocessor directives and made fake functions for windows.
C
bsd-3-clause
Mr-Kumar-Abhishek/zuzeelik,shadow-stranger/zuzeelik
aeb2aad80dfff4276c3e64347dd506bc2d73bc41
pkg/fizhi/fizhi_ocean_coms.h
pkg/fizhi/fizhi_ocean_coms.h
C $Header$ C $Name$ c Ocean Exports c ------------------- common /ocean_exports/ sst, sice, ksst, kice _RL sst(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) _RL sice(1-OLx:sNx+OLx,1-OLy:sNy+OLy,Nsx,Nsy) integer ksst, kice
C $Header$ C $Name$ c Ocean Parameters c ------------------- common /ocean_params/sstclim,sstfreq,siceclim,sicefreq,ksst,kice logical sstclim,sstfreq,siceclim,sicefreq integer ksst, kice c Ocean Exports c ------------------- common /ocean_exports/ sst, sice _RL sst(1-OLx:sNx+OLx,1-OLy:sN...
Add options for yearly sst data, move some other stuff around a bit
Add options for yearly sst data, move some other stuff around a bit
C
mit
altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h,altMITgcm/MITgcm66h
446fbd56fc8ab90ea108f30376fb3f8706eabe75
src/sigen.h
src/sigen.h
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include <sigen/types.h> #include <sigen/dvb_defs.h> #include <sigen/version.h> #include <sigen/tstream.h> #include <sigen/packetizer.h> #include <sigen/utc.h> #include <sigen/util.h> #include <sigen/dump.h> #inc...
// // sigen.h: global header file for user includes // ----------------------------------- #pragma once #include "types.h" #include "dvb_defs.h" #include "version.h" #include "tstream.h" #include "packetizer.h" #include "utc.h" #include "util.h" #include "dump.h" #include "table.h" #include "nit.h" #include "bat.h"...
Fix header includes to use local paths.
Fix header includes to use local paths.
C
mit
edporras/sigen,edporras/sigen,edporras/sigen,edporras/sigen
9e6bff980dd07d5cd9fcda8f882541fb2124366f
test/expression_command/timeout/wait-a-while.c
test/expression_command/timeout/wait-a-while.c
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; wh...
#include <stdio.h> #include <unistd.h> #include <sys/time.h> #include <stdint.h> int wait_a_while (useconds_t interval) { int num_times = 0; int return_value = 1; struct timeval start_time; gettimeofday(&start_time, NULL); uint64_t target = start_time.tv_sec * 1000000 + start_time.tv_usec + interval; wh...
Fix interval recalculation in the event that usleep is interrupted
Fix interval recalculation in the event that usleep is interrupted git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@207566 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb
42352805016e94ea2d1b1f13bc8d6cde63c57022
src/commands/debugger.c
src/commands/debugger.c
#include "debugger.h" #include <stdio.h> #include <lua.h> #include "laco.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { lua_State* L = laco_get_laco_lua_state(laco); lua_Debug debug_info = {0}; lua_getfield(L, LUA_GLOBALSINDEX, function_name); ...
#include "debugger.h" #include <lua.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "laco.h" #include "util.h" void laco_print_debug_info(struct LacoState* laco, const char* function_name) { int i; char* namespace; lua_State* L = laco_get_laco_lua_stat...
Add ablity to look through named tables
Add ablity to look through named tables
C
bsd-2-clause
sourrust/laco
eeef499339106928c39e22d9b5e0edfcaf3bc85c
src/fuzzing/mutator.h
src/fuzzing/mutator.h
// Copyright 2020 Google LLC // // 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 in w...
// Copyright 2020 Google LLC // // 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 in w...
Add library for github workflow
Add library for github workflow
C
apache-2.0
google/CTAP2-test-tool,google/CTAP2-test-tool,google/CTAP2-test-tool
7d47b8f080e71139662b682d8f395f4a3f4789f2
firmware/greatfet_usb/usb_api_dac.c
firmware/greatfet_usb/usb_api_dac.c
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_st...
/* * This file is part of GreatFET */ #include "usb_api_dac.h" #include "usb.h" #include "usb_queue.h" #include "usb_endpoint.h" #include <stddef.h> #include <greatfet_core.h> #include <dac.h> #include <pins.h> usb_request_status_t usb_vendor_request_dac_set( usb_endpoint_t* const endpoint, const usb_transfer_st...
Fix typo which used a mask for a logical-and
Fix typo which used a mask for a logical-and The DAC conversion register value mask was logical-and'ed instead of bitwise-and'ed when setting the DAC value via USB vendor request.
C
bsd-3-clause
greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet,greatscottgadgets/greatfet,dominicgs/GreatFET-experimental,dominicgs/GreatFET-experimental,greatscottgadgets/greatfet
452d4b6c823d793770676dc5e2f3fc32c6c15e6d
src/condor_includes/condor_constants.h
src/condor_includes/condor_constants.h
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
#ifndef CONSTANTS_H #define CONSTANTS_H #if !defined(__STDC__) && !defined(__cplusplus) #define const #endif /* Set up a boolean variable type. Since this definition could conflict with other reasonable definition of BOOLEAN, i.e. using an enumeration, it is conditional. */ #ifndef BOOLEAN_TYPE_DEFINED typedef i...
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
Define CPP macro BOOLAN_TYPE_DEFINED when we define types BOOLEAN and BOOL_T, to avoid doing it twice.
C
apache-2.0
htcondor/htcondor,bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/htcondor,htcondor/htcondor,neurodebian/htcondor,djw8605/condor,neurodebian/htcondor,djw8605/condor,clalancette/condor-dcloud,djw8605/condor,bboc...
c033df3aeef588c2faf3cce3066b091980be0083
src/include/xmmsc/xmmsc_sockets.h
src/include/xmmsc/xmmsc_sockets.h
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #d...
#ifndef XMMSC_SOCKETS_H #define XMMSC_SOCKETS_H #include <xmmsc/xmmsc_stdbool.h> /* Windows */ #ifdef _MSC_VER #include <Winsock2.h> #include <Ws2tcpip.h> typedef SOCKET xmms_socket_t; typedef int socklen_t; #define XMMS_EINTR WSAEINTR #define XMMS_EAGAIN WSAEWOULDBLOCK /* UNIX */ #else #define SOCKET_ERROR (-1) #d...
Fix compilation on OpenBSD (from Bernhard Leiner)
BUG(501): Fix compilation on OpenBSD (from Bernhard Leiner)
C
lgpl-2.1
theefer/xmms2,oneman/xmms2-oneman-old,theeternalsw0rd/xmms2,oneman/xmms2-oneman-old,mantaraya36/xmms2-mantaraya36,krad-radio/xmms2-krad,theefer/xmms2,krad-radio/xmms2-krad,dreamerc/xmms2,chrippa/xmms2,mantaraya36/xmms2-mantaraya36,chrippa/xmms2,theefer/xmms2,oneman/xmms2-oneman-old,six600110/xmms2,six600110/xmms2,onema...
2c90cd47e03a5ae5f725d3a7d638dfaf05f7896d
tests/Native/Passes.h
tests/Native/Passes.h
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 4, }; class C { }; void DoSomethingC(C*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM...
enum FlagEnum { A = 1 << 0, B = 1 << 1, C = 1 << 2, D = 1 << 3, }; enum FlagEnum2 { A1 = 1 << 0, B1 = 3, C1 = 1 << 2, D1 = 1 << 4, }; class Foo { }; void FooStart(Foo*, int); struct TestRename { int lowerCaseMethod(); int lowerCaseField; }; #define TEST_ENUM_ITEM_NAME_0 0 #define TEST_ENUM_ITEM_...
Update the passes test source file.
Update the passes test source file.
C
mit
ktopouzi/CppSharp,genuinelucifer/CppSharp,zillemarco/CppSharp,inordertotest/CppSharp,mono/CppSharp,inordertotest/CppSharp,xistoso/CppSharp,txdv/CppSharp,u255436/CppSharp,ktopouzi/CppSharp,nalkaro/CppSharp,xistoso/CppSharp,mohtamohit/CppSharp,imazen/CppSharp,KonajuGames/CppSharp,SonyaSa/CppSharp,Samana/CppSharp,ddobrev/...
c0a4377575c734ce8872d804229f852240d5b661
include/probes_mysql.h
include/probes_mysql.h
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program 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; version 2 of the License. This program is distributed in ...
/* Copyright (c) 2008 Sun Microsystems, Inc. Use is subject to license terms. This program 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; version 2 of the License. This program is distributed in ...
Fix build error on Ubuntu 11.10, if systemtap is installed.
Fix build error on Ubuntu 11.10, if systemtap is installed. The error is due to conflict between min/max macros in my_global.h and system header < limits>, indirectly included via generated probes_mysql_dtrace.h Temporarily undefined min/max for the inclusion of the probes_mysq_dtrace.h
C
lgpl-2.1
ollie314/server,natsys/mariadb_10.2,davidl-zend/zenddbi,ollie314/server,davidl-zend/zenddbi,davidl-zend/zenddbi,ollie314/server,natsys/mariadb_10.2,ollie314/server,natsys/mariadb_10.2,natsys/mariadb_10.2,natsys/mariadb_10.2,davidl-zend/zenddbi,flynn1973/mariadb-aix,ollie314/server,natsys/mariadb_10.2,flynn1973/mariadb-...
6bdd0fda6908cd99fb4186d45faa80b34ccfdc83
include/xaptum-ecdaa.h
include/xaptum-ecdaa.h
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * 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 * * h...
/****************************************************************************** * * Copyright 2017 Xaptum, Inc. * * 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 * * h...
Add verify.h to top-level include-all header.
FIX: Add verify.h to top-level include-all header.
C
apache-2.0
xaptum/ecdaa,xaptum/ecdaa,xaptum/ecdaa
60323734541afb648b0805abf04a3cb043494bfa
libgnome/gnome-popt.h
libgnome/gnome-popt.h
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt-gnome.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_pars...
#ifndef __GNOME_POPT_H__ #define __GNOME_POPT_H__ 1 #include "gnome-defs.h" BEGIN_GNOME_DECLS /* This is here because it does not have its own #ifdef __cplusplus */ #include <popt.h> void gnomelib_register_popt_table(const struct poptOption *options, const char *description); poptContext gnomelib_parse_args...
Check for newer popt, and include it in the needed libs. Give correct
Check for newer popt, and include it in the needed libs. Give correct * configure.in: Check for newer popt, and include it in the needed libs. * gnome-compat-1.0.h: Give correct paths to compat headers. * gnome-config.in: Fixes to make help output correct. * gnome.m4: Reorg so it doesn't do any path searching itself...
C
lgpl-2.1
Distrotech/libgnome,Distrotech/libgnome,Distrotech/libgnome
aea6ee736f73e503c0fcc2513ffd51bd74d17071
net/proxy/proxy_resolver_mac.h
net/proxy/proxy_resolver_mac.h
// Copyright (c) 2008 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 NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
// Copyright (c) 2008 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 NET_PROXY_PROXY_RESOLVER_MAC_H_ #define NET_PROXY_PROXY_RESOLVER_MAC_H_ #pragma once #include <string> #include "googleurl/src/gurl.h" #incl...
Fix a typo, that could cause a crash on mac.
Fix a typo, that could cause a crash on mac. BUG=50717 TBR=rvargas TEST=Set system proxy settings to use a custom PAC script, then launch TestShell.app -- should not crash. Review URL: http://codereview.chromium.org/3023030 git-svn-id: http://src.chromium.org/svn/trunk/src@54279 4ff67af0-8c30-449e-8e8b-ad334ec8d88c ...
C
bsd-3-clause
meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u...
505e4531b7e52daf6caa9eac9904d9a014e0d14f
tests/online/badssl.c
tests/online/badssl.c
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) void test_online_badssl__expired(void) { cl_git_fail_with(GIT_ECERTIFICATE, git_clone(&g_repo, "https://expired.badssl.com/fake.git", "./fake", NULL...
#include "clar_libgit2.h" #include "git2/clone.h" static git_repository *g_repo; #if defined(GIT_OPENSSL) || defined(GIT_WINHTTP) || defined(GIT_SECURE_TRANSPORT) static bool g_has_ssl = true; #else static bool g_has_ssl = false; #endif void test_online_badssl__expired(void) { if (!g_has_ssl) cl_skip(); cl_git...
Fix build for unit test
Fix build for unit test If none of GIT_OPENSSL, GIT_WINHTTP or GIT_SECURE_TRANSPORT is defined we should also be able to build the unit test.
C
lgpl-2.1
stewid/libgit2,magnus98/TEST,leoyanggit/libgit2,Tousiph/Demo1,yongthecoder/libgit2,jeffhostetler/public_libgit2,KTXSoftware/libgit2,KTXSoftware/libgit2,saurabhsuniljain/libgit2,magnus98/TEST,yongthecoder/libgit2,KTXSoftware/libgit2,magnus98/TEST,yongthecoder/libgit2,Tousiph/Demo1,Tousiph/Demo1,Corillian/libgit2,saurabh...
a014bcdc929147cd6c5c2b0dea1d32b1339625b4
ogles_gpgpu/common/macros.h
ogles_gpgpu/common/macros.h
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MAC...
// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #ifndef OGLES_GPGPU_COMMON_MACROS #define OGLES_GPGPU_COMMON_MAC...
Use !NDEBUG to detect Debug variant of build
Use !NDEBUG to detect Debug variant of build
C
apache-2.0
headupinclouds/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu,hunter-packages/ogles_gpgpu,headupinclouds/ogles_gpgpu
ed69dd7849b8921917191d6a037d52043e44579f
algorithms/include/algorithms/quick_union_with_path_compression.h
algorithms/include/algorithms/quick_union_with_path_compression.h
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data struct...
#ifndef INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #define INCLUDE_ALGORITHMS_QUICK_UNION_WITH_PATH_COMPRESSION_H_ #include "DLLDefines.h" #include <vector> #include <stddef.h> /* This algorithm "Quick Union With Path Compression" solves the dynamic connectivity problem. Starting from an empty data struct...
Remove unnecessary checking of size_t >= 0
Remove unnecessary checking of size_t >= 0
C
mit
TusharJadhav/algorithms,TusharJadhav/algorithms
e5171648164a72ea9ae83e5f2bb47dcb5b498fa6
eg/inc/Hepevt.h
eg/inc/Hepevt.h
/* @(#)root/eg:$Name$:$Id$ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
/* @(#)root/eg:$Name: $:$Id: Hepevt.h,v 1.1.1.1 2000/05/16 17:00:47 rdm Exp $ */ /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f
Change maximum dimension of hepevt from 2000 to 4000 to be consistent between Pythia5 and 6. Note that this change implies a recompilation of jetset.f git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@5072 27541ba8-7e3a-0410-8455-c3a389f83636
C
lgpl-2.1
sbinet/cxx-root,krafczyk/root,beniz/root,karies/root,agarciamontoro/root,sbinet/cxx-root,simonpf/root,nilqed/root,Dr15Jones/root,vukasinmilosevic/root,gbitzes/root,omazapa/root,zzxuanyuan/root,buuck/root,lgiommi/root,satyarth934/root,0x0all/ROOT,jrtomps/root,agarciamontoro/root,krafczyk/root,perovic/root,sbinet/cxx-roo...
6cbb0e446c5e939612b8e3dfa3771165ca255074
list.h
list.h
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)...
#include <stdlib.h> #ifndef __LIST_H__ #define __LIST_H__ struct ListNode; struct List; typedef struct ListNode ListNode; typedef struct List List; List* List_Create(void); void List_Destroy(List* l); ListNode* ListNode_Create(void *); void ListNode_Destroy(ListNode* n); ListNode* List_Search(List* l, void* k, int (f)...
Add List Insert function declaration
Add List Insert function declaration
C
mit
MaxLikelihood/CADT
e849a32bb0b490d77b7c42ccbd9d7508e16a0f00
include/fmrcxx/fmrcxx.h
include/fmrcxx/fmrcxx.h
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename... TTs> StdContainerIterator...
#ifndef FMRCXX_FMRCXX_H_ #define FMRCXX_FMRCXX_H_ #include <fmrcxx/Iterator.h> #include <fmrcxx/Range.h> #include <fmrcxx/Random.h> #include <fmrcxx/internal/StdMapIterator.h> #include <fmrcxx/internal/StdContainerIterator.h> namespace fmrcxx { template <typename T, template <typename...> class Container, typename.....
Add Random to general header
Add Random to general header
C
apache-2.0
cyr62110/fmrcxx
dbb3b7606ccb070aedf6771e8efa54a15c2e5426
src/condor_includes/condor_common.h
src/condor_includes/condor_common.h
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include <string.h> #include <ctype.h> #include <fcntl.h> #include <errno.h>
#include "_condor_fix_types.h" #include "condor_fix_stdio.h" #include <stdlib.h> #include "condor_fix_unistd.h" #include "condor_fix_limits.h" #include "condor_fix_string.h" #include <ctype.h> #include <fcntl.h> #include <errno.h>
Include condor_fix_string.h rather than just string.h
Include condor_fix_string.h rather than just string.h
C
apache-2.0
bbockelm/condor-network-accounting,neurodebian/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,djw8605/htcondor,htcondor/htcondor,mambelli/osg-bosco-marco,clalancette/condor-dcloud,neurodebian/htcondor,zhangzhehust/htcondor,neurodebian/htcondor,djw8605/condor,bbockelm/condo...
c805263f16973c011d9d8bf89da77024fc549d42
include/core/SkMilestone.h
include/core/SkMilestone.h
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 106 #endif
/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SK_MILESTONE #define SK_MILESTONE 107 #endif
Update Skia milestone to 107
Update Skia milestone to 107 Change-Id: I2e2b4917adaea52c9cabd92bce092d279210cb82 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/571236 Auto-Submit: Rakshit Sharma <e91e6cdce3825eaad0fa11b55195605cfed87fab@google.com> Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com> Commit-...
C
bsd-3-clause
google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia
5f55407acaccc0e20efaa71ee3cbd247707397b0
src/robobo.h
src/robobo.h
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include <string.h> // C strings to handle args #include <sstream> #endif
#ifndef ROBOBO_H #define ROBOBO_H #include "main.h" #include "base.h" #include <string.h> // C strings to handle args #include <sstream> #endif
Include unincluded necessary header file.
Include unincluded necessary header file.
C
mit
ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo
7326541875f1df288b485711dda342fe09297e4e
PHPHub/Constants/APIConstant.h
PHPHub/Constants/APIConstant.h
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
// // APIConstant.h // PHPHub // // Created by Aufree on 9/30/15. // Copyright (c) 2015 ESTGroup. All rights reserved. // #define APIAccessTokenURL [NSString stringWithFormat:@"%@%@", APIBaseURL, @"/oauth/access_token"] #define QiniuUploadTokenIdentifier @"QiniuUploadTokenIdentifier" #if DEBUG #define APIBaseURL ...
Change about the author url
Change about the author url
C
mit
Aufree/phphub-ios
a5f90d80a27a575b3fc428e38d2d179dad1c877b
Pod/Classes/Core/CLPUIObject.h
Pod/Classes/Core/CLPUIObject.h
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
#import "CLPBaseObject.h" @interface CLPUIObject : CLPBaseObject @property (nonatomic, strong, readwrite) IBOutlet UIView *view; - (instancetype)remove; @end
Set view property to strong for UIObjects.
Set view property to strong for UIObjects.
C
bsd-3-clause
barbosa/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,clappr/clappr-ios,barbosa/clappr-ios
62f828c9bd51124a9a24362fbf6d2bc4a7971e75
src/domain/noterepository.h
src/domain/noterepository.h
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program 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 or (at your option) version...
/* This file is part of Zanshin Copyright 2014 Kevin Ottens <ervin@kde.org> This program 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 or (at your option) version...
Add the default source concept to NoteRepository
Add the default source concept to NoteRepository
C
lgpl-2.1
sandsmark/zanshin,kolab-groupware/zanshin,sandsmark/zanshin,sandsmark/zanshin,kolab-groupware/zanshin,kolab-groupware/zanshin
b202cb277a68a78e431bdf0cdbf1dd5215a7055e
experiments.h
experiments.h
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
Remove no longer used SkipEncodingUnusedStreams.
Remove no longer used SkipEncodingUnusedStreams. R=andrew@webrtc.org Review URL: https://webrtc-codereview.appspot.com/18829004 git-svn-id: 03ae4fbe531b1eefc9d815f31e49022782c42458@6753 4adac7df-926f-26a2-2b94-8c16560cd09d
C
bsd-3-clause
jgcaaprom/android_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,android-ia/platform_external_chromium_org_third_party_webrtc,jgcaaprom/android_external_chromium_org_third_party_webrtc,MIPS/external-chromium_org-third_party-webrtc,geekboxzone/lollipop_external_chro...
452dbb09e2fd05a8f9fcfa300dd12ceefe9bf8ab
src/Update.h
src/Update.h
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include ...
// Copyright (c) 2016-2020 The Karbowanec developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef UPDATE_H #define UPDATE_H #include <QObject> #include <QNetworkAccessManager> #include <QNetworkRequest> #include ...
Change repository urls to proper for this version
Change repository urls to proper for this version
C
mit
seredat/karbowanecwallet,seredat/karbowanecwallet,seredat/karbowanecwallet
465934742bafb175501c12cc2b8ebfe9bd732e3b
src/common.c
src/common.c
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 ...
#define BASE_SPEED_FULL 127 void base_set(int fr, int br, int bl, int fl); void base_set(int power); void dump_set(int x); void lift_set(int x); #define LCD_BUTTON_LEFT 1 #define LCD_BUTTON_CENTER 2 #define LCD_BUTTON_RIGHT 4 #define LCD_BUTTON_NONE 0 #define LCD_LINE_TOP 0 #define LCD_LINE_BOTTOM 1 ...
Remove annoying "unreferenced function" warnings
Remove annoying "unreferenced function" warnings
C
mit
qsctr/vex-4194b-2016
8c79cb12cffdb76543fa79455083ad1daef89194
shaderDefines.h
shaderDefines.h
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals ...
#define ATTR_POS 0 #define ATTR_UV 1 #define ATTR_COLOR 2 #define TEXUNIT_TEMP 0 #define TEXUNIT_COLOR 1 #define TEXUNIT_AREATEX 2 #define TEXUNIT_SEARCHTEX 3 #define TEXUNIT_EDGES 4 #define TEXUNIT_BLEND 5 #ifdef __cplusplus struct Globals #else // __cplusplus layout(binding = 0, std140) uniform Globals ...
Change "unsigned int" -> "uint" for better GLSL compatibility
Change "unsigned int" -> "uint" for better GLSL compatibility
C
mit
turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo,turol/smaaDemo
655f3d4c389dbcb1e23c2ba425ccfd85234f6fce
include/rng.h
include/rng.h
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namesp...
/************************************************* * RandomNumberGenerator Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_RANDOM_NUMBER_GENERATOR__ #define BOTAN_RANDOM_NUMBER_GENERATOR__ #include <botan/exceptn.h> namesp...
Remove exception specifier from RandomNumberGenerator::randomize
Remove exception specifier from RandomNumberGenerator::randomize
C
bsd-2-clause
Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecuri...
743a89c5c27c3c17b87af5df8c381d95b00f2f42
pg_query.c
pg_query.c
#include "pg_query.h" #include "pg_query_internal.h" const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); }
#include "pg_query.h" #include "pg_query_internal.h" #include <mb/pg_wchar.h> const char* progname = "pg_query"; void pg_query_init(void) { MemoryContextInit(); SetDatabaseEncoding(PG_UTF8); }
Set database encoding to UTF8.
Set database encoding to UTF8. Fixes error when parsing this statement: SELECT U&'\0441\043B\043E\043D' The error is: Unicode escape values cannot be used for code point values above 007F when the server encoding is not UTF8. Perhapes there could be an API to set the encoding used by the parser. But I think it mak...
C
bsd-3-clause
lfittl/libpg_query,ranxian/peloton-frontend,lfittl/libpg_query,lfittl/libpg_query,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend
a83e22d75dfffd2003fa7ebdeb35a9ca3a6731ec
src/lib/llist.h
src/lib/llist.h
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \...
#ifndef LLIST_H #define LLIST_H /* Doubly linked list */ #define DLLIST_PREPEND(list, item) STMT_START { \ (item)->prev = NULL; \ (item)->next = *(list); \ if (*(list) != NULL) (*(list))->prev = (item); \ *(list) = (item); \ } STMT_END #define DLLIST_REMOVE(list, item) STMT_START { \ if ((item)->prev == NULL) \...
Set removed item's prev/next pointers to NULL.
DLLIST_REMOVE(): Set removed item's prev/next pointers to NULL.
C
mit
LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot
33de317e5a27d5dfc368cc0488c12b42236183e8
tensorflow/core/lib/core/threadpool_interface.h
tensorflow/core/lib/core/threadpool_interface.h
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 a...
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved. 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 a...
Define EIGEN_USE_THREADS only if it is not defined yet
Define EIGEN_USE_THREADS only if it is not defined yet PiperOrigin-RevId: 253269616
C
apache-2.0
renyi533/tensorflow,xzturn/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,davidzchen/tensorflow,aldian/tensorflow,jhseu/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,alsrgv/tensorflow,gautam1858/t...
73d73eeaa0fdd21bfb1592e2f7066590ef7ee920
uranus_dp/include/uranus_dp/control_mode_enum.h
uranus_dp/include/uranus_dp/control_mode_enum.h
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2 }; } typedef ControlModes::ControlMode ControlMode; #endif
#ifndef CONTROL_MODE_ENUM_H #define CONTROL_MODE_ENUM_H namespace ControlModes { enum ControlMode { OPEN_LOOP = 0, SIXDOF = 1, RPY_DEPTH = 2, DEPTH_HOLD = 3 }; } typedef ControlModes::ControlMode ControlMode; #endif
Add depth hold mode to enum
Add depth hold mode to enum
C
mit
vortexntnu/rov-control,vortexntnu/rov-control,vortexntnu/rov-control
eff9494ed346005f825ccdd6fcdd3fa425041023
include/bignum-conf.h
include/bignum-conf.h
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 64 /* Define to en...
/* Configuration for the mruby-bignum gem */ #ifndef MRB_BIGNUM_CONF_H #define MRB_BIGNUM_CONF_H /* Size of a Bignum digit: 16, 32 or 64 */ /* If not defined, this is the same size as a Fixnum */ /* To use MRB_BIGNUM_BIT == 64, the compiler must support unsigned __int128 */ #define MRB_BIGNUM_BIT 32 /* Define to en...
Set the default bit width to 32.
Set the default bit width to 32. 32 bit Bignums don't need any non-C99 features.
C
mit
chasonr/mruby-bignum,chasonr/mruby-bignum
42150430ce7cbcee73173c7b8302c24f2efbae76
testsuite/abi.c
testsuite/abi.c
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { int offset; int expected_offset; int error = 0; offset = ((int) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } else...
#ifdef HAVE_CONFIG_H #include "config.h" #endif #include <orc/orc.h> #include <stdio.h> int main (int argc, char *argv[]) { long offset; int expected_offset; int error = 0; offset = ((long) ((unsigned char *) &((OrcProgram*) 0)->code_exec)); if (sizeof(void *) == 4) { expected_offset = 8360; } el...
Fix compilation of the ABI test on 64 bit architectures
tests: Fix compilation of the ABI test on 64 bit architectures Casting a pointer to a plain int will cause a compiler error, use long instead.
C
bsd-3-clause
MOXfiles/orc,Distrotech/orc,ahmedammar/platform_external_gst_liborc,jpakkane/orc,jpakkane/orc,ahmedammar/platform_external_gst_liborc,MOXfiles/orc,ijsf/OpenWebRTC-orc,okuoku/nmosh-orc,MOXfiles/orc,Distrotech/orc,okuoku/nmosh-orc,mojaves/orc,Distrotech/orc,ijsf/OpenWebRTC-orc,mojaves/orc,ijsf/OpenWebRTC-orc,jpakkane/orc...
27575f2a32ef4fd1f6bd6987b86473791ff394f7
test/arduino_compat.h
test/arduino_compat.h
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef unsigned char uint8_t; typedef unsigned short uint16_t; typedef unsigned long uint32_t; typedef bool boolean; ...
#ifndef _ARDUINO_COMPAT_H #define _ARDUINO_COMPAT_H #include <stdio.h> #include <stdlib.h> #include <stdint.h> //#include <sys/types.h> //#include <sys/stat.h> #include <fcntl.h> #include <ctype.h> #include <string.h> typedef bool boolean; //#define uint8_t unsigned char #define FILE_READ O_RDONLY #define FILE_WRI...
Use stdint.h for unsigned integer typedefs
Use stdint.h for unsigned integer typedefs Fixes problem compiling regression tests on 64 bit OS.
C
lgpl-2.1
stevemarple/IniFile,stevemarple/IniFile
a7deb40634762debd15fe2e3f13c869aef9608d8
source/SoAd.h
source/SoAd.h
/* Copyright (C) 2015 Joakim Plate * * 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 License, or (at your option) any later version. * * This library is...
/* Copyright (C) 2015 Joakim Plate * * 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 License, or (at your option) any later version. * * This library is...
Add moduleid and instance id
Add moduleid and instance id
C
lgpl-2.1
elupus/autosar-soad,elupus/autosar-soad
614310c7aedf3273523352b1ee16660e7bbf9601
test/Analysis/security-syntax-checks.c
test/Analysis/security-syntax-checks.c
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_crash_fixes(char *c) { __builtin_strncpy(c, "", 6); // expected-warning{{Call to function 'strncpy' is insecure as it does not provide security checks introduced in the C11 standard.}} __builtin_mems...
// RUN: %clang_analyze_cc1 %s -verify \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu11 \ // RUN: -analyzer-checker=security.insecureAPI // RUN: %clang_analyze_cc1 %s -verify -std=gnu99 \ // RUN: -analyzer-checker=security.insecureAPI void builtin_function_call_cra...
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings.
Fix test on PS4 which defaults to gnu99 which does not emit the expected warnings. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@358626 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/cl...
21ebc95f83d4a857ffbbd13d1332d919f4752614
check_tests/eas_main_tests.c
check_tests/eas_main_tests.c
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int ...
#include <stdlib.h> #include <check.h> Suite* eas_daemon_suite (void); Suite* eas_autodiscover_suite (void); Suite* eas_libeasmail_suite (void); Suite* eas_libeascal_suite (void); Suite* eas_libeassync_suite (void); Suite* eas_libeascon_suite (void); Suite* eas_folderhierarchy_suite (void); int main (void) { int ...
Enable all test suites except the manual folder hierarchy one
Enable all test suites except the manual folder hierarchy one
C
lgpl-2.1
simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync
8bc6d9116a731dd70366b9fcc3fba4f182df91f2
c/selective.h
c/selective.h
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 1 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
#ifndef _SELECTIVE_H #define _SELECTIVE_H #include "psyco.h" #include "codemanager.h" #define FUN_BOUND -1 #define MAX_RECURSION 99 EXTERNVAR PyObject* funcs; EXTERNVAR int ticks; EXTERNFN int do_selective(void *, PyFrameObject *, int, PyObject *); #endif
Set the MAX_RECURSION macro to 99 instead of 1
Set the MAX_RECURSION macro to 99 instead of 1
C
mit
tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni,tonysimpson/Ni
76fea900b9aedf4f8063f36b4f45a0616cdee5bb
odroid/energymon-odroid-ioctl.h
odroid/energymon-odroid-ioctl.h
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <stddef.h> #include "energymon.h" int...
/** * Energy reading for an ODROID with INA231 power sensors, using ioctl on * device files instead of sysfs. * * @author Connor Imes * @date 2015-10-14 */ #ifndef _ENERGYMON_ODROID_IOCTL_H_ #define _ENERGYMON_ODROID_IOCTL_H_ #ifdef __cplusplus extern "C" { #endif #include <inttypes.h> #include <stddef.h> #incl...
Add missing include (mostly for good practice as it's currently included transitively anyway)
Add missing include (mostly for good practice as it's currently included transitively anyway)
C
apache-2.0
energymon/energymon
966a2dd4410d9aa4a15f7560a52b97626e787a91
ghighlighter/gh-about-dialog.c
ghighlighter/gh-about-dialog.c
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); return dialog; }
#include <gtk/gtk.h> GtkWidget * gh_about_dialog_create () { GtkWidget *dialog; dialog = gtk_about_dialog_new (); static gchar const *title = "About ghighlighter"; gtk_window_set_title (GTK_WINDOW (dialog), title); return dialog; }
Set about dialog title through static const variable
Set about dialog title through static const variable
C
mit
chdorner/ghighlighter-c
9fac183df59fc6aa4bb6c244cce394b9fa9993c1
src/core/src/NIOperations+Subclassing.h
src/core/src/NIOperations+Subclassing.h
// // Copyright 2011-2014 NimbusKit // // 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 t...
// // Copyright 2011-2014 NimbusKit // // 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 t...
Add proper import for NIOperations
Add proper import for NIOperations
C
apache-2.0
bangquangvn/nimbus,zilaiyedaren/nimbus,zilaiyedaren/nimbus,panume/nimbus,panume/nimbus,bangquangvn/nimbus,WeeTom/nimbus,bogardon/nimbus,quyixia/nimbus,kisekied/nimbus,chanffdavid/nimbus,bogardon/nimbus,quyixia/nimbus,JyHu/nimbus,Arcank/nimbus,dmishe/nimbus,chanffdavid/nimbus,kisekied/nimbus,marcobgoogle/nimbus,Arcank/n...
4868db0afaf583dc008e842b35c1701df732333b
kernel/init/kmain.c
kernel/init/kmain.c
#include <logging.h> #include <cedille/pmm.h> #include <cedille/heap.h> extern uint32_t _kernel_start,_kernel_end; void vmm_init(); void kprocess_init(); void timing_system_engine_reportstatustoconsole(); void kernel_doperiodic(int force, int tick); int kernel_idle_process() { int i = 0; for(;;) { // Attempt to r...
#include <logging.h> #include <cedille/pmm.h> #include <cedille/heap.h> extern uint32_t _kernel_start,_kernel_end; void vmm_init(); void kprocess_init(); void timing_system_engine_reportstatustoconsole(); void kernel_doperiodic(int force, int tick); int kernel_idle_process() { for(;;) { // Attempt to reschedule ot...
Remove test scrolling code from idle_process
Remove test scrolling code from idle_process
C
mit
Lionel07/Cedille,Lionel07/Cedille,Lionel07/Cedille
cdb6e95182e874765dd7a51155534111d186d631
src/roman_convert_to_int.c
src/roman_convert_to_int.c
#include <string.h> #include "roman_convert_to_int.h" int roman_convert_to_int(const char *numeral) { if (!numeral) { return -1; } const char first_letter = *numeral; switch (first_letter) { case 'I': return 1; case 'V': return 5; case 'X': return 10; case 'L': return 50; case 'C': re...
#include <string.h> #include "roman_convert_to_int.h" int roman_convert_to_int(const char *numeral) { const char first_letter = numeral ? *numeral : '?'; switch (first_letter) { case 'I': return 1; case 'V': return 5; case 'X': return 10; case 'L': return 50; case 'C': return 100; case '...
Simplify error handling for missing/unknown numerals
Simplify error handling for missing/unknown numerals
C
mit
greghaskins/roman-calculator.c
05489fc77e7bd485bf3333a7a5579e257e150fac
src/imap/cmd-create.c
src/imap/cmd-create.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mai...
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mai...
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
C
mit
damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot
64e8feb20086dea45debf19dacdf10bcc8587d6a
userspace/engine/falco_engine_version.h
userspace/engine/falco_engine_version.h
/* Copyright (C) 2021 The Falco Authors. 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 in writing, s...
/* Copyright (C) 2021 The Falco Authors. 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 in writing, s...
Update fields checksum (no changes, order only)
Update fields checksum (no changes, order only) With the new implementation of list_fields(), the order of fields changed slightly. So update the checksum. Signed-off-by: Mark Stemm <1b6cbc2e568a933a16c6fa30b73e50cd507debf7@gmail.com>
C
apache-2.0
draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco,draios/falco
c33a24ad0fc8900b1e1a4ddb1c81194a9b8feaf6
src/Sched.h
src/Sched.h
#ifndef SCHED_H #define SCHED_H #include <Input.h> #include <Watch.h> #include <Display.h> #include <unistd.h> // for sleep() class Sched { public: Sched(Input* input, Watch* watch, Display* display) : input_(input) , watch_(watch) , display_(display) {} public: void run() { while(!shouldStop()) { ...
#ifndef SCHED_H #define SCHED_H #include <Input.h> #include <Watch.h> #include <Display.h> #include <unistd.h> // for sleep() #include <iostream> class Sched { public: Sched(Input* input, Watch* watch, Display* display) : input_(input) , watch_(watch) , display_(display) {} public: void run() { while(...
Clear screen before each cycle
Clear screen before each cycle
C
mit
dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm,dkrikun/casio-fsm
073a4cfe77ec0117663b30156b2eade8ca751fe9
src/libcsg/modules/io/lammpsdumpwriter.h
src/libcsg/modules/io/lammpsdumpwriter.h
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
/* * Copyright 2009-2019 The VOTCA Development Team (http://www.votca.org) * * 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 * * Unle...
Add unit converter include to lammps dump writer
Add unit converter include to lammps dump writer
C
apache-2.0
votca/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,MrTheodor/csg,votca/csg,MrTheodor/csg,MrTheodor/csg,votca/csg
f980d4b926ede4fefa5bb5dae6fba6bf843bf6e9
src/libguac/guacamole/parser-constants.h
src/libguac/guacamole/parser-constants.h
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
Merge changes allowing up to 128 elements per Guacamole instruction.
GUACAMOLE-587: Merge changes allowing up to 128 elements per Guacamole instruction.
C
apache-2.0
apache/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,apache/guacamole-server
30909be64f02c27b012e9067c6af7f7e93e41008
inc/WikiWalker.h
inc/WikiWalker.h
//! \file WikiWalker.h #ifndef WIKIWALKER_H #define WIKIWALKER_H #include <string> #include "CurlWikiGrabber.h" #include "Walker.h" namespace WikiWalker { //! main "app" class class WikiWalker : public Walker { public: /*! given an URL, start collecting links * \param url start point for analysis ...
//! \file WikiWalker.h #ifndef WIKIWALKER_H #define WIKIWALKER_H #include <string> #include "CurlWikiGrabber.h" #include "Walker.h" namespace WikiWalker { //! main "app" class class WikiWalker : public Walker { public: //! Creates a new instance WikiWalker() : Walker(), fetchGenerator(false), grabbe...
Add contructor to initialize fetchGenerator correctly
Add contructor to initialize fetchGenerator correctly
C
mit
dueringa/WikiWalker
a9afc0a1eb8cd6e5b0ea0f766f6a3a4012770679
media/rx/video-rx.h
media/rx/video-rx.h
#ifndef __VIDEO_RX_H__ #define __VIDEO_RX_H__ #include "libavformat/avformat.h" typedef struct DecodedFrame { AVFrame* pFrameRGB; uint8_t *buffer; } DecodedFrame; typedef struct FrameManager { enum PixelFormat pix_fmt; void (*put_video_frame_rx)(uint8_t *data, int width, int height, int nframe); DecodedFrame* (...
#ifndef __VIDEO_RX_H__ #define __VIDEO_RX_H__ #include "libavformat/avformat.h" typedef struct DecodedFrame { AVFrame* pFrameRGB; uint8_t *buffer; void *priv_data; /* User private data */ } DecodedFrame; typedef struct FrameManager { enum PixelFormat pix_fmt; void (*put_video_frame_rx)(uint8_t *data, int width,...
Add priv_data field in DecodedFrame struct.
Add priv_data field in DecodedFrame struct.
C
lgpl-2.1
Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,shelsonjava/kc-media-native
0fa14ec3cba7347d58bc4e1ec10273c129b87b29
src/imap/cmd-create.c
src/imap/cmd-create.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mai...
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "mail-namespace.h" #include "commands.h" bool cmd_create(struct client_command_context *cmd) { struct mail_namespace *ns; const char *mailbox, *full_mailbox; bool directory; size_t len; /* <mailbox> */ if (!client_read_string_args(cmd, 1, &mai...
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
CREATE ns_prefix/box/ didn't work right when namespace prefix existed.
C
mit
Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot
018638ec7f304a4acd11b881be3d02bd6af966b4
BindingShort.h
BindingShort.h
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #ifdef BUILDING_NODE_EXTENSION #include "Binding.h" #define NBIND_ERR(message) nbind::Bindings::setError(message) #define NBIND_CLASS(Name) \ template<class Bound> struct BindInvoker ...
// This file is part of nbind, copyright (C) 2014-2015 BusFaster Ltd. // Released under the MIT license, see LICENSE. #pragma once #ifdef BUILDING_NODE_EXTENSION #include "Binding.h" #define NBIND_ERR(message) nbind::Bindings::setError(message) #define NBIND_CLASS(Name) \ template<class Bound> struct BindInvoker ...
Fix GCC keyword conflict with simpler API.
Fix GCC keyword conflict with simpler API.
C
mit
charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind,charto/nbind
c2d80c25893d00dfb8172caa05ac39b4eecaede1
include/swift/Runtime/Once.h
include/swift/Runtime/Once.h
//===--- Once.h - Runtime support for lazy initialization ------*- C++ -*--===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
//===--- Once.h - Runtime support for lazy initialization ------*- C++ -*--===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
Change swift_once_t to be actually pointer-sized on non-Darwin
Change swift_once_t to be actually pointer-sized on non-Darwin Swift SVN r22384
C
apache-2.0
nathawes/swift,danielmartin/swift,ben-ng/swift,jtbandes/swift,ken0nek/swift,gregomni/swift,Ivacker/swift,gottesmm/swift,LeoShimonaka/swift,gregomni/swift,tardieu/swift,swiftix/swift,adrfer/swift,xedin/swift,KrishMunot/swift,tardieu/swift,kentya6/swift,djwbrown/swift,swiftix/swift.old,devincoughlin/swift,zisko/swift,Swi...
b165ed7f282b736bb7fe9fa5e98455a437d23fa4
test/CodeGen/arm-asm-variable.c
test/CodeGen/arm-asm-variable.c
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volati...
// RUN: %clang_cc1 -triple armv7-apple-darwin9 -emit-llvm -w -o - %s | FileCheck %s #include <stdint.h> #define ldrex_func(p, rl, rh) \ __asm__ __volatile__( \ "ldrexd%[_rl], %[_rh], [%[_p]]" \ : [_rl] "=&r" (rl), [_rh] "=&r" (rh) \ : [_p] "p" (p) : "memory") int64_t foo(int64_t v, volati...
Make this test suitable for optimized builds by avoiding the name.
Make this test suitable for optimized builds by avoiding the name. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@133238 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl...
cf6afff7e568d87b92f9bbdae6e3c6608a981e6a
Classes/KRCloudSyncBlocks.h
Classes/KRCloudSyncBlocks.h
// // KRCloudSyncBlocks.h // CloudSync // // Created by allting on 12. 10. 19.. // Copyright (c) 2012년 allting. All rights reserved. // #ifndef CloudSync_KRCloudSyncBlocks_h #define CloudSync_KRCloudSyncBlocks_h @class KRSyncItem; typedef void (^KRCloudSyncStartBlock)(NSArray* syncItems); typedef void (^KRCloudS...
// // KRCloudSyncBlocks.h // CloudSync // // Created by allting on 12. 10. 19.. // Copyright (c) 2012년 allting. All rights reserved. // #ifndef CloudSync_KRCloudSyncBlocks_h #define CloudSync_KRCloudSyncBlocks_h @class KRSyncItem; typedef void (^KRCloudSyncStartBlock)(NSArray* syncItems); typedef void (^KRCloudS...
Support amd64. Release 2.3.5. Replace crittercism sdk.(ver 4.3.7)
Support amd64. Release 2.3.5. Replace crittercism sdk.(ver 4.3.7)
C
mit
MindPreview/KRCloudSync,MindPreview/KRCloudSync
2e1f71bdc24f162a88b0262350743d641b67bc4d
src/os/Win32/plugin.h
src/os/Win32/plugin.h
#ifndef PLUGIN_H_ #define PLUGIN_H_ #include <windows.h> #define EXPORT_CALLING __stdcall #define EXPORT __declspec(dllexport) EXPORT_CALLING #include "common.h" // just defined to make compilation work ; ignored #define RTLD_DEFAULT NULL #define RTLD_LOCAL -1 #define RTLD_LAZY -1 static inline void *dlopen(c...
#ifndef PLUGIN_H_ #define PLUGIN_H_ #include <windows.h> // TODO use __stdcall #define EXPORT_CALLING __cdecl #define EXPORT __declspec(dllexport) EXPORT_CALLING #include "common.h" // just defined to make compilation work ; ignored #define RTLD_DEFAULT NULL #define RTLD_LOCAL -1 #define RTLD_LAZY -1 static i...
Switch to __cdecl till we get --kill-at to work
Switch to __cdecl till we get --kill-at to work With this build, 32-bit windows DLL loads and checks out, but we really want to use __stdcall for the DLL entry points.
C
mit
kulp/tenyr,kulp/tenyr,kulp/tenyr
7752089ccdc6fd6c25c0af25275752cf2317eb0b
common.h
common.h
#ifndef _COMMON_H #define _COMMON_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #ifdef _LINUX #include <bsd/string.h> #endif #include <libxml/parser.h> #include <libxml/tree.h> #include <libxml/xmlsave.h> #include <libxml/encoding.h> #include <libxml/xmlstring.h>...
#ifndef _COMMON_H #define _COMMON_H #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #ifdef _LINUX #include <bsd/string.h> #endif #include <libxml/parser.h> #include <libxml/tree.h> #include <libxml/xmlsave.h> #include <libxml/encoding.h> #include <libxml/xmlstring.h>...
Call this version what it is. Missed in earlier.
Call this version what it is. Missed in earlier.
C
bsd-2-clause
levaidaniel/kc,levaidaniel/kc,levaidaniel/kc
c3767e9e67b7cf8d3b1c562ba5d260a42baabf1d
config.h
config.h
#ifndef PICAM_CONFIG_H #define PICAM_CONFIG_H #if defined(__cplusplus) extern "C" { #endif // Even if we specify 30 FPS, Raspberry Pi Camera provides slighly lower FPS. #define TARGET_FPS 30 #define GOP_SIZE TARGET_FPS #define H264_BIT_RATE 3000 * 1000 // 3 Mbps // 1600x900 is the upper limit if you don't use tunn...
#ifndef PICAM_CONFIG_H #define PICAM_CONFIG_H #if defined(__cplusplus) extern "C" { #endif // 1600x900 is the upper limit if you don't use tunnel from camera to video_encode. // 720p (1280x720) is good enough for most cases. #define WIDTH 1280 #define HEIGHT 720 // Even if we specify 30 FPS, Raspberry Pi Camera prov...
Change video bitrate to 2 Mbps
Change video bitrate to 2 Mbps
C
lgpl-2.1
iizukanao/picam,Rutong/picam,thagenbeek/picam,thagenbeek/picam,iizukanao/picam,iizukanao/picam,thagenbeek/picam,Rutong/picam
a07ddde4fa630539f5bd13d22485dd4715b067e1
argv.h
argv.h
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in * the LICENSE file in the root directory of this source tree. An * additional grant of patent rights can be found in the PATENTS file * in the same directory. * */ #pragma ...
/* * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in * the LICENSE file in the root directory of this source tree. An * additional grant of patent rights can be found in the PATENTS file * in the same directory. * */ #pragma ...
Add ARGV and ARGV_CONCAT macros
Add ARGV and ARGV_CONCAT macros
C
bsd-3-clause
JuudeDemos/fb-adb,JuudeDemos/fb-adb,tcmulcahy/fb-adb,JuudeDemos/fb-adb,0359xiaodong/fb-adb,tcmulcahy/fb-adb,biddyweb/fb-adb,biddyweb/fb-adb,tcmulcahy/fb-adb,biddyweb/fb-adb,0359xiaodong/fb-adb,0359xiaodong/fb-adb
6ffac22050217acb02c85c9f199c2bb18131b484
main.c
main.c
// Copyright 2016, Jeffrey E. Bedard #include "xstatus.h" #include "config.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> static const char * helptext = "DESCRIPTION: Simple X toolbar for minimalistic" " window managers.\n" "USAGE: xstatus [-d DELAY][-f FILE][-h]\n" "\t-d DELAY Set delay between ...
// Copyright 2016, Jeffrey E. Bedard #include "xstatus.h" #include "config.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> static const char helptext[] = "DESCRIPTION: Simple X toolbar for minimalistic" " window managers.\n" "USAGE: xstatus [-d DELAY][-f FILE][-h]\n" "\t-d DELAY Set delay between ...
Use write(2) to display helptext.
Use write(2) to display helptext.
C
mit
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus
f9e0b90cd8c66238a9e267fd78b95d0146b89064
SmartDeviceLink/SDLMacros.h
SmartDeviceLink/SDLMacros.h
// // SDLMacros.h // SmartDeviceLink-iOS // // Created by Muller, Alexander (A.) on 10/17/16. // Copyright © 2016 smartdevicelink. All rights reserved. // #ifndef SDLMacros_h #define SDLMacros_h // Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability. #ifndef SDL_SWIFT_ENUM #if __has_at...
// // SDLMacros.h // SmartDeviceLink-iOS // // Created by Muller, Alexander (A.) on 10/17/16. // Copyright © 2016 smartdevicelink. All rights reserved. // #ifndef SDLMacros_h #define SDLMacros_h // Resolves issue of pre-xcode 8 versions due to NS_STRING_ENUM unavailability. #ifndef SDL_SWIFT_ENUM #if __has_at...
Revert "Changed macro to look specifically for NS_STRING_ENUM"
Revert "Changed macro to look specifically for NS_STRING_ENUM" This reverts commit de01a9f7b3ed63f683604d3595568bacf5f54a5e.
C
bsd-3-clause
FordDev/sdl_ios,FordDev/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,APCVSRepo/sdl_ios,kshala-ford/sdl_ios,smartdevicelink/sdl_ios,kshala-ford/sdl_ios,APCVSRepo/sdl_ios,APCVSRepo/sdl_ios,smartdevicelink/sdl_ios,FordDev/sdl_ios,...
d4aa975d6504cf9c0653775cb9bee4976db48f36
src/mmu.h
src/mmu.h
#pragma once #include "address.h" #include "options.h" #include "cartridge/cartridge.h" #include <vector> #include <memory> class Video; class CPU; class Serial; class Input; class Timer; class MMU { public: MMU(std::shared_ptr<Cartridge> inCartridge, CPU& inCPU, Video& inVideo, Input& input, Serial& serial, Ti...
#pragma once #include "address.h" #include "options.h" #include "cartridge/cartridge.h" #include <vector> #include <memory> class Video; class CPU; class Serial; class Input; class Timer; class MMU { public: MMU(std::shared_ptr<Cartridge> inCartridge, CPU& inCPU, Video& inVideo, Input& input, Serial& serial, Ti...
Remove unnecessary const qualifier in function declaration
Remove unnecessary const qualifier in function declaration
C
bsd-3-clause
jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator
3225819105d4aeea7f374963cfb9d001e3add21b
include/inform/inform.h
include/inform/inform.h
// Copyright 2016 ELIFE. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. #pragma once #include <inform/dist.h> #include <inform/entropy.h> #include <inform/state_encoding.h> #include <inform/active_info.h> #include <inform/entropy_rate.h> #include...
// Copyright 2016 ELIFE. All rights reserved. // Use of this source code is governed by a MIT // license that can be found in the LICENSE file. #pragma once #include <inform/dist.h> #include <inform/shannon.h> #include <inform/state_encoding.h> #include <inform/active_info.h> #include <inform/entropy_rate.h> #include...
Include shannon.h instead of entropy.h
Include shannon.h instead of entropy.h
C
mit
dglmoore/Inform,ELIFE-ASU/Inform,ELIFE-ASU/Inform,dglmoore/Inform
cdf007579b40a6de97eed519fae989398f9dcf26
src/lib/RandomnessDelegate.h
src/lib/RandomnessDelegate.h
// // RandomnessDelegate.h // jdemon // // Created by Mark Larus on 3/19/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #ifndef __jdemon__RandomnessDelegate__ #define __jdemon__RandomnessDelegate__ #include <gsl/gsl_rng.h> #include <stdexcept> namespace Randomness { class Delegate { pr...
// // RandomnessDelegate.h // jdemon // // Created by Mark Larus on 3/19/13. // Copyright (c) 2013 Kenyon College. All rights reserved. // #ifndef __jdemon__RandomnessDelegate__ #define __jdemon__RandomnessDelegate__ #include <gsl/gsl_rng.h> #include <stdexcept> namespace Randomness { class Delegate { pr...
Use gsl_rng_uniform instead of gsl_rng_get
Use gsl_rng_uniform instead of gsl_rng_get
C
mit
marblar/demon,marblar/demon,marblar/demon,marblar/demon
ad59ece0e473ce0278ab3516e9d0a757955a5da1
test/cfi/icall/external-call.c
test/cfi/icall/external-call.c
// RUN: %clang_cfi -lm -o %t1 %s // RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s // RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s // This test uses jump tables containing PC-relative references to external // symbols, which the Mach-O object writer does not currently support. // XFAIL: darwin #include <s...
// RUN: %clang_cfi -lm -o %t1 %s // RUN: %t1 c 1 2>&1 | FileCheck --check-prefix=CFI %s // RUN: %t1 s 2 2>&1 | FileCheck --check-prefix=CFI %s // This test uses jump tables containing PC-relative references to external // symbols, which the Mach-O object writer does not currently support. // The test passes on i386 Da...
Mark a test as unsupported on darwin.
[cfi] Mark a test as unsupported on darwin. git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@315007 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt
098c879ed8c055047261c5cce0567b81fecbf197
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Add flags to stage Skia API changes
Add flags to stage Skia API changes Test: make Bug: 178700363 Change-Id: I5d214f8fd69f7419f8b98f61a6e2f26f08587ff7
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
a55236affb0c47b07533db1a13b094b0b567606c
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Add flag to stage api change
Add flag to stage api change Related skia cl: https://skia-review.googlesource.com/c/skia/+/358736 Test: make Change-Id: Ic02219b27117280addfd083481a1ae2440584d65
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
20abb0f77e5ddbf3481d9bd4e9335d7a32fcfc40
lib/GPIOlib.h
lib/GPIOlib.h
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); //direction is either FORWARD or BACKWARD. speed can be an integer ranging from 0 to 100. int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); ...
#ifndef GPIOLIB_H #define GPIOLIB_H #define FORWARD 1 #define BACKWARD 0 namespace GPIO { int init(); int controlLeft(int direction,int speed); int controlRight(int direction,int speed); int stopLeft(); int stopRight(); int resetCounter(); void getCounter(int *countLeft,int *countRight); int turnTo(int an...
Remove texts for unserstanding to Wiki pages
Remove texts for unserstanding to Wiki pages
C
mit
miaoxw/EmbeddedSystemNJU2017-Demo
bcb8a9fa53da3a99f9ee035e7c5407dd61853d6f
common/c_cpp/src/c/windows/wombat/wUuid.h
common/c_cpp/src/c/windows/wombat/wUuid.h
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * 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...
/* $Id: wUuid.h,v 1.1.2.2 2012/03/20 11:15:17 emmapollock Exp $ * * OpenMAMA: The open middleware agnostic messaging API * Copyright (C) 2011 NYSE Inc. * * 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...
Change uuid to char* from int for Windows
[common] Change uuid to char* from int for Windows
C
lgpl-2.1
MattMulhern/OpenMAMA,cloudsmith-io/openmama,dmaguire/OpenMAMA,dmaguire/OpenMAMA,dmaguire/OpenMAMA,vulcanft/openmama,fquinner/OpenMAMA,fquinner/OpenMAMA,jacobraj/MAMA,dpauls/OpenMAMA,dmaguire/OpenMAMA,philippreston/OpenMAMA,dmaguire/OpenMAMA,philippreston/OpenMAMA,philippreston/OpenMAMA,jacobraj/MAMA,cloudsmith-io/openm...
c33df657a16fbc23df2b6ec1c38060060cd3608a
include/config/SkUserConfigManual.h
include/config/SkUserConfigManual.h
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkUserConfigManual_DEFINED #define SkUserConfigManual_DEFINED #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define SK_DEFAULT_FONT_CACHE_LIMIT ...
Maintain the legacy behavior for WebP loop count
Maintain the legacy behavior for WebP loop count Bug: 145995037 Test: No change in behavior; no new tests https://skia-review.googlesource.com/c/skia/+/259161 updates Skia to report the proper number of repetitions for a WebP file. This build flag ensures that we stick with the existing behavior until we're ready to ...
C
bsd-3-clause
aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-...
24ccdf6f2a0802a286416133d31364d42d18d720
slave/sregisters.h
slave/sregisters.h
#define _SLAVEREGISTERS #include <inttypes.h> //Functions needed from other modules extern void MODBUSBuildException( uint8_t, uint8_t ); //Functions for parsing requests extern void MODBUSParseRequest03( union MODBUSParser *Parser ); extern void MODBUSParseRequest06( union MODBUSParser *Parser ); extern void MODBUS...
#define _SLAVEREGISTERS #include <inttypes.h> //Functions needed from other modules extern void MODBUSBuildException( uint8_t, uint8_t ); //Functions for parsing requests extern void MODBUSParseRequest03( union MODBUSParser *Parser ); extern void MODBUSParseRequest06( union MODBUSParser *Parser ); extern void MODBUS...
Add prototypes of response-building functions
Add prototypes of response-building functions
C
mit
Jacajack/modlib
a57adb1ba137c47d7ebaef9f64e265fcf653debe
include/config.h
include/config.h
/************************************************* * Configuration Handling Header File * * (C) 1999-2007 Jack Lloyd * *************************************************/ #ifndef BOTAN_POLICY_CONF_H__ #define BOTAN_POLICY_CONF_H__ #include <botan/mutex.h> #include <string> #include <v...
/************************************************* * Configuration Handling Header File * * (C) 1999-2008 Jack Lloyd * *************************************************/ #ifndef BOTAN_POLICY_CONF_H__ #define BOTAN_POLICY_CONF_H__ #include <botan/mutex.h> #include <string> #include <m...
Remove unused include of <vector>
Remove unused include of <vector>
C
bsd-2-clause
randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/b...
1ab12bed7f1c38c280876197408bd32e289ac41f
modlib.c
modlib.c
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa unsigned char Swap; //Create 2 bytes long union union Conversion { uint16_t Data; unsigned char Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; ...
#include "modlib.h" uint16_t MODBUSSwapEndian( uint16_t Data ) { //Change big-endian to little-endian and vice versa unsigned char Swap; //Create 2 bytes long union union Conversion { uint16_t Data; unsigned char Bytes[2]; } Conversion; //Swap bytes Conversion.Data = Data; ...
Add CRC16 checksum calculation function
Add CRC16 checksum calculation function
C
mit
Jacajack/modlib
d4ea2ac1a1bbf61ed190ac9b6e78d6be4ce687f6
src/utils.h
src/utils.h
#ifndef _INC_UTILS_H #define _INC_UTILS_H #include "basetypes.h" void *advancePtr(void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } const void *advancePtr(const void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } #endif//_INC_UTILS_H
#ifndef _INC_UTILS_H #define _INC_UTILS_H #include "basetypes.h" inline void *advancePtr(void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } inline const void *advancePtr(const void *vp, SizeType len) { return (void*)((unsigned char *)(vp) + len); } #endif//_INC_UTILS_H
Fix header methods to be inline
Fix header methods to be inline
C
mit
aroxby/cpu,aroxby/cpu
0b78dce3a2bd416375327b1e4436883da673009e
test2/type_parsing_printing/typeof_skip.c
test2/type_parsing_printing/typeof_skip.c
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __typeof(int *) *a1; __typeof(int *) a2[2]; __typeof(i...
// RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') abc()" "typeof(expr: identifier) (aka 'long *') xyz()" long *x; __typeof(int *) ip; __type...
Add trailing return type to type printing test
Add trailing return type to type printing test
C
mit
8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler
d7dcfd3383fe903697b6aac817df17426de2f5a7
cbits/hashByteString.c
cbits/hashByteString.c
/* Bernstein's hash */ int djb_hash(const char* str, int len, int hash) { while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
/* Bernstein's hash */ int djb_hash(const unsigned char* str, int len, int hash) { while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
Fix the handling of signedness, which caused a nasty bug
Fix the handling of signedness, which caused a nasty bug
C
bsd-3-clause
ekmett/hashable
fa52b947edea97d14f48e656125c7d640d748e85
cbits/hashByteString.c
cbits/hashByteString.c
int hashByteString(const char* str, int len) { int hash = 0; while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
/* Bernstein's hash */ int hashByteString(const char* str, int len) { int hash = 0; while (len--) { hash = (hash * 33) ^ *str++; } return hash; }
Document where our hash function comes from
Document where our hash function comes from
C
bsd-3-clause
ekmett/hashable
e7a73040132035225ee11a735afb54c3590f7648
lib/journal.h
lib/journal.h
/* libcopy -- journal support * (c) 2011 Michał Górny * 2-clause BSD-licensed */ #pragma once #ifndef _ATOMIC_INSTALL_JOURNAL_H #define _ATOMIC_INSTALL_JOURNAL_H typedef struct ai_journal *journal_t; int ai_journal_create(const char *journal_path, const char *location); int ai_journal_open(const char *journal_pa...
/* libcopy -- journal support * (c) 2011 Michał Górny * 2-clause BSD-licensed */ #pragma once #ifndef _ATOMIC_INSTALL_JOURNAL_H #define _ATOMIC_INSTALL_JOURNAL_H typedef struct ai_journal *journal_t; int ai_journal_create(const char *journal_path, const char *location); int ai_journal_open(const char *journal_pa...
Fix comment in header guard.
Fix comment in header guard.
C
bsd-2-clause
mgorny/atomic-install