commit
stringlengths
40
40
old_file
stringlengths
4
264
new_file
stringlengths
4
264
old_contents
stringlengths
0
4.24k
new_contents
stringlengths
1
5.44k
subject
stringlengths
14
778
message
stringlengths
15
9.92k
lang
stringclasses
277 values
license
stringclasses
13 values
repos
stringlengths
5
127k
324243f6bb70687aeaeb2419193a335648c5869d
thrust/detail/config/cpp_dialect.h
thrust/detail/config/cpp_dialect.h
/* * Copyright 2018 NVIDIA Corporation * * 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 ...
/* * Copyright 2018 NVIDIA Corporation * * 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 ...
Revert "Handle MSVC's definition of __cplusplus"
Revert "Handle MSVC's definition of __cplusplus" This reverts commit 20e1c433e05c7147af5c267e0e0a38a781a6efb4.
C
apache-2.0
thrust/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,jaredhoberock/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,andrewcorrigan/thrust-multi-permutation-iterator,thrust/thrust,thrust/thrust,thrust/thrust,andrewcorrigan/thrust-multi-permutation-iterator,jaredhoberock/thrus...
2766579a314f92c3fdf3f87e7bb20e5a4e52c01b
JPetUnpacker/Unpacker2/TDCChannel.h
JPetUnpacker/Unpacker2/TDCChannel.h
#ifndef TDCChannel_h #define TDCChannel_h #include <fstream> #include <TObject.h> #include <TClonesArray.h> #include <iostream> #define MAX_FULL_HITS 100 class TDCChannel : public TObject { protected: Int_t channel; double leadTime1; double trailTime1; double tot1; double referenceDiff1; double leadTimes[M...
#ifndef TDCChannel_h #define TDCChannel_h #include <fstream> #include <TObject.h> #include <TClonesArray.h> #include <iostream> #define MAX_FULL_HITS 50 class TDCChannel : public TObject { protected: Int_t channel; double leadTime1; double trailTime1; double tot1; double referenceDiff1; double leadTimes[MA...
Change TDCHits array size from 100 to 50
Change TDCHits array size from 100 to 50 For consistency with the standalone version of the Unpacker.
C
apache-2.0
kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework,kmuzalewska/j-pet-framework
f5eda040d34b33f438d562ae5cef8bf144d7f9fe
bin/varnishd/mgt.h
bin/varnishd/mgt.h
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); void mgt_start_child(void); void mgt_stop_child(void); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int m...
/* * $Id$ */ #include "common.h" #include "miniobj.h" extern struct evbase *mgt_evb; /* mgt_child.c */ void mgt_run(int dflag); extern pid_t mgt_pid, child_pid; /* mgt_cli.c */ void mgt_cli_init(void); void mgt_cli_setup(int fdi, int fdo, int verbose); int mgt_cli_askchild(int *status, char **resp, const char *f...
Remove prototypes for no longer existing functions
Remove prototypes for no longer existing functions git-svn-id: 2c9807fa3ff65b17195bd55dc8a6c4261e10127b@659 d4fa192b-c00b-0410-8231-f00ffab90ce4
C
bsd-2-clause
gauthier-delacroix/Varnish-Cache,drwilco/varnish-cache-drwilco,gauthier-delacroix/Varnish-Cache,ajasty-cavium/Varnish-Cache,wikimedia/operations-debs-varnish,ssm/pkg-varnish,1HLtd/Varnish-Cache,ambernetas/varnish-cache,chrismoulton/Varnish-Cache,gauthier-delacroix/Varnish-Cache,zhoualbeart/Varnish-Cache,feld/Varnish-Ca...
79d2c8944e8cb838cf6fba47d8f857672f05855d
src/clientversion.h
src/clientversion.h
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 0 #define CLIENT_VERSION_BUILD 0 // Set to ...
#ifndef CLIENTVERSION_H #define CLIENTVERSION_H // // client versioning // // These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it #define CLIENT_VERSION_MAJOR 0 #define CLIENT_VERSION_MINOR 8 #define CLIENT_VERSION_REVISION 1 #define CLIENT_VERSION_BUILD 99 // Set to...
Switch version numbers to 0.8.1.99
Switch version numbers to 0.8.1.99
C
mit
bmp02050/ReddcoinUpdates,ahmedbodi/poscoin,reddcoin-project/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,coinkeeper/2015-06-22_19-10_cannacoin,bmp02050/ReddcoinUpdates,joroob/reddcoin,coinkeeper/2015-06-22_19-10_cannacoin,reddink/reddcoin,bmp02050/ReddcoinUpdates,reddink/reddcoin,reddink/reddcoin,Cannacoin-Project/Ca...
486c59553f64771f7bc1c984324b71442b45dfa2
TDTChocolate/TDTCoreDataAdditions.h
TDTChocolate/TDTCoreDataAdditions.h
#import "CoreDataAdditions/NSManagedObject+TDTAdditions.h" #import "CoreDataAdditions/NSManagedObjectContext+TDTAdditions.h" #import "CoreDataAdditions/TDTCoreDataUtilityMacros.h" #ifdef TARGET_IPHONE_OS #import "CoreDataAdditions/NSFetchedResultsController+TDTAdditions.h" #endif
#import "CoreDataAdditions/NSManagedObject+TDTAdditions.h" #import "CoreDataAdditions/NSManagedObjectContext+TDTAdditions.h" #import "CoreDataAdditions/TDTCoreDataUtilityMacros.h" #import "TargetConditionals.h" #if TARGET_OS_IPHONE #import "CoreDataAdditions/NSFetchedResultsController+TDTAdditions.h" #endif
Fix conditional compilation mechanism for ios
Fix conditional compilation mechanism for ios
C
bsd-3-clause
talk-to/Chocolate,talk-to/Chocolate
526b46b04e52247275453fca4d3c8c94d45cb91b
std/fp16.h
std/fp16.h
#ifndef __STD_FP16_H__ #define __STD_FP16_H__ typedef struct { int16_t integer; uint16_t fraction; } Q16T; void CastFloatQ16(Q16T *result asm("a0"), float value asm("fp0")); void CastIntQ16(Q16T *result asm("a0"), int value asm("d0")); void IAddQ16(Q16T *result asm("a0"), Q16T value asm("d0")); #endif
Add stubs for fp 16.16 handling rountines.
Add stubs for fp 16.16 handling rountines.
C
artistic-2.0
cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene
78604e09580cac8f6e3adcb79e250adad46b04f7
Wikipedia/Code/WKScriptMessage+WMFScriptMessage.h
Wikipedia/Code/WKScriptMessage+WMFScriptMessage.h
#import <WebKit/WebKit.h> typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) { WMFWKScriptMessagePeek, WMFWKScriptMessageConsoleMessage, WMFWKScriptMessageClickLink, WMFWKScriptMessageClickImage, WMFWKScriptMessageClickReference, WMFWKScriptMessageClickEdit, WMFWKScriptMessageNonAnchorTouc...
#import <WebKit/WebKit.h> typedef NS_ENUM (NSInteger, WMFWKScriptMessageType) { WMFWKScriptMessageUnknown, WMFWKScriptMessagePeek, WMFWKScriptMessageConsoleMessage, WMFWKScriptMessageClickLink, WMFWKScriptMessageClickImage, WMFWKScriptMessageClickReference, WMFWKScriptMessageClickEdit, ...
Move unknown enum entry to top.
Move unknown enum entry to top.
C
mit
montehurd/apps-ios-wikipedia,wikimedia/apps-ios-wikipedia,wikimedia/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,anirudh24seven/wikipedia-ios,julienbodet/wikipedia-ios,anirudh24seven/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,wikimedia/wikipedia-ios,wikimedia/wikipedia-ios,wi...
ad63f95e203ba5f5fe7e9fc5abf3c357a79d014f
examples/consume-compare-test.c
examples/consume-compare-test.c
#define REQUIRE_EXPLICIT_ATOMICS 1 #include "rmc.h" int foo; // LLVM will want to propagate the knowledge that p == &foo into the // conditional, breaking our chain. We need to make sure that doesn't // happen. The optimization is performed by -gvn. int test(_Rmc(int *)* pp) { XEDGE(a, b); int *p = L(a, rmc_l...
Add a (broken) test for consume-style things where we compare the pointer.
Add a (broken) test for consume-style things where we compare the pointer.
C
mit
msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler,msullivan/rmc-compiler
bc8356bb8359e531c793a2c9fc4a0e46c34361f3
src/xenia/base/bit_field.h
src/xenia/base/bit_field.h
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2017 Ben Vanik. All rights reserved. ...
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2017 Ben Vanik. All rights reserved. ...
Remove usage of non standard identity struct
Remove usage of non standard identity struct std::identity was removed from the standards, but Visual Studio kept it as an extension. Replace it by std::remove_reference, which does just a little bit more than std::identity does, but without impact in this case.
C
bsd-3-clause
sephiroth99/xenia,sephiroth99/xenia,sephiroth99/xenia
c6813f627f8facb973616f1cec551013b46ebb00
bin/check_it.c
bin/check_it.c
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> int main(int argc, char** argv) { struct passwd *passwd = getpwuid(getuid()); int errno = setreuid(geteuid(), geteuid()); // errno = execle("/usr/bin/id", (char *) 0, envp); if (errno == 0 && passwd != 0) { // CHECK...
#include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <pwd.h> int main(int argc, char** argv) { struct passwd *passwd = getpwuid(getuid()); int errno = setreuid(geteuid(), geteuid()); // errno = execle("/usr/bin/id", (char *) 0, envp); if (errno == 0 && passwd != 0) { // CHECK...
Set LC_ALL to UTF-8 so that SSH is clean.
Set LC_ALL to UTF-8 so that SSH is clean.
C
agpl-3.0
jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt,jimwhite/CheckIt
c4f3c0153378f2a49adf47940d4de489642d8be1
src/common/matrix.h
src/common/matrix.h
#ifndef COMMON_MATRIX_H #define COMMON_MATRIX_H /* * Printipi/common/matrix.h * (c) 2014 Colin Wallace * * This file exposes classes and templates used to construct 3x3 matrices. * Matrices are useful in applying linear transformations. Notably, they can be used to adjust coordinates to a different coordinate-sp...
#ifndef COMMON_MATRIX_H #define COMMON_MATRIX_H #include "common/vector3.h" /* * Matrices are useful in applying linear transformations. * Notably, they can be used to adjust coordinates to a different coordinate-space in order to account for an unlevel bed. */ class Matrix3x3 { //r0, r1, r2 each represent o...
Refactor Matrix3x3 to internally use Vector3's
Refactor Matrix3x3 to internally use Vector3's
C
mit
harry159821/printipi,Wallacoloo/printipi,Wallacoloo/printipi,harry159821/printipi,Igor-Rast/printipi,Igor-Rast/printipi,harry159821/printipi,Igor-Rast/printipi,harry159821/printipi,Wallacoloo/printipi,Igor-Rast/printipi,Wallacoloo/printipi
ec2c60ee36437d0bf817a836aa78130087c36fc7
bcl/stm/src/main.c
bcl/stm/src/main.c
#include <bc_scheduler.h> #include <bc_module_core.h> #include <stm32l0xx.h> void application_init(void); void application_task(void *param); int main(void) { bc_module_core_init(); bc_scheduler_init(); application_init(); bc_scheduler_register(application_task, NULL, 0); bc_scheduler_run(); }...
#include <bc_scheduler.h> #include <bc_module_core.h> #include <stm32l0xx.h> void application_init(void); void application_task(void *param); int main(void) { bc_module_core_init(); bc_scheduler_init(); bc_scheduler_register(application_task, NULL, 0); application_init(); bc_scheduler_run(); }...
Move app_task() scheduler registration before app_init() so app_task() has task_id 0
Move app_task() scheduler registration before app_init() so app_task() has task_id 0
C
mit
bigclownlabs/bc-core-module-sdk,bigclownlabs/bc-core-module-sdk,bigclownlabs/bc-core-module-sdk
2d12b42eb6dda7dcf6e4088201c754842b4b50b2
arp.h
arp.h
#ifndef ARP_H_ #define ARP_H_ /* * Address Resolution Protocol. * See RFC 826 for protocol description. * - https://tools.ietf.org/html/rfc826 */ struct arphdr { uint16_t ar_hrd; /* hardware type, one of: */ #define ARPHRD_ETHER 1 /* ethernet */ #define ARPHRD_FRELAY 15 /* frame relay */ uint16_t ar_pro; /* pr...
Add a structure that defines ARP headers
Add a structure that defines ARP headers
C
bsd-3-clause
cakturk/unet,cakturk/unet,cakturk/unet
ba93087ebd43c0f7b3e980dc9e49a9313d9c9f01
test/Analysis/malloc.c
test/Analysis/malloc.c
// RUN: clang-cc -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-experimental-checks -analyzer-store=region -verify %s #include <stdlib.h> void f1() { int *p = malloc(10); return; // expected-warning{{Allocated memory never released. Potential memory leak.}} } void f2() { int *p = mallo...
// RUN: clang-cc -analyze -analyzer-experimental-internal-checks -checker-cfref -analyzer-experimental-checks -analyzer-store=region -verify %s #include <stdlib.h> void f1() { int *p = malloc(10); return; // expected-warning{{Allocated memory never released. Potential memory leak.}} } // THIS TEST CURRENTLY FAILS...
Add test case that shows a leak we don't catch.
Add test case that shows a leak we don't catch. git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@88683 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,llvm-mirror/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,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
9c0a2f00ec83264534269aab1b97dc7f78bd2a4d
testing/test_hashmap.c
testing/test_hashmap.c
#include <CUnit/CUnit.h> #include <CUnit/Basic.h> #include <utils/hashmap.h> void test_hashmap_create(void) { return; } int main(int argc, char **argv) { CU_pSuite suite = NULL; if(CU_initialize_registry() != CUE_SUCCESS) { return CU_get_error(); } // Init suite suite = CU_add_suite(...
#include <CUnit/CUnit.h> #include <CUnit/Basic.h> #include <utils/hashmap.h> void test_hashmap_create(void) { return; } void test_hashmap_free(void) { return; } void test_hashmap_delete(void) { return; } void test_hashmap_insert(void) { return; } void test_hashmap_get(void) { return; } void te...
Add some more test function stubs
Add some more test function stubs
C
mit
pmjdebruijn/openomf,gdeda/openomf,omf2097/openomf,pmjdebruijn/openomf,omf2097/openomf,omf2097/openomf,gdeda/openomf,pmjdebruijn/openomf,gdeda/openomf
ceec0a0fc3e0d263641ab546f84a2ff14a2b3adf
includes/sv-comp.c
includes/sv-comp.c
void __VERIFIER_error() { abort(); } // Some files define __VERIFIER_assume, some declare as extern. What happens when redefined? void __VERIFIER_assume(int expression) { if (!expression) { LOOP: goto LOOP; }; return; } // #define __VERIFIER_nondet(X) X __VERIFIER_nondet_##X() { X val; return val; } #define __VERIFIE...
void __VERIFIER_error() { abort(); } // Some files define __VERIFIER_assume, some declare as extern. What happens when redefined? void __VERIFIER_assume(int expression) { if (!expression) { LOOP: goto LOOP; }; return; } // #define __VERIFIER_nondet(X) X __VERIFIER_nondet_##X() { X val; return val; } #define __VERIFIE...
Add empty definitions for __VERIFIER_atomic_begin and end
Add empty definitions for __VERIFIER_atomic_begin and end
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4b42be91379a1fdf0262e099e061d5855291df5c
ecc.c
ecc.c
#include <stdio.h> #include <stdlib.h> // Chunk of a finite field element. typedef unsigned char chunk; // Number of chunks per element. #define N 10 // A finite field element. typedef struct { chunk v[N]; }* number; // Helper macro. #define FOR(i) for (int i = 0; i < N; i++) number new_number() { number n = mall...
Add finite field operations in c
Add finite field operations in c
C
mit
boppreh/ecc,boppreh/ecc
ebbc4230bee4c02e6b33bc523d746f9225b3082d
inc/microbit/MicroBitCustomConfig.h
inc/microbit/MicroBitCustomConfig.h
/** * MicroBitCustomConfig.h * * This file is automatically included by the microbit DAL compilation * process. Use this to define any custom configration options needed * for your build of the micro:bit runtime. * * See microbit-dal/inc/MicroBitConfig.h for a complete list of options. * Any options you...
/** * MicroBitCustomConfig.h * * This file is automatically included by the microbit DAL compilation * process. Use this to define any custom configration options needed * for your build of the micro:bit runtime. * * See microbit-dal/inc/MicroBitConfig.h for a complete list of options. * Any options you...
Disable the DAL's radio IRQ handler so we can use our own.
Disable the DAL's radio IRQ handler so we can use our own.
C
mit
JoeGlancy/micropython,JoeGlancy/micropython,JoeGlancy/micropython
3869a1728808fc9e075d0091bb03826fa6ed58b0
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2008 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.02.01-k8" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 2 #define QLA_DRIVER_PATCH_VER 1 #define...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2008 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.02.01-k9" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 2 #define QLA_DRIVER_PATCH_VER 1 #define...
Update version number to 8.02.01-k9.
[SCSI] qla2xxx: Update version number to 8.02.01-k9. Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@HansenPartnership.com>
C
mit
KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,Krist...
15a3758dc9e1c9d862e46acdf607de70c302fa6a
drivers/scsi/qla2xxx/qla_version.h
drivers/scsi/qla2xxx/qla_version.h
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.05-k4" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 5 #define...
/* * QLogic Fibre Channel HBA Driver * Copyright (c) 2003-2005 QLogic Corporation * * See LICENSE.qla2xxx for copyright and licensing details. */ /* * Driver version */ #define QLA2XXX_VERSION "8.01.07-k1" #define QLA_DRIVER_MAJOR_VER 8 #define QLA_DRIVER_MINOR_VER 1 #define QLA_DRIVER_PATCH_VER 7 #define...
Update version number to 8.01.07-k1.
[SCSI] qla2xxx: Update version number to 8.01.07-k1. Signed-off-by: Andrew Vasquez <67840a4977006af7f584bdc4c86d7243c1629cad@qlogic.com> Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@SteelEye.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k...
2d18ac2cf8aa2503545d0bd4d3ff883c407ccd99
src/assert.c
src/assert.c
static char rcsid[] = "$Id: H:/drh/idioms/book/RCS/except.doc,v 1.10 1997/02/21 19:43:55 drh Exp $"; #include "assert.h" const Except_T Assert_Failed = { "Assertion failed" }; void (assert)(int e) { assert(e); }
/** * assert.c * * Copyright (C) 2017 Nickolas Burr <nickolasburr@gmail.com> */ #include "assert.h" const Except_T Assert_Failed = { "Assertion failed" }; void (assert)(int e) { assert(e); }
Update formatting, remove CII vars
Update formatting, remove CII vars
C
mit
nickolasburr/git-stashd,nickolasburr/git-stashd,nickolasburr/git-stashd
48a21d9a1a91d1f4c15095ee848941df5bac0e8f
src/diskio.c
src/diskio.c
#include <stdlib.h> #include <stdio.h> #include "diskio.h" char* loadDataFromDiskFile(char* fileName) { FILE* diskFile = fopen(fileName, "rb"); if(diskFile == NULL) return NULL; char* diskData = (char*)malloc(sizeof(char) * DISK_SIZE); if(!fgets(diskData, DISK_SIZE, diskFile)) { ...
#include <stdlib.h> #include <stdio.h> #include "diskio.h" char* loadDataFromDiskFile(char* fileName) { FILE* diskFile = fopen(fileName, "rb"); if(diskFile == NULL) return NULL; char* diskData = (char*)malloc(sizeof(char) * DISK_SIZE); /* TODO: Return null if bytes read is less than ...
Use correct file io function for binary reads
Use correct file io function for binary reads
C
mit
drdanick/apricos-fs-manager
01d189c2149e3a1bc84aef1e08d138aae553f51a
include/ethernet.h
include/ethernet.h
#ifndef ETHERNET_H_ #define ETHERNET_H_ #include <linux/if_ether.h> struct eth_hdr { unsigned char dst_mac[6]; unsigned char src_mac[6]; unsigned short ethertype; unsigned char* payload; }; struct eth_hdr* init_eth_hdr(char* buf); void print_eth_hdr(struct eth_hdr *ehdr); #endif
#ifndef ETHERNET_H_ #define ETHERNET_H_ #include <linux/if_ether.h> struct eth_hdr { unsigned char dst_mac[6]; unsigned char src_mac[6]; unsigned short ethertype; unsigned char payload[]; }; struct eth_hdr* init_eth_hdr(char* buf); void print_eth_hdr(struct eth_hdr *ehdr); #endif
Fix wrong eth payload data type
Fix wrong eth payload data type Declaring a pointer here and type-casting the buffer to a eth struct just overwrites the pointer with the payloads contents! Oops! Declaring a flexible array member is better. https://en.wikipedia.org/wiki/Flexible_array_member
C
mit
saminiir/level-ip,saminiir/level-ip
c8467aa2b596b499d07951e729aa7932001e3257
src/imap/cmd-logout.c
src/imap/cmd-logout.c
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_logout(struct client *client) { client_send_line(client, "* BYE Logging out"); if (client->mailbox != NULL) { /* this could be done at client_disconnect() as well, but eg. mbox rewrite takes a while so the waiting is ...
/* Copyright (C) 2002 Timo Sirainen */ #include "common.h" #include "commands.h" int cmd_logout(struct client *client) { client_send_line(client, "* BYE Logging out"); o_stream_uncork(client->output); if (client->mailbox != NULL) { /* this could be done at client_disconnect() as well, but eg. mbox rewrite ...
Send the "* BYE Logging out" before closing mailbox.
Send the "* BYE Logging out" before closing mailbox. --HG-- branch : HEAD
C
mit
dscho/dovecot,dscho/dovecot,jwm/dovecot-notmuch,jwm/dovecot-notmuch,jkerihuel/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch
ae9bf18bde6fd548f5e598cc33f2f99bbfb49d44
source/target/siliconlabs/efm32gg/target_reset.c
source/target/siliconlabs/efm32gg/target_reset.c
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
/* CMSIS-DAP Interface Firmware * Copyright (c) 2009-2013 ARM Limited * * 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 re...
Change the EFM32 reset type to a software reset
Change the EFM32 reset type to a software reset Change the reset type from a hardware reset to a software reset. It appears that hardware resets cause the debug logic to get reset causing a failure in the initialization sequence. This needs to be investigated further.
C
apache-2.0
sg-/DAPLink,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port
5439e60468398c955f2448df853a11a8e36d9dcd
link-grammar/dict-common/dict-impl.h
link-grammar/dict-common/dict-impl.h
#include "link-includes.h" // Already declared in link-includes.h // const char * linkgrammar_get_dict_locale(Dictionary dict); // const char * linkgrammar_get_version(void); // const char * linkgrammar_get_dict_version(Dictionary dict); void dictionary_setup_locale(Dictionary dict); void dictionary_setup_defines(Di...
#include "link-includes.h" #include "utilities.h" // Already declared in link-includes.h // const char * linkgrammar_get_dict_locale(Dictionary dict); // const char * linkgrammar_get_version(void); // const char * linkgrammar_get_dict_version(Dictionary dict); void dictionary_setup_locale(Dictionary dict); void dict...
Add a missing prototype (callGetLocaleInfoEx())
MinGW: Add a missing prototype (callGetLocaleInfoEx())
C
lgpl-2.1
ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,linas/link-grammar,ampli/link-grammar,linas/link-grammar,opencog/link-grammar,ampli/link-grammar,opencog/link-grammar,opencog/link-grammar,linas/link-grammar,openco...
5f0ef4eda80a6db44b091bb8693589ccba5544c6
src/lib/marble/geodata/data/GeoDataTimeStamp_p.h
src/lib/marble/geodata/data/GeoDataTimeStamp_p.h
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2010 Harshit Jain <hjain.itbhu@gmail.com> // #ifndef GEODATATIMESTAMPPRIVATE_H #de...
// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2010 Harshit Jain <hjain.itbhu@gmail.com> // #ifndef GEODATATIMESTAMPPRIVATE_H #de...
Add missing initialization of time resolution
Add missing initialization of time resolution
C
lgpl-2.1
quannt24/marble,probonopd/marble,probonopd/marble,probonopd/marble,David-Gil/marble-dev,tucnak/marble,probonopd/marble,David-Gil/marble-dev,tzapzoor/marble,quannt24/marble,tzapzoor/marble,quannt24/marble,probonopd/marble,tucnak/marble,David-Gil/marble-dev,tzapzoor/marble,tzapzoor/marble,tucnak/marble,quannt24/marble,tz...
b4baf13b85a2dff0525998cd3138d2433b25580b
Other/AardvarkDefines.h
Other/AardvarkDefines.h
// // AardvarkDefines.h // Aardvark // // Created by Dan Federman on 10/4/14. // Copyright (c) 2014 Square, Inc. All rights reserved. // /** Provides the ability to verify key paths at compile time. If "keyPath" does not exist, a compile-time error will be generated. Example: // Verifies "isFinished" exist...
// // AardvarkDefines.h // Aardvark // // Created by Dan Federman on 10/4/14. // Copyright (c) 2014 Square, Inc. All rights reserved. // /** Provides the ability to verify key paths at compile time. If "keyPath" does not exist, a compile-time error will be generated. Example: // Verifies "isFinished" exist...
Add newline to end of file
Add newline to end of file
C
apache-2.0
square/Aardvark,square/Aardvark,mtxs007/Aardvark,square/Aardvark,tinyspeck/Aardvark,vamsirajendra/Aardvark
44b3e6b16c70304cca687e7bc0bbd175f7400926
include/stdbool.h
include/stdbool.h
#ifndef _UCC_STDBOOL_H #define _UCC_STDBOOL_H #define __bool_true_false_are_defined 1 typedef _Bool bool; #define bool bool #define false 0 #define true 1 #endif
#ifndef _UCC_STDBOOL_H #define _UCC_STDBOOL_H #define __bool_true_false_are_defined 1 #define bool _Bool #define false 0 #define true 1 #endif
Change bool to a macro instead of typedef
Change bool to a macro instead of typedef
C
mit
bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler
f455dfb106916d855d59686fe16575c2ceb2cb2a
arch/arm/mach-shark/include/mach/io.h
arch/arm/mach-shark/include/mach/io.h
/* * arch/arm/mach-shark/include/mach/io.h * * by Alexander Schulz * * derived from: * arch/arm/mach-ebsa110/include/mach/io.h * Copyright (C) 1997,1998 Russell King */ #ifndef __ASM_ARM_ARCH_IO_H #define __ASM_ARM_ARCH_IO_H #define PCIO_BASE 0xe0000000 #define IO_SPACE_LIMIT 0xffffffff #define __io(a) __ty...
/* * arch/arm/mach-shark/include/mach/io.h * * by Alexander Schulz * * derived from: * arch/arm/mach-ebsa110/include/mach/io.h * Copyright (C) 1997,1998 Russell King */ #ifndef __ASM_ARM_ARCH_IO_H #define __ASM_ARM_ARCH_IO_H #define PCIO_BASE 0xe0000000 #define IO_SPACE_LIMIT 0xffffffff #define __io(a) __ty...
Fix up merge with the ARM tree
ASoC: Fix up merge with the ARM tree The same change has been made with the final lines in slightly differnet orders. Signed-off-by: Mark Brown <b51b9a92386687a9ac927cebfa0f978adeb8cea5@opensource.wolfsonmicro.com>
C
mit
KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana...
ce1c5ee0155b47403c63232a5e073929e6243897
ruby/ext/bson/native.c
ruby/ext/bson/native.c
#include <ruby.h> #include <stdint.h> static VALUE rb_integer_to_bson(VALUE self) { const int32_t v = NUM2INT(self); const char bytes[4] = { v & 255, (v >> 8) & 255, (v >> 16) & 255, (v >> 24) & 255 }; return rb_str_new(bytes, 4); } void Init_native() { VALUE bson = rb_const_get(rb_cObject, rb_intern("BSON"))...
#include <ruby.h> #include <stdint.h> static VALUE rb_integer_to_bson(VALUE self) { /* const int32_t v = NUM2INT(self); */ /* const char bytes[4] = { v & 255, (v >> 8) & 255, (v >> 16) & 255, (v >> 24) & 255 }; */ /* return rb_str_new(bytes, 4); */ } void Init_native() { /* VALUE bson = rb_const_get(rb_cObjec...
Comment out the c for now
Comment out the c for now
C
apache-2.0
johnsimon/bson-ruby,agis-/bson-ruby,hudon/bson-ruby,mongodb/bson-ruby,mongodb/bson-ruby,mongodb/bson-ruby,estolfo/bson-ruby,ukblewis/bson-ruby,agis-/bson-ruby,johnsimon/bson-ruby,hudon/bson-ruby,ukblewis/bson-ruby,estolfo/bson-ruby,agis-/bson-ruby,ukblewis/bson-ruby,mongodb/bson-ruby,estolfo/bson-ruby,ukblewis/bson-rub...
67d05f55509bf9bad5876e0d2dcd0a540543d199
selftest.c
selftest.c
#include <string.h> #include "iobuf/iobuf.h" #include "msg/msg.h" #include "str/str.h" void NL(void) { obuf_putc(&outbuf, LF); } void debugstr(const str* s) { obuf_puts(&outbuf, "len="); obuf_putu(&outbuf, s->len); obuf_puts(&outbuf, " size="); obuf_putu(&outbuf, s->size); if (s->s == 0) obuf_puts(&out...
#include <string.h> #include "iobuf/iobuf.h" #include "msg/msg.h" #include "str/str.h" void NL(void) { obuf_putc(&outbuf, LF); } void debugstr(const str* s) { obuf_puts(&outbuf, "len="); obuf_putu(&outbuf, s->len); obuf_puts(&outbuf, " size="); obuf_putu(&outbuf, s->size); if (s->s == 0) obuf_puts(&out...
Return the result of debugged functions, and flush stderr on exit.
Return the result of debugged functions, and flush stderr on exit.
C
lgpl-2.1
bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs
bd1ce049956272df99ec52598a2234afa32b3055
Paystack/PublicHeaders/PSTCKTransactionParams.h
Paystack/PublicHeaders/PSTCKTransactionParams.h
// // PSTCKTransactionParams.h // Paystack // #import <Foundation/Foundation.h> #import "PSTCKFormEncodable.h" /** * Representation of the transaction to perform on a card */ @interface PSTCKTransactionParams : NSObject<PSTCKFormEncodable> @property (nonatomic, copy, nonnull) NSString *email; @property (nonatomi...
// // PSTCKTransactionParams.h // Paystack // #import <Foundation/Foundation.h> #import "PSTCKFormEncodable.h" /** * Representation of the transaction to perform on a card */ @interface PSTCKTransactionParams : NSObject<PSTCKFormEncodable> @property (nonatomic, copy, nonnull) NSString *email; @property (nonatomi...
Make sure plan and currency are not readonly
[fix] Make sure plan and currency are not readonly
C
mit
PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios,PaystackHQ/paystack-ios
e0540dc80d92c82729dc8b40aeae20d3011dc46e
decl.h
decl.h
#ifndef DECL_H #define DECL_H #include <stdlib.h> typedef enum DeclSpec { DECL_SPEC_NONE = 0x0, DECL_SPEC_FLOAT = 0x1, DECL_SPEC_INT = 0x2, DECL_SPEC_SIGNED = 0x4, DECL_SPEC_UNSIGNED = 0x8, DECL_SPEC_VOID = 0x10, } DeclSpec; typedef size_t DeclSpecs; #endif
#ifndef DECL_H #define DECL_H #include <stdint.h> typedef enum DeclSpec { DECL_SPEC_NONE = 0x0, DECL_SPEC_FLOAT = 0x1, DECL_SPEC_INT = 0x2, DECL_SPEC_SIGNED = 0x4, DECL_SPEC_UNSIGNED = 0x8, DECL_SPEC_VOID = 0x10, } DeclSpec; typedef uint16_t DeclSpecs; #endif
Change type of DeclSpecs to uint16_t
Change type of DeclSpecs to uint16_t Using size_t was a bit overkill.
C
unlicense
InternetUnexplorer/Periapsis-CC
8be89090023f91110dd9cabc7e716a85942abbe0
ext/dlib/missing.h
ext/dlib/missing.h
#ifndef DLIB_MISSING_H #define DLIB_MISSING_H #include <ruby/ruby.h> #if defined(__cplusplus) extern "C" { #if 0 } /* satisfy cc-mode */ #endif #endif #ifndef HAVE_RB_GET_KWARGS int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *values); #endif #if defined(__cplusplus) #if 0...
#ifndef DLIB_MISSING_H #define DLIB_MISSING_H #include <ruby/ruby.h> #if defined(__cplusplus) extern "C" { #if 0 } /* satisfy cc-mode */ #endif #endif int rb_get_kwargs(VALUE keyword_hash, const ID *table, int required, int optional, VALUE *values); #if defined(__cplusplus) #if 0 { /* satisfy cc-mode */ #endif } /...
Remove gard around of the prototype declaration of rb_get_kwargs for Ruby 2.1.x
Remove gard around of the prototype declaration of rb_get_kwargs for Ruby 2.1.x
C
mit
mrkn/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib,ruby-dlib/ruby-dlib,mrkn/ruby-dlib,mrkn/ruby-dlib,ruby-dlib/ruby-dlib
38b86922ff11a6b6ce4c44109e303195230c9483
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 ...
Enable a WebP AID to show its animation one time
Enable a WebP AID to show its animation one time Bug: 145995037 Test: I3d1032b5605c5b6ea64cee0cda91c2ba2a769da8 As described in https://skia-review.googlesource.com/c/skia/+/259161, Skia has modified its interpretation of a WebP file's encoded loop count to match Chromium and the latest WebP intent. This updates to t...
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-...
8ac7ff143a5bd654ce8092586f887a846a268805
include/rtupdate.h
include/rtupdate.h
#ifndef _RTUPDATE_H_ #define _RTUPDATE_H_ 1 #define MAXPUPARR 100 #define MAXPUPS 20 #define NOPUPDATE 78787878 // hopefully never a real p-value! /* For rtperf */ /* DJT: modified to work with JG's objlib.h */ typedef enum { NONE, ATTACK, DECAY, SUSTAIN, RELEASE, END } EnvType; GLOBAL int curtag; ...
#ifndef _RTUPDATE_H_ #define _RTUPDATE_H_ 1 #define MAXPUPARR 100 #define MAXPUPS 20 #define NOPUPDATE 78787878 // hopefully never a real p-value! /* For rtperf */ /* DJT: modified to work with JG's objlib.h */ typedef enum { NONE, RISE, SUSTAIN, DECAY } EnvType; #ifndef GLOBAL #define GLOBAL extern #endif...
Reset EnvType and changed objdefs.h
Reset EnvType and changed objdefs.h
C
apache-2.0
RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix
2ee76a586066f76ded155a910c4065fbbe198032
src/rosecommon/include/components/warpgate.h
src/rosecommon/include/components/warpgate.h
#pragma once #include <cmath> #include <tuple> namespace Component { struct Warpgate { int16_t id; float min_x; float min_y; float min_z; float max_x; float max_y; float max_z; static constexpr float character_size = 2000.f; uint16_t dest_map; static constexpr inline float s...
#pragma once #include <cmath> #include <tuple> namespace Component { struct Warpgate { int16_t id; float min_x; float min_y; float min_z; float max_x; float max_y; float max_z; static constexpr float character_size = 200.f; uint16_t dest_map; static constexpr inline float sq...
Reduce character size to 2 units
Reduce character size to 2 units
C
apache-2.0
RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new,RavenX8/osIROSE-new,dev-osrose/osIROSE-new
38fdeceb8c64ea45498275abaa15956f73712423
src/app/contextBroker/version.h
src/app/contextBroker/version.h
#ifndef SRC_APP_CONTEXTBROKER_VERSION_H_ #define SRC_APP_CONTEXTBROKER_VERSION_H_ /* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero Gen...
#ifndef SRC_APP_CONTEXTBROKER_VERSION_H_ #define SRC_APP_CONTEXTBROKER_VERSION_H_ /* * * Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U * * This file is part of Orion Context Broker. * * Orion Context Broker is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero Gen...
FIX typo: 0.21-nextç -> 0.21.0-next
FIX typo: 0.21-nextç -> 0.21.0-next
C
agpl-3.0
telefonicaid/fiware-orion,fortizc/fiware-orion,yalp/fiware-orion,j1fig/fiware-orion,gavioto/fiware-orion,pacificIT/fiware-orion,McMutton/fiware-orion,fortizc/fiware-orion,Fiware/context.Orion,McMutton/fiware-orion,pacificIT/fiware-orion,fiwareulpgcmirror/fiware-orion,Fiware/data.Orion,pacificIT/fiware-orion,jmcanterafo...
41ee268a0a7641835821d0d53e67e04b1c821f1a
sh4.h
sh4.h
#ifndef __sh4_h__ #define __sh4_h__ enum { SH4_BASE = 0x4000, Rm, Rn, FRm, FRn, i8, i20, Pr15, // [R15++] Dn, // [--Rn] Pn, // [Rn++] dn, // [Rn] dn0, // [Rn+R0] d4n, // [Rn+d4] d12n, // [Rn+d12] Dm, // [--Rm] Pm, // [Rm++] dm, // [Rm] dm0, // [Rm+R0] d4m, // [Rm...
Move SH4 definitions to header file
Move SH4 definitions to header file
C
mit
jharg/tinydis
e886106cb7bb55ac587aa09c2957ae63cef458eb
src/rtpp_debugon.h
src/rtpp_debugon.h
/* * Copyright (c) 2019 Sippy Software, Inc., http://www.sippysoft.com * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright ...
Add centralized header which would include all other debug headers (memdeb, glitching at the moment).
Add centralized header which would include all other debug headers (memdeb, glitching at the moment).
C
bsd-2-clause
sippy/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy,sippy/rtpproxy,dsanders11/rtpproxy
690ee200b01d8d94aadb7d47778ccc1cef92d097
tests/regression/02-base/70-escape-unknown.c
tests/regression/02-base/70-escape-unknown.c
#include <pthread.h> #include <assert.h> int *p; void *t_fun(void *arg) { if (arg != NULL) { *((int*)arg) = 42; } return NULL; } int main() { pthread_t id, id2; int *r; // unknown int i = 5; pthread_create(&id, NULL, t_fun, NULL); // enter multithreaded p = r; p = &i; pthread_create(&id2, ...
Add test where address containing unknown should escape known
Add test where address containing unknown should escape known
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
4eac43e1548ee38d9ff3e1ce348090e4fb6170ed
src/runtime/buf_size.h
src/runtime/buf_size.h
#ifndef HALIDE_BUF_SIZE_H #define HALIDE_BUF_SIZE_H // TODO: in new buffer_t, add an inline method to do this and kill this file. // Compute the total amount of memory we'd need to allocate on gpu to // represent a given buffer (using the same strides as the host // allocation). WEAK size_t buf_size(const buffer_t *b...
Add new file that was forgotten.
Add new file that was forgotten. Former-commit-id: b3d410c04e682cdb096bc1211544b9cf6a7186bf
C
mit
darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide,Trass3r/Halide,Trass3r/Halide,darkbuck/Halide,Trass3r/Halide
941fc625118da6210a2d666d596d7ca318110803
elang/lir/emitters/code_buffer_user.h
elang/lir/emitters/code_buffer_user.h
// Copyright 2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_LIR_EMITTERS_CODE_BUFFER_USER_H_ #define ELANG_LIR_EMITTERS_CODE_BUFFER_USER_H_ #include "base/basictypes.h" namespace elang { namespace lir { c...
// Copyright 2015 Project Vogue. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef ELANG_LIR_EMITTERS_CODE_BUFFER_USER_H_ #define ELANG_LIR_EMITTERS_CODE_BUFFER_USER_H_ #include "base/basictypes.h" namespace elang { namespace lir { c...
Introduce |CodeBufferUser::code_buffer()| to use |CodeBuffer::EmitJump()| for 'br' instruction emitter.
elang/lir/emitters: Introduce |CodeBufferUser::code_buffer()| to use |CodeBuffer::EmitJump()| for 'br' instruction emitter.
C
apache-2.0
eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang,eval1749/elang
0eaaa9f685cb0200d69f9df901828bb0baf959e5
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 *); #endif
#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); #endif
Add List Node destroy function declaration
Add List Node destroy function declaration
C
mit
MaxLikelihood/CADT
94ada1be3db0c968c4948074ee38144d98389e71
test/Frontend/rewrite-includes-bom.c
test/Frontend/rewrite-includes-bom.c
// RUN: %clang -E -frewrite-includes -I %S/Inputs %s -o - | %clang -fsyntax-only -Xclang -verify -x c - // expected-no-diagnostics #include "rewrite-includes-bom.h"
// RUN: grep '^\xEF\xBB\xBF' %S/Inputs/rewrite-includes-bom.h // RUN: %clang_cc1 -E -frewrite-includes -I %S/Inputs %s -o - | %clang_cc1 -fsyntax-only -verify -x c - | not grep '\xEF\xBB\xBF' // expected-no-diagnostics #include "rewrite-includes-bom.h"
Improve BOM test from r195877
Improve BOM test from r195877 1) Use %clang_cc1 instead of the driver 2) Validate that the input contains a BOM 3) Validate that the BOM has been stripped from the output git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@195886 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl...
0c46e1fccad4e19eda5c380eb648324eb7c8a32e
src/common/file_manager_interface.h
src/common/file_manager_interface.h
#ifndef _FILE_MANAGER_INTERFACE_ #define _FILE_MANAGER_INTERFACE_ #include <string> #include <cstdint> class FileManagerInterface { public: virtual bool send( const std::string & host, const unsigned short host_port, std::string & file_path, uint64_t fr...
#ifndef _FILE_MANAGER_INTERFACE_ #define _FILE_MANAGER_INTERFACE_ #include <string> #include <cstdint> class FileManagerInterface { public: virtual uint64_t send( const std::string & host, const unsigned short host_port, std::string & file_path, uint64_...
Add getIds to file manager
Add getIds to file manager
C
mit
Plamenod/P2P
c1dcd68ee1100bf66f10e2461c0b1e98db3a7ba9
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_dtypes.h
lib/node_modules/@stdlib/strided/common/include/stdlib/strided_dtypes.h
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib 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 a...
Enumerate strided array data types
Enumerate strided array data types
C
apache-2.0
stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib,stdlib-js/stdlib
05dd991df57aa4b918260912691cc0a1049044ae
test/suite/bugs/ifpp.c
test/suite/bugs/ifpp.c
int f(int d) { int i = 0, j, k, l; if (d%2==0) if (d%3==0) i+=2; else i+=3; if (d%2==0) { if (d%3==0) i+=7; } else i+=11; l = d; if (d%2==0) while (l--) if (1) i+=13; else ...
Add another test for pretty printing if-then-else
Add another test for pretty printing if-then-else
C
bsd-3-clause
cartazio/language-c,cartazio/language-c,cartazio/language-c
88a88431d2d22fd5f2ba1844670b7b67f58ad92f
templates/c/main.c
templates/c/main.c
#include <display.h> /* Warning! C support in KnightOS is highly experimental. Your milage may vary. */ void main(void) { SCREEN *screen; get_lcd_lock(); screen = screen_allocate(); screen_clear(screen); draw_string(screen, 0, 0, "Hello world!"); screen_draw(screen); while (1); }
#include <display.h> /* Warning! C support in KnightOS is highly experimental. Your mileage may vary. */ void main(void) { SCREEN *screen; get_lcd_lock(); screen = screen_allocate(); screen_clear(screen); draw_string(screen, 0, 0, "Hello world!"); screen_draw(screen); while (1); }
Fix typo in C template
Fix typo in C template Thanks @klange
C
mit
KnightOS/sdk,KnightOS/sdk,KnightOS/sdk
7b421e3feaffdc8a7daaeb4f0da65cf23a7166c5
bst.h
bst.h
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); #endif
#include <stdlib.h> #ifndef __BST_H__ #define __BST_H__ struct BSTNode; struct BST; typedef struct BSTNode BSTNode; typedef struct BST BST; BST* BST_Create(void); BSTNode* BSTNode_Create(void* k); #endif
Add BSTNode Create function declaration
Add BSTNode Create function declaration
C
mit
MaxLikelihood/CADT
a0f7873e71dd708b3193fffe35204f2f32fbde45
program/test/vertigo_v2_config.h
program/test/vertigo_v2_config.h
//Vertigo v2.0 board setting #define USE_FUTABA #define USE_IMU_MPU9250 #define USE_ADS1246_MPX6115A #define STM32F427X
Add a mssissing file at previous commit
Add a mssissing file at previous commit
C
mit
ming6842/firmware-new,fboris/firmware,UrsusPilot/firmware,fboris/firmware,fboris/firmware,UrsusPilot/firmware,ming6842/firmware,ming6842/firmware,ming6842/firmware-new,ming6842/firmware-new,UrsusPilot/firmware,ming6842/firmware
8f91e164d1d23a3b0dc751bc0f9185af27dcb2c7
os/gl/gl_context.h
os/gl/gl_context.h
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { pu...
// LAF OS Library // Copyright (C) 2022 Igara Studio S.A. // Copyright (C) 2015-2016 David Capello // // This file is released under the terms of the MIT license. // Read LICENSE.txt for more information. #ifndef OS_GL_CONTEXT_INCLUDED #define OS_GL_CONTEXT_INCLUDED #pragma once namespace os { class GLContext { pu...
Fix GLContext::createGLContext() impl (must return a value)
Fix GLContext::createGLContext() impl (must return a value)
C
mit
aseprite/laf,aseprite/laf
0303c2c8b394679f28154451d59cfcf153487e71
test/Driver/integrated-as.c
test/Driver/integrated-as.c
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as // CHECK: -mrelax-all // RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS // FIAS: cc1as // RUN: %clang -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -check-prefix NOFI...
// RUN: %clang -### -c -save-temps -integrated-as %s 2>&1 | FileCheck %s // CHECK: cc1as // CHECK: -mrelax-all // RUN: %clang -### -fintegrated-as -c -save-temps %s 2>&1 | FileCheck %s -check-prefix FIAS // FIAS: cc1as // RUN: %clang -target none -### -fno-integrated-as -S %s 2>&1 \ // RUN: | FileCheck %s -chec...
Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true
Use a dummy target so the test passes when default target is for a toolchain implements useIntegratedAs() -> true git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@338553 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl...
aca0e26e885f5996cc27c1bf8524a36da3c68431
bpf/sockops/sockops_config.h
bpf/sockops/sockops_config.h
/* * Copyright (C) 2018 Authors of Cilium * * 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) any later version. * * This progr...
/* * Copyright (C) 2018-2019 Authors of Cilium * * 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) any later version. * * This ...
Fix sockops map name for testing
bpf: Fix sockops map name for testing For testing purposes, this config file should contain the testing name of the map which should be different from the static name used by the Cilium agent. Signed-off-by: Joe Stringer <16a9a54ddf4259952e3c118c763138e83693d7fd@cilium.io>
C
apache-2.0
cilium/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,michi-covalent/cilium,tgraf/cilium,tklauser/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,tklauser/cilium,tklauser/cilium,tklauser/cilium,michi-covalent/cilium,tgraf/cilium,cilium/cilium,michi-covalent/cilium,tgraf/cilium,cilium/cilium,tklauser/ci...
f418b2182b8dbae45906ded6b4aedc07ffb7d90c
ext/glib/glib.c
ext/glib/glib.c
#include <ruby.h> #include <glib.h> static VALUE utf8_size(VALUE self, VALUE string) { VALUE result; Check_Type(string, T_STRING); result = ULONG2NUM(g_utf8_strlen(StringValuePtr(string), RSTRING(string)->len)); return result; } static VALUE utf8_upcase(VALUE self, VALUE string) { VALUE result; gchar *t...
#include <ruby.h> #include <glib.h> static VALUE utf8_size(VALUE self, VALUE string) { VALUE result; Check_Type(string, T_STRING); result = ULONG2NUM(g_utf8_strlen(StringValuePtr(string), RSTRING(string)->len)); return result; } static VALUE utf8_upcase(VALUE self, VALUE string) { VALUE result; gchar *t...
Define the Glib functions as module functions.
Define the Glib functions as module functions.
C
mit
Manfred/unichars,Manfred/unichars
5be7b1cb2ca955b29e43536422ce6f81f5a790bd
Tests/testing_util.h
Tests/testing_util.h
#pragma once #ifndef TESTING_UTIL_H #define TESTING_UTIL_H 1 #include <Python.h> /** Use RAII to Py_XDECREF a pointer. Inspired by std::unique_ptr. */ template <class T> class py_ptr { private: T* m_ptr; public: py_ptr() : m_ptr(nullptr) {} py_ptr(T* ptr) : m_ptr(ptr) {} ~py_ptr() { ...
#pragma once #ifndef TESTING_UTIL_H #define TESTING_UTIL_H 1 #include <Python.h> /** Use RAII to Py_XDECREF a pointer. Inspired by std::unique_ptr. */ template <class T> class py_ptr { private: T* m_ptr; public: py_ptr() : m_ptr(nullptr) {} py_ptr(T* ptr) : m_ptr(ptr) {} py_ptr(const py_ptr...
Add a copy constructor and * overload
Add a copy constructor and * overload
C
mit
Microsoft/Pyjion,Microsoft/Pyjion,DinoV/Pyjion-1,DinoV/Pyjion-1,Microsoft/Pyjion,brettcannon/Pyjion,brettcannon/Pyjion,DinoV/Pyjion-1,Microsoft/Pyjion,DinoV/Pyjion-1,brettcannon/Pyjion
1fd1905d4c7ef06723099f082b6cedfc50171c8d
kilo.c
kilo.c
#include <unistd.h> int main(int argc, char *argv[]) { char c; // Read 1 byte at a time while(read(STDIN_FILENO, &c, 1) == 1); return 0; }
#include <ctype.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <termios.h> struct termios orig_termios; void enableRawMode(); void disableRawMode(); int main(int argc, char *argv[]) { enableRawMode(); // Read 1 byte at a time while(1){ char input = '\0'; // Input from use...
Enable and disable raw mode in terminal
Enable and disable raw mode in terminal
C
bsd-2-clause
justinbarclay/tedit
965b215fcf513150671168750f77f624dc369abe
src/proxy.h
src/proxy.h
// Copyright 2014 Toggl Desktop developers. #ifndef SRC_PROXY_H_ #define SRC_PROXY_H_ #include <string> #include "./types.h" #include "Poco/Types.h" namespace kopsik { class Proxy { public: Proxy() : host(""), port(0), username(""), password("") {} bool IsConfigured() const; bool Has...
// Copyright 2014 Toggl Desktop developers. #ifndef SRC_PROXY_H_ #define SRC_PROXY_H_ #include <string> #include "./types.h" #include "Poco/Types.h" namespace kopsik { class Proxy { public: Proxy() : host(""), port(0), username(""), password("") {} bool IsConfigured() const; bool Has...
Use same int 64 type
Use same int 64 type
C
bsd-3-clause
codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop,codeman38/toggldesktop
229a3770f699e8688d0d6c798920ac5a497ada44
include/llvm/Transforms/Utils/BasicBlockUtils.h
include/llvm/Transforms/Utils/BasicBlockUtils.h
//===-- Transform/Utils/BasicBlockUtils.h - BasicBlock Utilities -*- C++ -*-==// // // This family of functions perform manipulations on basic blocks, and // instructions contained within basic blocks. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_BAS...
//===-- Transform/Utils/BasicBlockUtils.h - BasicBlock Utilities -*- C++ -*-==// // // This family of functions perform manipulations on basic blocks, and // instructions contained within basic blocks. // //===----------------------------------------------------------------------===// #ifndef LLVM_TRANSFORMS_UTILS_BAS...
Implement a new RemoveSuccessor function
Implement a new RemoveSuccessor function git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@3130 91177308-0d34-0410-b5e6-96231b3b80d8
C
bsd-2-clause
chubbymaggie/asap,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,ll...
a634d931d606121d6384798ff90e0d07016e522c
include/sampleflow/filters/component_splitter.h
include/sampleflow/filters/component_splitter.h
// --------------------------------------------------------------------- // // Copyright (C) 2019 by the SampleFlow authors. // // This file is part of the SampleFlow library. // // The deal.II library is free software; you can use it, redistribute // it, and/or modify it under the terms of the GNU Lesser General // Pu...
Add a component splitter filter.
Add a component splitter filter.
C
lgpl-2.1
bangerth/mcmc
a9107c562553ccc7310be3774674cbbd77086201
core/include/cudnn_utility.h
core/include/cudnn_utility.h
// The MIT License (MIT) // // Copyright (c) 2016 Northeastern University // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights ...
Add one empty header file
Add one empty header file
C
mit
doody1986/DNNMark,doody1986/DNNMark,doody1986/DNNMark,doody1986/DNNMark
f2adc842293ce4fe889309e16da706f321ff713d
bindings/perl/Champlain/champlain-perl.h
bindings/perl/Champlain/champlain-perl.h
#ifndef _CHAMPLAIN_PERL_H_ #include <clutter-perl.h> #include <champlain/champlain.h> #ifdef CHAMPLAINPERL_GTK #include <champlain-gtk/champlain-gtk.h> #endif #include "champlain-autogen.h" #endif /* _CHAMPLAIN_PERL_H_ */
#ifndef _CHAMPLAIN_PERL_H_ #include <clutter-perl.h> #include <champlain/champlain.h> #ifdef CHAMPLAINPERL_GTK #include <gtk2perl.h> #include <champlain-gtk/champlain-gtk.h> #endif #include "champlain-autogen.h" #endif /* _CHAMPLAIN_PERL_H_ */
Revert "Don't include gtk2perl because it redeclares the Pango types"
Revert "Don't include gtk2perl because it redeclares the Pango types" This reverts commit 421074211a234119276a6fdbb76d13d9f5bec9a4.
C
lgpl-2.1
GNOME/perl-Gtk2-Champlain,PabloCastellano/libchamplain,potyl/champlain,PabloCastellano/libchamplain,PabloCastellano/libchamplain,PabloCastellano/libchamplain,PabloCastellano/libchamplain,GNOME/libchamplain,StanciuMarius/Libchamplain-map-wrapping,StanciuMarius/Libchamplain-map-wrapping,StanciuMarius/Libchamplain-map-wra...
d32cc52fc99f4e4aafc893e13e0b801f0586cadb
chrome/browser/ui/panels/panel_browser_window_gtk.h
chrome/browser/ui/panels/panel_browser_window_gtk.h
// Copyright (c) 2011 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 CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
// Copyright (c) 2011 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 CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_ #include "chrome/browser/ui...
Use scoped_ptr for Panel in PanelBrowserWindowGTK.
Use scoped_ptr for Panel in PanelBrowserWindowGTK. BUG=None TEST=Verified WindowOpenPanel test now hits Panel destructor. Review URL: http://codereview.chromium.org/7120011 git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@88154 0039d316-1c4b-4281-b951-d872f2087c98
C
bsd-3-clause
adobe/chromium,adobe/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,ropik/chromium,...
3e4aba119168140015b87dfabccd45b4275dcbd8
test/lib/c/01-con-discon-success.c
test/lib/c/01-con-discon-success.c
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <mosquitto.h> static int run = -1; void on_connect(struct mosquitto *mosq, void *obj, int rc) { if(rc){ exit(1); }else{ mosquitto_disconnect(mosq); } } void on_disconnect(struct mosquitto *mosq, void *obj, int rc) { run = rc; } int main(in...
#include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <mosquitto.h> static int run = -1; void on_connect(struct mosquitto *mosq, void *obj, int rc) { if(rc){ exit(1); }else{ mosquitto_disconnect(mosq); } } void on_disconnect(struct mosquitto *mosq, void *obj, int rc) { run = rc; } int main(in...
Call lib init/cleanup in C client test.
Call lib init/cleanup in C client test.
C
bsd-3-clause
zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto
423355ecbff46ef0dddc5e7a48ae10af2a2d1bea
src/main/c/emulator/src/config.h
src/main/c/emulator/src/config.h
#ifndef CONFIG_H #define CONFIG_H //#define QEMU #define SIM #define OS_CALL 0xC0000000 #define DTB 0xC3000000 #endif
#ifndef CONFIG_H #define CONFIG_H //#define QEMU #define SIM #ifndef OS_CALL #define OS_CALL 0xC0000000 #endif #ifndef DTB #define DTB 0xC3000000 #endif #endif
Allow to set custom DTB/OS_CALL addresses
Allow to set custom DTB/OS_CALL addresses Setting those from command line during compilation allows to create a custom setup without the need of modifying the sources.
C
mit
SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv,SpinalHDL/VexRiscv
ba7874bd648cf81182d4c36331525fc72944743a
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 #include <android/log.h> #define GR_TEST_UTILS 1 #define SK_BUILD_FOR_ANDROID_FRAMEWORK #define S...
Print the message from SK_ABORT in stack traces
Print the message from SK_ABORT in stack traces This will make debugging easier. Instead of using LOG_ALWAYS_FATAL, use __android_log_assert (which the former uses internally) directly, since SkQP can only access NDK APIs. Depends on https://skia-review.googlesource.com/c/skia/+/521001. Bug: 224771432 Test: manual C...
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-...
a451476a98df41bf57a658d7d532e10c25158ea9
Reducers/REDIterable.h
Reducers/REDIterable.h
// Copyright (c) 2014 Rob Rix. All rights reserved. #import <Foundation/Foundation.h> @protocol REDIterable <NSObject> @property (readonly) id(^red_iterator)(void); @end
// Copyright (c) 2014 Rob Rix. All rights reserved. #import <Foundation/Foundation.h> /// A nullary block iterating the elements of a collection over successive calls. /// /// \return The next object in the collection, or nil if it has iterated the entire collection. typedef id (^REDIteratingBlock)(void); /// A col...
Add a typedef for iterators.
Add a typedef for iterators.
C
mit
policp/Reducers,robrix/Reducers
41acb0a75b1ed5b4cf2feb74c64113a06a284e85
React/Fabric/RCTFabricPlatformUIOperationManager.h
React/Fabric/RCTFabricPlatformUIOperationManager.h
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <memory> #include <fabric/IFabricPlatformUIOperationManager.h> @cla...
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #import <memory> #include <fabric/IFabricPlatformUIOperationManager.h> @cla...
Fix clang-6 compile error (virtual destructor)
Fix clang-6 compile error (virtual destructor) Reviewed By: smeenai Differential Revision: D7264312 fbshipit-source-id: f0567452127ceba6cfa13d05bb2a00a5af7aac05
C
mit
myntra/react-native,javache/react-native,hoangpham95/react-native,facebook/react-native,facebook/react-native,exponentjs/react-native,javache/react-native,facebook/react-native,janicduplessis/react-native,javache/react-native,exponent/react-native,myntra/react-native,hoangpham95/react-native,hammerandchisel/react-nativ...
6a989a7bb29ee5a16b6b059b61581cdc9458f765
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\tSet delay between sta...
Use tab characters in help text.
Use tab characters in help text.
C
mit
jefbed/xstatus,jefbed/xstatus,jefbed/xstatus,jefbed/xstatus
241540eb1c46593a93870e20efe6a694444b5f47
test/Sema/overloadable-complex.c
test/Sema/overloadable-complex.c
// RUN: clang -fsyntax-only -verify %s char *foo(float) __attribute__((__overloadable__)); // expected-note 3 {{candidate function}} void test_foo_1(float fv, double dv, float _Complex fc, double _Complex dc) { char *cp1 = foo(fv); char *cp2 = foo(dv); // Note: GCC and EDG reject these two, but they are valid C9...
Add test for overloading with _Complex in C
Add test for overloading with _Complex in C git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@64347 91177308-0d34-0410-b5e6-96231b3b80d8
C
apache-2.0
llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl...
d8f546320062c3c8848c1d50bf6a7e8ab3a673b0
ffi-cdecl/mxcfb_kobo_decl.c
ffi-cdecl/mxcfb_kobo_decl.c
// standard Linux framebuffer headers #include <linux/fb.h> #include <linux/ioctl.h> // specialized eink framebuffer headers typedef unsigned int uint; #include "include/mxcfb-kobo.h" #include "cdecl.h" cdecl_struct(mxcfb_rect) cdecl_struct(mxcfb_alt_buffer_data) cdecl_struct(mxcfb_update_data) cdecl_const(MXCFB_SE...
// standard Linux framebuffer headers #include <linux/fb.h> #include <linux/ioctl.h> // specialized eink framebuffer headers typedef unsigned int uint; #include "include/mxcfb-kobo.h" #include "cdecl.h" cdecl_struct(mxcfb_rect) cdecl_struct(mxcfb_alt_buffer_data) cdecl_struct(mxcfb_update_data) cdecl_const(MXCFB_SE...
Tweak the kobo mxcfb cdecl
Tweak the kobo mxcfb cdecl
C
agpl-3.0
frankyifei/koreader-base,apletnev/koreader-base,NiLuJe/koreader-base,Hzj-jie/koreader-base,houqp/koreader-base,houqp/koreader-base,Hzj-jie/koreader-base,NiLuJe/koreader-base,NiLuJe/koreader-base,frankyifei/koreader-base,Hzj-jie/koreader-base,Hzj-jie/koreader-base,Frenzie/koreader-base,apletnev/koreader-base,koreader/ko...
429d7cdce99df7b26eb6f15b819be98074f48695
main.c
main.c
#include "js.h" int main(int argc, char **argv) { js_State *J; int i; J = js_newstate(); for (i = 1; i < argc; i++) { js_loadfile(J, argv[1]); // js_run(J); } js_close(J); return 0; }
#include "js.h" int main(int argc, char **argv) { js_State *J; int i; J = js_newstate(); for (i = 1; i < argc; i++) { js_loadfile(J, argv[i]); // js_run(J); } js_close(J); return 0; }
Fix typo so all arguments are loaded.
Fix typo so all arguments are loaded.
C
isc
BOGY/mujs,lsm/mujs,earthling42/mujs,ccxvii/mujs,ccxvii/mujs,guiquanz/mujs,Frky/mujs,ccxvii/mujs,ccxvii/mujs,thurday/mujs,evanlabs/mujs
b22f977bc4b4a8186bf236147b10982ccbbd2ad8
LinkList_reverse_recursive.c
LinkList_reverse_recursive.c
#include <stdio.h> #include <stdlib.h> /* Linked List Implementation in C */ // This program aims at "Revering the Link List" typedef struct node{ int data; struct node *link; } node; node* head; //global variable void insert_append(int x){ node* temp; temp = (node*)malloc(sizeof(node)); temp->data = x; temp->li...
Add LinkList reverese using recursion and print using recursion
Add LinkList reverese using recursion and print using recursion
C
mit
anaghajoshi/C_DataStructures_Algorithms
403d61d1448eb8ee6a2ddc81865d9ebaf1ef73df
numpy/core/src/private/npy_import.h
numpy/core/src/private/npy_import.h
#ifndef NPY_IMPORT_H #define NPY_IMPORT_H #include <Python.h> #include <assert.h> /*! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NULL imports the Python function specified by * \a module and \a function, increments ...
Add inline C function to import and cache Python functions.
ENH: Add inline C function to import and cache Python functions. A new inline function 'npy_cache_pyfunc' is provided for the common operation of inporting and caching a Python function in static variables. The intended usage is as follows. int myfunc() { static PyObject *cache = NULL: npy_cache_pyfunc("the....
C
bsd-3-clause
behzadnouri/numpy,BMJHayward/numpy,jonathanunderwood/numpy,bmorris3/numpy,tacaswell/numpy,behzadnouri/numpy,dwillmer/numpy,numpy/numpy,abalkin/numpy,gmcastil/numpy,mingwpy/numpy,pdebuyl/numpy,ahaldane/numpy,nbeaver/numpy,Linkid/numpy,WarrenWeckesser/numpy,BabeNovelty/numpy,mattip/numpy,bertrand-l/numpy,drasmuss/numpy,e...
6db7f401f8f04398f711bd042394504174547d19
tests/regression/02-base/74-pcwd-deref-unknown-fp.c
tests/regression/02-base/74-pcwd-deref-unknown-fp.c
// PARAM: --disable sem.unknown_function.invalidate.globals --disable sem.unknown_function.spawn // extracted from ddverify pcwd // header declarations struct file_operations { void (*ioctl)(); }; struct miscdevice { struct file_operations *fops; }; struct cdev { struct file_operations *ops; }; // implementa...
Add unsound dereferencing of unknown function pointer from ddverify pcwd
Add unsound dereferencing of unknown function pointer from ddverify pcwd
C
mit
goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer
0db1fc1c5d71d4952975293647f087c22a265628
ghighlighter/main.c
ghighlighter/main.c
#include <gtk/gtk.h> #include "main-window.h" int main (int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = main_window_create(); gtk_widget_show(window); gtk_main(); return 0; }
#include <gtk/gtk.h> #include "main-window.h" int main (int argc, char *argv[]) { GtkWidget *window; gtk_init(&argc, &argv); window = main_window_create(); gtk_widget_show_all(window); gtk_main(); return 0; }
Use gtk_widget_show_all instead of just show
Use gtk_widget_show_all instead of just show
C
mit
chdorner/ghighlighter-c
e8fb39c9a7aaa172a528142fb5b24aa03e224083
inc/ArgParse/ArgParse.h
inc/ArgParse/ArgParse.h
/* ArgParser - C++ Argument Parser reflecting the python module ArgParse. Copyright (C) 2014-2015 Matthew Scott Krafczyk 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 Licen...
/* ArgParser - C++ Argument Parser reflecting the python module ArgParse. Copyright (C) 2014-2015 Matthew Scott Krafczyk 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 Licen...
Change an old Option.h to Argument.h
Change an old Option.h to Argument.h
C
mit
krafczyk/ArgParse,krafczyk/ArgParse
de630eb49412f0ef25cb5a010efd6922a5c4d28b
common.h
common.h
#ifndef MLCD_COMMON_H #define MLCD_COMMON_H #define BYTE_TO_ASCII(byte) \ (byte & 0x80 ? '#' : ' '), \ (byte & 0x40 ? '#' : ' '), \ (byte & 0x20 ? '#' : ' '), \ (byte & 0x10 ? '#' : ' '), \ (byte & 0x08 ? '#' : ' '), \ (byte & 0x04 ? '#' : ' '), \ (byte & 0x02 ? '#' : ' '), \ (byte & 0x01 ? '#' : ' ') #defin...
#ifndef MLCD_COMMON_H #define MLCD_COMMON_H #define BYTE_TO_ASCII(byte) \ (byte & 0x80 ? '1' : '0'), \ (byte & 0x40 ? '1' : '0'), \ (byte & 0x20 ? '1' : '0'), \ (byte & 0x10 ? '1' : '0'), \ (byte & 0x08 ? '1' : '0'), \ (byte & 0x04 ? '1' : '0'), \ (byte & 0x02 ? '1' : '0'), \ (byte & 0x01 ? '1' : '0') #defin...
Fix asm generation with mlcd -a
Fix asm generation with mlcd -a
C
bsd-2-clause
travispaul/mlcd
45d03888d28f1126c051ec5a870dcb9829ad8d27
ObjCBridge.h
ObjCBridge.h
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import "Konashi.h" #import "Colorkit.h" #import <EstimoteSDK/EstimoteSDK.h> #import "ActionSheetPicker.h"
// // Use this file to import your target's public headers that you would like to expose to Swift. // #import <Konashi.h> #import <Colorkit.h> #import <EstimoteSDK/EstimoteSDK.h> #import <ActionSheetPicker.h>
Use <> instead of ""
Use <> instead of "" ""は、自作クラスの時に使用するらしい
C
mit
karappo/PlayTheWheels,karappo/PlayTheWheels
8fd0d0b7089303d141b08913bcf6a1f92469f754
include/effects/SkStippleMaskFilter.h
include/effects/SkStippleMaskFilter.h
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ cla...
/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkStippleMaskFilter_DEFINED #define SkStippleMaskFilter_DEFINED #include "SkMaskFilter.h" /** * Simple MaskFilter that creates a screen door stipple pattern */ cla...
Fix for compiler error in r4154
Fix for compiler error in r4154 git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
C
bsd-3-clause
Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,Frankie-666/color-emoji.skia,hbwhlklive/color-emoji.skia,Hankuo/color-emoji.skia,Hankuo/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Hankuo/color-emoji.skia,Franki...
c0346b75f26d982b0d8bf5c062b7a728025100a8
include/truth/cpu.h
include/truth/cpu.h
#pragma once #include <truth/types.h> // The state of the CPU before an interrupt occurs. struct cpu_state; // Interrupt Service Routine function signature. // ISRs with this signature are installed to a dispatch table. typedef void (isr_f)(struct cpu_state *); /* Install an interrupt handler. * The handler will h...
#pragma once #include <truth/types.h> // Halt CPU. extern void halt(void); // Gets the CPU time step counter value. extern uint64_t cpu_time(void); // Puts CPU into sleep state until awoken by interrupt. void cpu_sleep_state(void);
Remove stuff moved to interrupts header
Remove stuff moved to interrupts header
C
mit
iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth
53b42b54aa7cac4b9b5dc47bb86308f5bec07a0b
lab5.c
lab5.c
/* lab5.c: Employee records */ #include <stdio.h> #include <string.h> struct Employee { char last[16]; char first[11]; char title[16]; int salary; }; int main() { struct Employee employees[BUFSIZ]; for (int i = 0; i < BUFSIZ; i++) { printf("Enter the last name: "); fflush(stdou...
Store employee information in an array of structs
Store employee information in an array of structs
C
mit
sookoor/Learn-C-the-Hard-Way,sookoor/Learn-C-the-Hard-Way,sookoor/Learn-C-the-Hard-Way
94cdb6e58f3407127089a412824180475bceb4e7
src/distributed.c
src/distributed.c
#include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "distributed.h" #include "stddefines.h" void shm_init() { int fd; /* Map the shmem region */ fd = open(SHM_DEV, O_RDWR); CHECK_ERROR(fd < 0); shm_base = mmap(...
#include <fcntl.h> #include <stdio.h> #include <string.h> #include <sys/mman.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #include "distributed.h" #include "stddefines.h" void shm_init() { int fd; /* Map the shmem region */ fd = open(SHM_DEV, O_RDWR); CHECK_ERROR(fd < 0); shm_base = mmap(...
Check that the mmap goes in the right place.
Check that the mmap goes in the right place.
C
bsd-3-clause
adamwg/elastic-phoenix,adamwg/elastic-phoenix,adamwg/elastic-phoenix
cc5d35670b3192f6f6741f569016c1167549fc9a
ring_distance.c
ring_distance.c
/* Author: Matjaž <dev@matjaz.it> matjaz.it * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include <stdio.h> /* Allows usage of printf() */ #include <stdb...
Add ring oriented distance calculator
Add ring oriented distance calculator
C
unknown
MatjazDev/Utilz,TheMatjaz/Utilz,MatjazDev/Utilz,TheMatjaz/Utilz
3e34f2f419583aa78b515b3027fb204b89202c92
include/8cc.h
include/8cc.h
#define _LP64 1 #define __8cc__ 1 #define __ELF__ 1 #define __LP64__ 1 #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG_DOUBLE__ 8 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SH...
#define _LP64 1 #define __8cc__ 1 #define __ELF__ 1 #define __LP64__ 1 #define __SIZEOF_DOUBLE__ 8 #define __SIZEOF_FLOAT__ 4 #define __SIZEOF_INT__ 4 #define __SIZEOF_LONG_DOUBLE__ 8 #define __SIZEOF_LONG_LONG__ 8 #define __SIZEOF_LONG__ 8 #define __SIZEOF_POINTER__ 8 #define __SIZEOF_PTRDIFF_T__ 8 #define __SIZEOF_SH...
Define __restrict__ and __restrict as synonyms for restrict.
Define __restrict__ and __restrict as synonyms for restrict. C99/C11 defines only restrict, but popular compilers including GCC define these synonyms (so that you can use __restrict in C++, in which restrict keyword is not a part of the language standard).
C
mit
andrewchambers/8cc,andrewchambers/8cc,vastin/8cc,nobody1986/8cc,jtramm/8cc,8l/8cc,cpjreynolds/8cc,rui314/8cc,vastin/8cc,cpjreynolds/8cc,rui314/8cc,gergo-/8cc,rui314/8cc,rui314/8cc,nobody1986/8cc,jtramm/8cc,8l/8cc,andrewchambers/8cc,vastin/8cc,abc00/8cc,8l/8cc,gergo-/8cc,gergo-/8cc,jtramm/8cc,abc00/8cc,abc00/8cc,jtramm/...
0ed96ecba988c837a0e9d51085809ca6a9cf0a3b
src/lily_pkg_core.c
src/lily_pkg_core.c
/** library core Psuedo root of all pre-registered modules. This is a fake module created to link together all of the modules that are automatically loaded in the interpreter. Except for the `builtin` module, all modules listed here can be imported from any file inside of the interpreter. This is unlike other module...
Add 'core' pseudo package for docgen to target.
Add 'core' pseudo package for docgen to target.
C
mit
jesserayadkins/lily,jesserayadkins/lily,jesserayadkins/lily,FascinatedBox/lily,FascinatedBox/lily,FascinatedBox/lily,FascinatedBox/lily
bc62ff6ea6705bc68e2993fd2ee06c1f4ecf2c93
Plugins/Drift/Source/RapidJson/Public/JsonUtils.h
Plugins/Drift/Source/RapidJson/Public/JsonUtils.h
// Copyright 2015-2017 Directive Games Limited - All Rights Reserved #pragma once #include "JsonArchive.h" #include "IHttpRequest.h" #include "Core.h" #include "Interfaces/IHttpRequest.h" RAPIDJSON_API DECLARE_LOG_CATEGORY_EXTERN(JsonUtilsLog, Log, All); class RAPIDJSON_API JsonUtils { public: template<class ...
// Copyright 2015-2017 Directive Games Limited - All Rights Reserved #pragma once #include "JsonArchive.h" #include "IHttpRequest.h" #include "Core.h" #include "Interfaces/IHttpRequest.h" #include "Interfaces/IHttpResponse.h" RAPIDJSON_API DECLARE_LOG_CATEGORY_EXTERN(JsonUtilsLog, Log, All); class RAPIDJSON_API ...
Fix another Linux build error
Fix another Linux build error - Was missing #include statements
C
mit
dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin,dgnorth/DriftUe4Plugin
bcccfa6cd2b6e4335b479bdfc137567fd5585f37
OctoKit/OCTClient+Activity.h
OctoKit/OCTClient+Activity.h
// // OCTClient+Activity.h // OctoKit // // Created by Piet Brauer on 14.02.14. // Copyright (c) 2014 GitHub. All rights reserved. // #import "OCTClient.h" @class RACSignal; @class OCTRepository; @interface OCTClient (Activity) // Check if the user starred the `repository`. // // repository - The repository used...
// // OCTClient+Activity.h // OctoKit // // Created by Piet Brauer on 14.02.14. // Copyright (c) 2014 GitHub. All rights reserved. // #import "OCTClient.h" @class RACSignal; @class OCTRepository; @interface OCTClient (Activity) // Check if the user starred the `repository`. // // repository - The repository used...
Change documentation to fit return of NSNumber
Change documentation to fit return of NSNumber
C
mit
CHNLiPeng/octokit.objc,jonesgithub/octokit.objc,cnbin/octokit.objc,leichunfeng/octokit.objc,jonesgithub/octokit.objc,cnbin/octokit.objc,CleanShavenApps/octokit.objc,Acidburn0zzz/octokit.objc,wrcj12138aaa/octokit.objc,Palleas/octokit.objc,daemonchen/octokit.objc,CHNLiPeng/octokit.objc,GroundControl-Solutions/octokit.obj...
b43db0113a50f2999a6e93eaf8dbc1e6b89a60ff
Pod/Classes/BCBalancedMultilineLabel.h
Pod/Classes/BCBalancedMultilineLabel.h
#import <UIKit/UIKit.h> @interface BCBalancedMultilineLabel : UILabel @end
#import <UIKit/UIKit.h> /** * A simple label subclass that draws itself such that each of its * lines have as close to the same length as possible. It can be * used anywhere that you could use an ordinary `UILabel` by simply * changing the instantiated class. */ @interface BCBalancedMultilineLabel : UILabel @end...
Add Appledoc to the header
Add Appledoc to the header
C
mit
briancroom/BCBalancedMultilineLabel
4d4804f71ce6dbfe3ad2e9a5110d516732c0ba90
src/glcontext_nsgl.h
src/glcontext_nsgl.h
/* * Copyright 2011-2016 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #ifndef BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #define BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #if BX_PLATFORM_OSX namespace bgfx { namespace gl { struct SwapChainGL; struct GlContext {...
/* * Copyright 2011-2016 Branimir Karadzic. All rights reserved. * License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause */ #ifndef BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #define BGFX_GLCONTEXT_NSGL_H_HEADER_GUARD #if BX_PLATFORM_OSX namespace bgfx { namespace gl { struct SwapChainGL; struct GlContext {...
Set m_view to 0 in GlContext ctor
Set m_view to 0 in GlContext ctor
C
bsd-2-clause
jpcy/bgfx,andr3wmac/bgfx,mendsley/bgfx,mmicko/bgfx,jdryg/bgfx,LWJGL-CI/bgfx,jdryg/bgfx,attilaz/bgfx,emoon/bgfx,Synxis/bgfx,elmindreda/bgfx,LWJGL-CI/bgfx,andr3wmac/bgfx,Synxis/bgfx,aonorin/bgfx,kondrak/bgfx,emoon/bgfx,septag/bgfx,bkaradzic/bgfx,v3n/bgfx,jpcy/bgfx,fluffyfreak/bgfx,andr3wmac/bgfx,LWJGL-CI/bgfx,MikePopolos...
d85029a098a5ce56fd948e5f1811fe8f9ad8abcb
test/ut_logassert.c
test/ut_logassert.c
#define UTL_MAIN #include "utl.h" int main(int argc, char *argv[]) { logopen("t_logassert.log","w"); logassert(5>10); logassert(utl_ret(0)); logcheck(3/utl_ret(0) == 0); logclose(); }
Check that logassert() fails properly
Check that logassert() fails properly
C
mit
rdentato/clibutl,rdentato/clibutl,rdentato/clibutl
b3ccbaf655e28b48384a8955398d248384558b45
lottie-ios/Classes/PublicHeaders/Lottie.h
lottie-ios/Classes/PublicHeaders/Lottie.h
// // Lottie.h // Pods // // Created by brandon_withrow on 1/27/17. // // @import Foundation; #ifndef Lottie_h #define Lottie_h //! Project version number for Lottie. FOUNDATION_EXPORT double LottieVersionNumber; //! Project version string for Lottie. FOUNDATION_EXPORT const unsigned char LottieVersionString[]; #...
// // Lottie.h // Pods // // Created by brandon_withrow on 1/27/17. // // #if __has_feature(modules) @import Foundation; #else #import <Foundation/Foundation.h> #endif #ifndef Lottie_h #define Lottie_h //! Project version number for Lottie. FOUNDATION_EXPORT double LottieVersionNumber; //! Project version string...
Fix @import compatibility with .mm files
Fix @import compatibility with .mm files
C
apache-2.0
airbnb/lottie-ios,airbnb/lottie-ios,airbnb/lottie-ios
e08359cf14f005a532f37470aed8be8aea03ac43
tests/test-progs/test/arm/randmem1.c
tests/test-progs/test/arm/randmem1.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <ctype.h> void nop( int delay ){ int tmp,i; for( i=0; i<delay; i++ ) tmp = i + tmp; } int main(int argc, char **argv) { int SEED = 2; int MEM_SIZE = 1024 * 1024; // *32 bits (number of ints) int DURATION = 6 * 1000 * 1000;...
Add a benchmark for higher memory intensity
Add a benchmark for higher memory intensity
C
bsd-3-clause
aferr/TemporalPartitioningMemCtl,xiaoyaozi5566/DynamicCache,aferr/TemporalPartitioningMemCtl,xiaoyaozi5566/GEM5_DRAMSim2,xiaoyaozi5566/DynamicCache,xiaoyaozi5566/DiamondCache,aferr/TimingCompartments,xiaoyaozi5566/DiamondCache,aferr/LatticeMemCtl,aferr/TemporalPartitioningMemCtl,aferr/TemporalPartitioningMemCtl,xiaoyao...
621ada7f40cd797549e88c474311ff9ebc288c5e
examples/example1.c
examples/example1.c
#include "../failing_allocs.h" #include <assert.h> #include <stdlib.h> USE_FAILING_ALLOCS typedef struct{ int* some_ints; size_t count; } Container; Container* Container_create(size_t count) { Container* new_container = calloc(1, sizeof(Container)); if(!new_container) goto error; new_container->some_ints...
Add an example of code that uses failing_allocs.
Add an example of code that uses failing_allocs.
C
mit
mckinsel/failing_allocs,mckinsel/failing_allocs
9bfa112e81a0dc6dfec4697c3f5e4014a60073bf
applications/plugins/SofaPython/PythonCommon.h
applications/plugins/SofaPython/PythonCommon.h
#ifndef SOFAPYTHON_PYTHON_H #define SOFAPYTHON_PYTHON_H // This header simply includes Python.h, taking care of platform-specific stuff // It should be included before any standard headers: // "Since Python may define some pre-processor definitions which affect the // standard headers on some systems, you must inclu...
#ifndef SOFAPYTHON_PYTHON_H #define SOFAPYTHON_PYTHON_H // This header simply includes Python.h, taking care of platform-specific stuff // It should be included before any standard headers: // "Since Python may define some pre-processor definitions which affect the // standard headers on some systems, you must inclu...
Disable auto linking on windows so that CMake settings are not overriden.
Disable auto linking on windows so that CMake settings are not overriden. Former-commit-id: 3e43e87772ab712bab8778502c22411288f0eb31
C
lgpl-2.1
hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,hdeling/sofa,FabienPean/sofa,hdeling/sofa,hdeling/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,FabienPean/sofa,Anatoscope/sofa,hdeling/sofa,hdeling/sofa,hdeling/sofa,Anato...
4aaa5c8f5777910ace7d4c65908d42f16f446c30
ProvisionQL/Shared.h
ProvisionQL/Shared.h
#include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> #include <QuickLook/QuickLook.h> #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <Security/Security.h> #import <NSBezierPath+IOS7RoundedRect.h> static NSString * const kPluginBundleId = @"com.FerretSyndicate.Provision...
#include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> #include <QuickLook/QuickLook.h> #import <Foundation/Foundation.h> #import <Cocoa/Cocoa.h> #import <Security/Security.h> #import <NSBezierPath+IOS7RoundedRect.h> static NSString * const kPluginBundleId = @"com.ealeksandrov.ProvisionQL"...
Set bundle identifier constant to be identical to Info.plist
Set bundle identifier constant to be identical to Info.plist
C
mit
ealeksandrov/ProvisionQL,ealeksandrov/ProvisionQL,ealeksandrov/ProvisionQL
a5eb8bfdc1affa6d2330484800808c4d34f23103
ui/expandablegroup.h
ui/expandablegroup.h
#pragma once #include "uitypes.h" #include <QtWidgets/QToolButton> #include <QtCore/QParallelAnimationGroup> #include <QtWidgets/QScrollArea> #include <QtCore/QPropertyAnimation> class BINARYNINJAUIAPI ExpandableGroup : public QWidget { Q_OBJECT private: QToolButton* m_button; QParallelAnimationGroup* m_animati...
#pragma once #include "uitypes.h" #include <QtWidgets/QLabel> #include <QtWidgets/QToolButton> #include <QtCore/QParallelAnimationGroup> #include <QtWidgets/QScrollArea> #include <QtCore/QPropertyAnimation> class BINARYNINJAUIAPI ExpandableGroup : public QWidget { Q_OBJECT private: QToolButton* m_button; QLabel...
Fix UI arrow artifact in Cross References and Search widgets.
Fix UI arrow artifact in Cross References and Search widgets.
C
mit
Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api,Vector35/binaryninja-api
d12700eb6db3cef72602f80f7f6225d43c58f6b5
include/sdl_image.h
include/sdl_image.h
/* The MIT License (MIT) Copyright (c) 2016 tagener-noisu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
Add wrapper for SDL2_image lib
Add wrapper for SDL2_image lib
C
mit
tagener-noisu/cxx_sdl
60b33a957f46e635909e45b24d5de0c242994bef
pebble/src/common.c
pebble/src/common.c
/*** * Multi Timer * Copyright © 2013 Matthew Tole * * common.c ***/ #include <pebble.h> #include "libs/xprintf.h" void uppercase(char* str) { char* point = str; while (*point != '\0') { if (*point >= 97 && *point <= 122) { *point -= 32; } point += 1; } } int patoi(char* str) { long nu...
/*** * Multi Timer * Copyright © 2013 Matthew Tole * * common.c ***/ #include <pebble.h> #include "libs/xprintf.h" void uppercase(char* str) { char* point = str; while (*point != '\0') { if (*point >= 97 && *point <= 122) { *point -= 32; } point += 1; } } int patoi(char* str) { long nu...
Fix bug in rendering of timer duration.
Fix bug in rendering of timer duration.
C
mit
ThiagoVinicius/multi-timer,sdoo12/multi-timer,sdoo12/multi-timer,ThiagoVinicius/multi-timer,smallstoneapps/multi-timer,ThiagoVinicius/multi-timer,ThiagoVinicius/multi-timer,smallstoneapps/multi-timer,smallstoneapps/multi-timer,sdoo12/multi-timer,smallstoneapps/multi-timer,smallstoneapps/multi-timer,ThiagoVinicius/multi...