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 |
|---|---|---|---|---|---|---|---|---|---|
7a276551f8349db28f32c36a68ab96c46c90517c | storage/src/vespa/storage/common/bucket_utils.h | storage/src/vespa/storage/common/bucket_utils.h | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketid.h>
#include <vespa/persistence/spi/bucket_limits.h>
#include <cassert>
namespace storage {
/**
* Returns the super bucket key of the given bucket id... | // Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/document/bucket/bucketid.h>
#include <vespa/persistence/spi/bucket_limits.h>
#include <cassert>
namespace storage {
/**
* Returns the super bucket key of the given bucket id... | Make function inline and noexcept. | Make function inline and noexcept.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
62e0107e65fbdb86a13d1db04aca85a08caf3bd1 | keyphrase.c | keyphrase.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "constants.h"
#include "funcs.h"
int main(int argc, char **argv) {
if (argc != 2) {
return printf("usage: %s [hex key] [key phrase]\n", argv[0]);
}
char *wordlist[NUMWORDS];
FILE *fp = fopen(WORDFILE, "r");
if (!fp) {
... | Implement the actual utility. Only does key to phrase conversion at the moment. | Implement the actual utility. Only does key to phrase conversion at the moment.
| C | agpl-3.0 | ryepdx/keyphrase,ryepdx/keyphrase | |
313196ef0ded860cceb381d139857f77132ad17e | sw/device/lib/runtime/check.h | sw/device/lib/runtime/check.h | // Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0`
#ifndef OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#define OPENTITAN_SW_DEVICE_LIB_RUNTIME_CHECK_H_
#include <stdbool.h>
#include "sw/device/lib/base/log.h"
#include "s... | Add a library to provide CHECK and friends. | [sw] Add a library to provide CHECK and friends.
Signed-off-by: Miguel Young de la Sota <71b8e7f4945fd97b98544cf897992af89646547a@google.com>
| C | apache-2.0 | lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan,lowRISC/opentitan | |
9bdcb393aedcd718b49926663bbcd22229af7090 | test/CFrontend/2007-11-27-SExtZExt.c | test/CFrontend/2007-11-27-SExtZExt.c | // RUN: %llvmgcc -S %s -emit-llvm -o - | grep "signext" | count 4
signed char foo1() { return 1; }
void foo2(signed short a) { }
signed char foo3(void) { return 1; }
void foo4(a) signed short a; { }
| Add testcase for last llvm-gcc tweaks | Add testcase for last llvm-gcc tweaks
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@44368 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llv... | |
ea0ceed76722247d83ec5ec1e6ae4b65a83a96b1 | tests/chardata.h | tests/chardata.h | /* chardata.h
*
*
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of chars, < 0 if not set */
XML_Char data[1024];
} CharData;
void CharData_Init(CharData... | /* chardata.h
Interface to some helper routines used to accumulate and check text
and attribute content.
*/
#ifndef XML_CHARDATA_H
#define XML_CHARDATA_H 1
#ifndef XML_VERSION
#include "expat.h" /* need XML_Char */
#endif
typedef struct {
int count; /* # of c... | Add a small comment to tell what this is. | Add a small comment to tell what this is.
| C | mit | cgwalters/expat-git-mirror,cgwalters/expat-git-mirror,cgwalters/expat-git-mirror |
3f987b530fb7c6ef773d382bfa25e02064405f19 | direct/src/plugin/p3dReferenceCount.h | direct/src/plugin/p3dReferenceCount.h | // Filename: p3dReferenceCount.h
// Created by: drose (09Jul09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You s... | // Filename: p3dReferenceCount.h
// Created by: drose (09Jul09)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You s... | Fix typo: "Pythong" -> "Python" ;-) | Fix typo: "Pythong" -> "Python" ;-)
| C | bsd-3-clause | brakhane/panda3d,hj3938/panda3d,ee08b397/panda3d,tobspr/panda3d,tobspr/panda3d,jjkoletar/panda3d,jjkoletar/panda3d,tobspr/panda3d,Wilee999/panda3d,hj3938/panda3d,Wilee999/panda3d,cc272309126/panda3d,brakhane/panda3d,cc272309126/panda3d,hj3938/panda3d,matthiascy/panda3d,cc272309126/panda3d,jjkoletar/panda3d,hj3938/panda... |
253ce6fd38f982fae6b0cf7f7bc4bf6fa36b8e9f | src/ast/node_counter.h | src/ast/node_counter.h | #pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node)
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
private:
s... | #pragma once
#include "bpftrace.h"
#include "log.h"
#include "pass_manager.h"
#include "visitors.h"
namespace bpftrace {
namespace ast {
class NodeCounter : public Visitor
{
public:
void Visit(Node &node)
{
count_++;
Visitor::Visit(node);
}
size_t get_count()
{
return count_;
};
private:
s... | Fix printing bug in node-counter pass | Fix printing bug in node-counter pass
| C | apache-2.0 | iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace,iovisor/bpftrace |
b4f4ec34d4632864e9b5738d2b47c272d22dd6e7 | You-Controller-Tests/exclusions.h | You-Controller-Tests/exclusions.h | #pragma once
#ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
#define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
// A local define since there is no way to test whether a header file exists.
// If you have VS Premium, then add it to the project definition (user
// properties) file
#ifdef MS_CPP_CODECOVERAGE
/// \file Exclusions fr... | #pragma once
#ifndef YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
#define YOU_CONTROLLER_TESTS_EXCLUSIONS_H_
// A local define since there is no way to test whether a header file exists.
// If you have VS Premium, then add it to the project definition (user
// properties) file
#ifdef MS_CPP_CODECOVERAGE
/// \file Exclusions fr... | Exclude data store from controller code coverage. | Exclude data store from controller code coverage.
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
fcb446e33c75960e3db85f718b77e4bb8db996d0 | include/libhdhomerun.h | include/libhdhomerun.h | // Wrapper to prevent multiple imports
#ifndef LIBHDHOMERUN_H
#define LIBHDHOMERUN_H
#import "hdhomerun_os.h"
#import "hdhomerun_discover.h"
#import "hdhomerun_pkt.h"
#endif
| Add wrapper to stop reinclude of library headers | Add wrapper to stop reinclude of library headers
| C | mit | robbieduncan/hdpirun,robbieduncan/hdpirun | |
ff862f1dea771feb087f9eade8534efa67f106f9 | SDLWrapper/__Plugin.h | SDLWrapper/__Plugin.h | #pragma once
#include "begin_code.h"
namespace _internal
{
/// This is just an empty class.
/// Most wrapper class regard this class as a friend class.
/// You can get/set raw pointers through this class.
class Plugin
{
public:
template<typename T>
decltype(auto) get(const T& obj)
{
return obj._get... | #pragma once
#include "begin_code.h"
namespace _internal
{
/// This is just an empty class.
/// Most wrapper class regard this class as a friend class.
/// You can get/set raw pointers through this class.
class Plugin
{
public:
template<typename T>
static decltype(auto) get(const T& obj)
{
return o... | Change Plugin methods to static | Change Plugin methods to static
| C | mit | Kiritow/MiniEngine,Kiritow/MiniEngine |
7c9ca7333acca5dab1e01fa282758038cf62b843 | tools/cgfx2json/stdafx.h | tools/cgfx2json/stdafx.h | // Copyright (c) 2009-2011 Turbulenz Limited
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#ifdef _MSC_VER
#pragma once
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or lat... | // Copyright (c) 2009-2011 Turbulenz Limited
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#ifdef _MSC_VER
#pragma once
#endif
#ifndef _WIN32_WINNT // Allow use of features specific to Windows XP or lat... | Disable some compiler warnings on the boost library. | Disable some compiler warnings on the boost library.
| C | mit | sanyaade-teachings/turbulenz_engine,turbulenz/turbulenz_engine,changemypath/turbulenz_engine,turbulenz/turbulenz_engine,supriyantomaftuh/turbulenz_engine,tianyutingxy/turbulenz_engine,supriyantomaftuh/turbulenz_engine,turbulenz/turbulenz_engine,tianyutingxy/turbulenz_engine,sanyaade-teachings/turbulenz_engine,supriyant... |
27d40160f8b2ab19ff6114d4598ff21d972b2fb5 | Week9_VecAddition_With_OpenACC/main.c | Week9_VecAddition_With_OpenACC/main.c | #include <wb.h>
int main(int argc, char** argv) {
wbArg_t args;
int inputLength;
float* h_A;
float* h_B;
float* h_O;
args = wbArg_read(argc, argv);
wbTime_start(Generic, "Importing data and creating memory on host");
h_A = (float*)wbImport(wbArg_getInputFile(args, 0), &inputLength);
... | Solve Vector Addition using OpenACC | Solve Vector Addition using OpenACC
| C | mit | NikolayGenov/Heterogeneous-Parallel-Programming-Coursera | |
13bf01fe2ca0f9274e4cf166ae59a79e3b9b7af4 | HLT/PHOS/AliHLTPHOSDataHeaderStruct.h | HLT/PHOS/AliHLTPHOSDataHeaderStruct.h | #ifndef ALIHLTPHOSDATAHEADERSTRUCT_H
#define ALIHLTPHOSDATAHEADERSTRUCT_H
#include "AliHLTDataTypes.h"
struct AliHLTPHOSDataHeaderStruct
{
AliHLTUInt32_t fSize; /**<Total size of datablock in bytes, incuding the header*/
AliHLTComponentDataType fDataType; /**<Data type stored in this file */
AliHLT... | Structure to hold header information for dat that should be written to file. | Structure to hold header information for dat that should be written to file.
| C | bsd-3-clause | miranov25/AliRoot,ecalvovi/AliRoot,coppedis/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,coppedis/AliRoot,sebaleh/AliRoot,alisw/AliRoot,jgrosseo/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,ALICEHLT/AliRoot,ecalvovi/AliRoot,alisw/AliRoot,ALICEHLT/AliRoot,miranov25/AliRoot,shahor02/AliRoot,alisw/AliRoot,coppedis/AliRoot,eca... | |
c55c188e68975e57534a26cc75a823951169db08 | drivers/sensor/vl53l0x/vl53l0x_types.h | drivers/sensor/vl53l0x/vl53l0x_types.h | /* vl53l0x_types.h - Zephyr customization of ST vl53l0x library,
* basic type definition.
*/
/*
* Copyright (c) 2017 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
/* Zephyr provides st... | /* vl53l0x_types.h - Zephyr customization of ST vl53l0x library,
* basic type definition.
*/
/*
* Copyright (c) 2017 STMicroelectronics
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
#define ZEPHYR_DRIVERS_SENSOR_VL53L0X_VL53L0X_TYPES_H_
/* Zephyr provides st... | Remove unnecessary lib include check | drivers/sensor/vl53l0x: Remove unnecessary lib include check
vl53l0x driver is using an external library to build, located under:
ext/hal/st/lib/sensor/vl53l0x.
This library is expecting stdint.h lib to be available and to
secure this for driver library inclusion work, a stdint.h file
header check was done. This check... | C | apache-2.0 | galak/zephyr,ldts/zephyr,nashif/zephyr,Vudentz/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,Vudentz/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,nashif/zephyr,nashif/zephyr,finikorg/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,Vudentz/zephyr,Vudentz/zephyr,GiulianoFranchet... |
0a5ffd4b837b57412f4943b9d62ce2d109315db3 | You-QueryEngine/api.h | You-QueryEngine/api.h | /// \file api.h
/// Defines the API for Query Engine.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_API_H_
#define YOU_QUERYENGINE_API_H_
#include <memory>
#include <boost/variant.hpp>
#include "task_model.h"
namespace You {
namespace QueryEngine {
/// A synthesized type for holding query responses
typ... | /// \file api.h
/// Defines the API for Query Engine.
/// \author A0112054Y
#pragma once
#ifndef YOU_QUERYENGINE_API_H_
#define YOU_QUERYENGINE_API_H_
#include <memory>
#include <boost/variant.hpp>
#include "task_model.h"
namespace You {
namespace QueryEngine {
/// A synthesized type for holding query responses
typ... | Add filter stub in header | Add filter stub in header
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
e6083cb7179c23930dc8aad4d05e05d410ed2dcd | alice4/software/libgl/event_service.h | alice4/software/libgl/event_service.h | #ifndef __EVENT_SERVICE_H__
#define __EVENT_SERVICE_H__
#include "basic_types.h"
int32_t events_winopen(char *title);
int32_t events_get_valuator(int32_t device);
void events_qdevice(int32_t device);
int32_t events_qread_start(int blocking);
int32_t events_qread_continue(int16_t *value);
void events_tie(int32_t butt... | #ifndef __EVENT_SERVICE_H__
#define __EVENT_SERVICE_H__
#include "basic_types.h"
int32_t events_winopen(char *title);
int32_t events_get_valuator(int32_t device);
void events_qdevice(int32_t device);
int32_t events_qread_start(int blocking);
int32_t events_qread_continue(int16_t *value);
void events_tie(int32_t butt... | Remove vi schmutz at EOF | Remove vi schmutz at EOF
| C | apache-2.0 | lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice,lkesteloot/alice |
dcdb76edb97d03a550f014c653c0cc1155fe9154 | src/runtime/encore/encore.c | src/runtime/encore/encore.c | #include <pony/pony.h>
#include "encore.h"
encore_actor_t *encore_create(encore_create_t *type)
{
return pony_create(type);
}
/// Allocate s bytes of memory, zeroed out
void *encore_alloc(size_t *s)
{
void *mem = pony_alloc(s);
memset(mem, 0, s);
return mem;
}
/// The starting point of all Encore programs
i... | #include <pony/pony.h>
#include "encore.h"
encore_actor_t *encore_create(encore_actor_t *type)
{
return pony_create(type);
}
/// Allocate s bytes of memory, zeroed out
void *encore_alloc(size_t *s)
{
void *mem = pony_alloc(s);
memset(mem, 0, s);
return mem;
}
/// The starting point of all Encore programs
in... | Fix also applied to corresponding C file | Fix also applied to corresponding C file
| C | bsd-3-clause | parapluu/encore,parapluu/encore,parapluu/encore |
dc0793d87ef92e645f8414d12cbdb56b759126a2 | tests/regression/27-inv_invariants/10-invariant-worsen-global.c | tests/regression/27-inv_invariants/10-invariant-worsen-global.c | // modified from 27/09
#include <assert.h>
#include <pthread.h>
int a = 1;
int b = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void* t_fun(void *arg) {
return NULL;
}
int main() {
int *x;
int rnd;
if (rnd)
x = &a;
else
x = &b;
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL); // go... | Add invariant precision worsening test for globals | Add invariant precision worsening test for globals
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
d782e8b30435413a9f0eeffc6eb38980e4c03bda | src/rx5808-pro-diversity/receiver.h | src/rx5808-pro-diversity/receiver.h | #ifndef RECEIVER_H
#define RECEIVER_H
#include <stdint.h>
#include "settings.h"
#define RECEIVER_A 0
#ifdef USE_DIVERSITY
#define RECEIVER_B 1
#define RECEIVER_AUTO 2
#define DIVERSITY_AUTO 0
#define DIVERSITY_FORCE_A 1
#define DIVERSITY_FORCE_B 2
#endif
#define RECEIVER_LAST_DELAY 100
#define RECEIVER_... | #ifndef RECEIVER_H
#define RECEIVER_H
#include <stdint.h>
#include "settings.h"
#define RECEIVER_A 0
#ifdef USE_DIVERSITY
#define RECEIVER_B 1
#define RECEIVER_AUTO 2
#define DIVERSITY_AUTO 0
#define DIVERSITY_FORCE_A 1
#define DIVERSITY_FORCE_B 2
#endif
#define RECEIVER_LAST_DELAY 50
#define RECEIVER_L... | Tweak RSSI tracking speed/count for better graphs | Tweak RSSI tracking speed/count for better graphs
| C | mit | RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity,RCDaddy/rx5808-pro-diversity,sheaivey/rx5808-pro-diversity |
f11eea1a4cf69c94a0995d2912b934f8d214557b | serialization_unique_ptr.h | serialization_unique_ptr.h | #include <boost/serialization/version.hpp>
#include <memory>
namespace boost {
namespace serialization {
template<class Archive, class T>
inline void save(Archive& ar, const std::unique_ptr<T>& t, const unsigned int){
// only the raw pointer has to be saved
const T* const tx = t.get();
ar << tx;
}
templa... | Add function for serialize std::unique_ptr | Add function for serialize std::unique_ptr
| C | agpl-3.0 | CanalTP/utils,pbougue/utils,xlqian/utils,CanalTP/utils | |
3494e5de3a03d021845666f55340d35af44e3bfc | tests/asm-c-connect-1.c | tests/asm-c-connect-1.c | #include <stdio.h>
#if defined _WIN32 && !defined __TINYC__
# define U "_"
#else
# define U
#endif
const char str[] = "x1\n";
#ifdef __x86_64__
asm(U"x1: push %rbp; mov $"U"str, %rdi; call "U"printf; pop %rbp; ret");
#elif defined (__i386__)
asm(U"x1: push $"U"str; call "U"printf; pop %eax; ret");
#endif
int main(in... | #include <stdio.h>
#if defined _WIN32 && !defined __TINYC__
# define _ "_"
#else
# define _
#endif
static int x1_c(void)
{
printf("x1\n");
return 1;
}
asm(".text;"_"x1: call "_"x1_c; ret");
int main(int argc, char *argv[])
{
asm("call "_"x1");
asm("call "_"x2");
asm("call "_"x3");
return 0;
... | Adjust asm-c-connect testcase for Windows | Adjust asm-c-connect testcase for Windows
Calling conventions are different, let's use functions without
any arguments.
| C | lgpl-2.1 | mirror/tinycc,mirror/tinycc,avih/tinycc,mirror/tinycc,mingodad/tinycc,mingodad/tinycc,mingodad/tinycc,mirror/tinycc,avih/tinycc,avih/tinycc,avih/tinycc,mingodad/tinycc |
96430402b3226b71bcec689eb917ac1ec4bf49da | test/include/auxkernels/RadialAverageAux.h | test/include/auxkernels/RadialAverageAux.h | #pragma once
#include "AuxKernel.h"
#include "RadialAverage.h"
/**
* Auxkernel to output the averaged material value from RadialAverage
*/
class RadialAverageAux : public AuxKernel
{
public:
static InputParameters validParams();
RadialAverageAux(const InputParameters & parameters);
protected:
virtual Real co... | #pragma once
#include "AuxKernel.h"
#include "RadialAverage.h"
/**
* Auxkernel to output the averaged material value from RadialAverage
*/
class RadialAverageAux : public AuxKernel
{
public:
static InputParameters validParams();
RadialAverageAux(const InputParameters & parameters);
protected:
virtual Real co... | Update to add newline EOF | Update to add newline EOF | C | lgpl-2.1 | milljm/moose,milljm/moose,andrsd/moose,idaholab/moose,sapitts/moose,laagesen/moose,sapitts/moose,laagesen/moose,harterj/moose,idaholab/moose,milljm/moose,idaholab/moose,harterj/moose,sapitts/moose,andrsd/moose,sapitts/moose,dschwen/moose,laagesen/moose,milljm/moose,milljm/moose,dschwen/moose,harterj/moose,laagesen/moos... |
650a24610c928965816dc0cb1c62f448582e4992 | tests/regression/34-congruence/01-simple.c | tests/regression/34-congruence/01-simple.c | //PARAM: --enable ana.int.congruence --disable ana.int.def_exc --disable ana.int.enums
int main() {
int a = 1;
int b = 2;
int c = 3;
int d = 4;
int e = 0;
while (d < 9) {
b = 2 * a;
d = d + 4;
e = e - 4 * a;
a = b - a;
c = e + d;
}
a = d / 2;
b = d % 2;
assert (c == 4); // UNKNOWN!
assert (d =... | Add simple regression test for congruence domain | Add simple regression test for congruence domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
9132701168fe6836e9e6f713823480c98c3a6d5b | RobotC/Headers/JoyMecanumDrive.h | RobotC/Headers/JoyMecanumDrive.h | #ifndef JOYMECANUMDRIVE_H
#define JOYMECANUMDRIVE_H
#pragma systemFile
#include "Joystick.h"
#include "Motor.h"
//This function interprets a TJoystick struct and sets desired motor powers.
//This uses mecanum drive in arcade style.
// Left joystick controls strafing and forwards/backwards
// Right joystick (x-axis ... | Implement arcade drive in a new header file | Implement arcade drive in a new header file
| C | mit | RMRobotics/FTC_5421_2014-2015,RMRobotics/FTC_5421_2014-2015 | |
41ba36ca7801c77f55da0f0180d3a844e4286d80 | Source/UnrealEnginePython/Public/UnrealEnginePython.h | Source/UnrealEnginePython/Public/UnrealEnginePython.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void Start... | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void Start... | Revert "Add support for the Python Stdout Log" | Revert "Add support for the Python Stdout Log"
This reverts commit 6dd58324c052cc893f6ce8f009903805185a71d1.
| C | mit | Orav/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,kitelightning/UnrealEnginePython,kitelightning/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,getnamo/UnrealEnginePython,20tab/UnrealEnginePython,O... |
778092838a341f1b508b4f1013c9418902200725 | unittest/include_gunit.h | unittest/include_gunit.h | // (C) Copyright 2017, Google 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
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | // (C) Copyright 2017, Google 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
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | Add ARRAYSIZE macro for Google test environment | Add ARRAYSIZE macro for Google test environment
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,stweil/tesseract,amitdo/tesseract,jbarlow83/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,UB-Mannheim/tesseract,jbarlow83/tesseract,stweil/tesseract,UB-Mannheim/tesseract,... |
e22b221f8f12b2ec8348745d91836c236b206738 | lib/Target/PowerPC/PPCTargetStreamer.h | lib/Target/PowerPC/PPCTargetStreamer.h | //===-- PPCTargetStreamer.h - PPC Target Streamer --s-----------*- C++ -*--===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- PPCTargetStreamer.h - PPC Target Streamer ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix some Include What You Use warnings; other minor fixes (NFC). | [PowerPC] Fix some Include What You Use warnings; other minor fixes (NFC).
This is preparation to reduce MC headers dependencies.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@294368 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,app... |
39dbabe79a9f56fb068ce6e17f5b068eab4226ce | Source/YOChartImageKit/YOChartImageKit.h | Source/YOChartImageKit/YOChartImageKit.h | #import <UIKit/UIKit.h>
//! Project version number for YOChartImageKit.
FOUNDATION_EXPORT double YOChartImageKitVersionNumber;
//! Project version string for YOChartImageKit.
FOUNDATION_EXPORT const unsigned char YOChartImageKitVersionString[];
#import <YOChartImageKit/YODonutChartImage.h>
#import <YOChartImageKit/Y... | #import <UIKit/UIKit.h>
//! Project version number for YOChartImageKit.
FOUNDATION_EXPORT double YOChartImageKitVersionNumber;
//! Project version string for YOChartImageKit.
FOUNDATION_EXPORT const unsigned char YOChartImageKitVersionString[];
#import "YODonutChartImage.h"
#import "YOBarChartImage.h"
#import "YOLin... | Fix including framework headers' path | Fix including framework headers' path
| C | mit | yasuoza/YOChartImageKit,yasuoza/YOChartImageKit |
fe117be5cff526413fbf793081a3722528cc77c4 | tests/regression/46-apron2/11-names.c | tests/regression/46-apron2/11-names.c | // SKIP PARAM: --set solver td3 --set ana.activated "['base','threadid','threadflag','mallocWrapper','apron','escape']" --set ana.base.privatization none --set ana.apron.privatization dummy
extern int __VERIFIER_nondet_int();
void change(int *p) {
int a;
(*p)++;
a++;
assert(a == 7); //UNKNOWN!
}
int g... | Add exmpale of confusion between locals of different procedures :/ | Add exmpale of confusion between locals of different procedures :/
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
2a6f1ae84ba32a6ee78eb386412254de98f85d04 | chapter1/1-10/external-longest.c | chapter1/1-10/external-longest.c | //
// Created by matti on 16.9.2015.
//
#include <stdio.h>
#define MAXLINE 1000
int max;
char line[MAXLINE];
char longest[MAXLINE];
int getline(void);
void copy(void);
int main() {
int len;
extern int max;
extern char longest[];
max = 0;
while((len = getline()) > 0) {
if (len > max) {
... | //
// Created by matti on 16.9.2015.
//
#include <stdio.h>
#define MAXLINE 1000
int max;
char line[MAXLINE];
char longest[MAXLINE];
int getnewline(void);
void copy(void);
int main() {
int len;
extern int max;
extern char longest[];
max = 0;
while((len = getnewline()) > 0) {
if (len > m... | Add 1-10 external variable example | Add 1-10 external variable example
| C | mit | melonmanchan/k-and-r |
d1e8b49ce3fcca4707a5971c5f6c693e7cf6dea2 | glib/mypaint-brush.h | glib/mypaint-brush.h | #ifndef MYPAINTBRUSHGLIB_H
#define MYPAINTBRUSHGLIB_H
#include <glib-object.h>
#include <mypaint-config.h>
#if MYPAINT_CONFIG_USE_GLIB
#define MYPAINT_TYPE_BRUSH (mypaint_brush_get_type ())
#define MYPAINT_VALUE_HOLDS_BRUSH(value) (G_TYPE_CHECK_VALUE_TYPE ((value), MYPAINT_TYPE_BRUSH))
GType mypaint_b... | #ifndef MYPAINTBRUSHGLIB_H
#define MYPAINTBRUSHGLIB_H
#include <mypaint-config.h>
#if MYPAINT_CONFIG_USE_GLIB
#include <glib-object.h>
#define MYPAINT_TYPE_BRUSH (mypaint_brush_get_type ())
#define MYPAINT_VALUE_HOLDS_BRUSH(value) (G_TYPE_CHECK_VALUE_TYPE ((value), MYPAINT_TYPE_BRUSH))
GType mypaint_br... | Move glib-object.h include inside USE_GLIB conditional | brushlib: Move glib-object.h include inside USE_GLIB conditional
| C | isc | achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,achadwick/libmypaint,b3sigma/libmypaint,b3sigma/libmypaint,b3sigma/libmypaint |
36aff6ec2ddeadbe06c7e52af8321a8bed2552d5 | include/llvm/Reoptimizer/InstLoops.h | include/llvm/Reoptimizer/InstLoops.h | //===-- InstLoops.h - interface to insert instrumentation --------*- C++ -*--=//
//
// Instrument every back edges with counters
//===----------------------------------------------------------------------===//
#ifndef LLVM_REOPTIMIZERINSTLOOPS_H
#define LLVM_REOPTIMIZERINSTLOOPS_H
class Pass;
// createInstLoopsPass ... | Check in header file that was missing, thus broke the build | Check in header file that was missing, thus broke the build
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4513 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,apple... | |
8ca7c103b616c4f773d9cf83ceb3c9a8098907b3 | src/math/float/cexpf.c | src/math/float/cexpf.c | #include "cisf.h"
#include "expf.h"
float _Complex cexpf(float _Complex z)
{
float x = z;
float y = cimagf(z);
if (y == 0)
return CMPLXF(expf_(x), y);
if (y - y) {
if (x == INFINITY)
return CMPLXF(x, y - y);
if (x == -INFINITY)
return 0;
}
ret... | #include "cisf.h"
#include "expf.h"
float _Complex cexpf(float _Complex z)
{
float x = z;
float y = cimagf(z);
double r = expf_(x);
if (y == 0)
return CMPLXF(r, y);
if (y - y) {
if (x == INFINITY)
return CMPLXF(x, y - y);
if (x == -INFINITY)
return... | Reduce compiled code size by storing a result of a likely-used common expression | Reduce compiled code size by storing a result of a likely-used common expression
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic |
0ecd818dddb5d8ea73ba6dc4e1f0d54b5313bea7 | source/common/console_progress_bar.h | source/common/console_progress_bar.h | /* The Halfling Project - A Graphics Engine and Projects
*
* The Halfling Project is the legal property of Adrian Astley
* Copyright Adrian Astley 2013
*/
#ifndef CONSOLE_PROGRESS_BAR_H
#define CONSOLE_PROGRESS_BAR_H
#include "common/typedefs.h"
#include "rlutil.h"
#include <cassert>
namespace Common {
class ... | Create a class for drawing progress bars on a console window | COMMON: Create a class for drawing progress bars on a console window
| C | apache-2.0 | RichieSams/thehalflingproject,RichieSams/thehalflingproject,RichieSams/thehalflingproject | |
edce59e1c03fdebc18649bbbc1ffcda3b62f101c | lb_vector.h | lb_vector.h | #ifndef LB_VECTOR_INCLUDED
#include "lb_scalar.h"
// Assume Vector to be n rows by 1 column
typedef struct {
Scalar* data;
unsigned int length;
} Vector;
Vector lb_create_vector(Scalar* data, unsigned int length);
Vector lb_allocate_vector(unsigned int length);
void lbdp(Vector a, Vector b, Scalar* result);... | #ifndef LB_VECTOR_INCLUDED
#include "lb_scalar.h"
// Assume Vector to be n rows by 1 column
typedef struct {
Scalar* data;
unsigned int length;
} Vector;
Vector lb_create_vector(Scalar* data, unsigned int length);
Vector lb_allocate_vector(unsigned int length);
void lbdp(Vector a, Vector b, Scalar* result);... | Make it easy to iterate a vector | Make it easy to iterate a vector
| C | apache-2.0 | frenchrd/laid-back-lapack,frenchrd/laid-back-lapack |
126ae8fc465f5077deb802e655c54cd2f253b623 | core/alsp_src/macos/mw_alspro_prefix.h | core/alsp_src/macos/mw_alspro_prefix.h | #include <MacHeaders.h>
#include <ansi_prefix.mac.h>
#pragma once off
#define HAVE_CONFIG_H
#define PORT 1
#define MACOS 1
#define CONFIGLESS 1
#include "prefix.h" | #include <MacHeaders.h>
//#include <ansi_prefix.mac.h>
#pragma once off
#define HAVE_CONFIG_H
#define PORT 1
#define MACOS 1
#define CONFIGLESS 1
#include "prefix.h" | Update prefix for CW Pro1 | Update prefix for CW Pro1
| C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
e78f728e723f15b2423c7d5556e4bf9bc47c2c6f | searchlib/src/vespa/searchlib/queryeval/idiversifier.h | searchlib/src/vespa/searchlib/queryeval/idiversifier.h | // Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
namespace search::queryeval {
struct IDiversifier {
virtual ~IDiversifier() {}
/**
* Will tell if this document should be kept, and update state for fur... | Restructure for code reuse and hiding implementation. | Restructure for code reuse and hiding implementation.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa | |
8fa7d5b367c2a24717d022242facced25ac381df | src/lib/c++/cxx_constructors_global.c | src/lib/c++/cxx_constructors_global.c | /*
* cxx_constructors_global.c
*
* Created on: 30 janv. 2013
* Author: fsulima
*/
#include <embox/unit.h>
EMBOX_UNIT_INIT(cxx_init);
EMBOX_UNIT_FINI(cxx_fini);
#include "cxx_invoke_constructors.h"
#include "cxx_invoke_destructors.h"
#include "cxx_app_startup_terminatioin.h"
static int cxx_init(void) {
... | /*
* cxx_constructors_global.c
*
* Created on: 30 janv. 2013
* Author: fsulima
*/
#include <embox/unit.h>
#include "cxx_invoke_constructors.h"
#include "cxx_invoke_destructors.h"
#include "cxx_app_startup_termination.h"
EMBOX_UNIT(cxx_init, cxx_fini);
static int cxx_init(void) {
cxx_invoke_constructors(... | Fix compilation of constructor_global module | qt-pro: Fix compilation of constructor_global module | C | bsd-2-clause | Kakadu/embox,vrxfile/embox-trik,embox/embox,gzoom13/embox,Kefir0192/embox,Kefir0192/embox,abusalimov/embox,gzoom13/embox,Kakadu/embox,embox/embox,gzoom13/embox,abusalimov/embox,mike2390/embox,abusalimov/embox,Kakadu/embox,mike2390/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,Kefir0192/embox,Kefir0192/embox,... |
41b1fefc4ecf7317d4e8ca4529edde1d5fad6ac0 | Menu/Code/UI.h | Menu/Code/UI.h | //
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BRMenuUIStyle.h>
| //
// Mapping.h
// Menu
//
// Created by Matt on 21/07/15.
// Copyright (c) 2015 Blue Rocket. All rights reserved.
//
#import <BRMenu/UI/BRMenuBackBarButtonItemView.h>
#import <BRMenu/UI/BRMenuBarButtonItemView.h>
#import <BRMenu/UI/BRMenuPlusMinusButton.h>
#import <BRMenu/UI/BRMenuStepper.h>
#import <BRMenu/UI/BR... | Include latest class additions in umbrella include. | Include latest class additions in umbrella include.
| C | apache-2.0 | Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu |
8de044c57cd709945db364a4ac403a6a8e017a8b | exercises/leap/src/example.h | exercises/leap/src/example.h | #ifndef _LEAP_H
#define _LEAP_H
#include <stdbool.h>
bool leap_year(int year);
#endif
| #ifndef _LEAP_H
#define _LEAP_H
#include <stdbool.h>
bool is_leap_year(int year);
#endif
| Fix compiler warning in Leap | Fix compiler warning in Leap
| C | mit | RealBarrettBrown/xc,RealBarrettBrown/xc,RealBarrettBrown/xc |
df574f0ac2acf774a874752f6421f1f6f85cb2cc | test/Preprocessor/warn-macro-unused.c | test/Preprocessor/warn-macro-unused.c | // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
#include "warn-macro-unused.h"
#define unused // expected-warning {{macro is not used}}
#define unused
unused
// rdar://9745065
#undef unused_from_header // no warning
| // RUN: %clang_cc1 %s -Wunused-macros -Dfoo -Dfoo -verify
// XFAIL: *
#include "warn-macro-unused.h"
#define unused // expected-warning {{macro is not used}}
#define unused
unused
// rdar://9745065
#undef unused_from_header // no warning
| Test is broken; XFAIL it until Argyrios gets a chance to look at it. | Test is broken; XFAIL it until Argyrios gets a chance to look at it.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@134925 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
ac62d9b1e647fa02437ea49336460e32988138b0 | HATransparentView/HATransparentView.h | HATransparentView/HATransparentView.h | //
// HATransparentView.h
// HATransparentView
//
// Created by Heberti Almeida on 13/09/13.
// Copyright (c) 2013 Heberti Almeida. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HATransparentView : UIView
@property (strong, nonatomic) UIColor *color;
@property (nonatomic) CGFloat *alpha;
- (void)op... | //
// HATransparentView.h
// HATransparentView
//
// Created by Heberti Almeida on 13/09/13.
// Copyright (c) 2013 Heberti Almeida. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface HATransparentView : UIView
- (void)open;
- (void)close;
@end
| Fix disabled interaction on device | Fix disabled interaction on device
| C | mit | ernestopino/HATransparentView,hebertialmeida/HATransparentView,amannayak0007/HATransparentView |
f2a5890d0133c8c7a9a5d7a21ffc9c038e838698 | ios/RNInstabug/InstabugReactBridge.h | ios/RNInstabug/InstabugReactBridge.h | //
// InstabugReactBridge.h
// instabugDemo
//
// Created by Yousef Hamza on 9/29/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "RCTBridgeModule.h"
#import "RCTEventEmitter.h"
@interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
@end
| //
// InstabugReactBridge.h
// instabugDemo
//
// Created by Yousef Hamza on 9/29/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <React/RCTBridgeModule.h>
#import "RCTEventEmitter.h"
@interface InstabugReactBridge : RCTEventEmitter <RCTBridgeModule>
@end
| Fix the import in the bridge header file to account for changes in RN 0.48 | :pencil: Fix the import in the bridge header file to account for changes in RN 0.48
| C | mit | Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative,Instabug/instabug-reactnative |
8b32603f1492f8847ffecd683c1d666a528abbf2 | include/Athena-Physics/Prerequisites.h | include/Athena-Physics/Prerequisites.h | /** @file Prerequisites.h
@author Philip Abbet
Declaration of the types of the Athena-Physics module
*/
#ifndef _ATHENA_PHYSICS_PREREQUISITES_H_
#define _ATHENA_PHYSICS_PREREQUISITES_H_
#include <Athena-Core/Prerequisites.h>
#include <Athena-Physics/Config.h>
#include <Bullet/btConfig.h>
#include <btBu... | /** @file Prerequisites.h
@author Philip Abbet
Declaration of the types of the Athena-Physics module
*/
#ifndef _ATHENA_PHYSICS_PREREQUISITES_H_
#define _ATHENA_PHYSICS_PREREQUISITES_H_
#include <Athena-Core/Prerequisites.h>
#include <Athena-Physics/Config.h>
#include <Bullet/btConfig.h>
#include <btBu... | Fix the previous commit: the 'initialize()' function wasn't declared in the 'Athena::Physics' namespace | Fix the previous commit: the 'initialize()' function wasn't declared in the 'Athena::Physics' namespace
| C | mit | Kanma/Athena-Physics,Kanma/Athena-Physics |
d00dc21fdb784defab7376b8aa0c45db94be5c97 | src/gpu/vk/GrVkVulkan.h | src/gpu/vk/GrVkVulkan.h | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrVkVulkan_DEFINED
#define GrVkVulkan_DEFINED
#include "SkTypes.h"
#ifdef VULKAN_CORE_H_
#error "Skia's private vulkan header must be included before any other vulka... | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrVkVulkan_DEFINED
#define GrVkVulkan_DEFINED
#include "SkTypes.h"
#ifdef VULKAN_CORE_H_
#error "Skia's private vulkan header must be included before any other vulka... | Fix path to vulkan header. | Fix path to vulkan header.
Bug: skia:
Change-Id: I47cb8f67b378a51cefcb82864eda467ff6b48a7e
Reviewed-on: https://skia-review.googlesource.com/c/176969
Commit-Queue: Greg Daniel <39df0a804564ccb6cf75f18db79653821f37c1c5@google.com>
Commit-Queue: Mike Klein <14574f09dfa9b4e14759b88c3426a495a0e627b0@google.com>
Auto-Submi... | C | bsd-3-clause | HalCanary/skia-hc,aosp-mirror/platform_external_skia,google/skia,google/skia,Hikari-no-Tenshi/android_external_skia,google/skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,HalCanary/skia-hc,google/skia,aosp-mirror/platform_external_skia,Hikari-no-Ten... |
a97f2adb2fbfed37e1bf7706f57d22983936ba4d | src/kdf/pbkdf1/pbkdf1.h | src/kdf/pbkdf1/pbkdf1.h | /*************************************************
* PBKDF1 Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_PBKDF1_H__
#define BOTAN_PBKDF1_H__
#include <botan/s2k.h>
#include <botan/base.h>
namespace Botan ... | /*************************************************
* PBKDF1 Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_PBKDF1_H__
#define BOTAN_PBKDF1_H__
#include <botan/s2k.h>
#include <botan/base.h>
namespace Botan ... | Fix warning in PBKDF1 copy constructor | Fix warning in PBKDF1 copy constructor
| C | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,webmaster128/... |
2f2b637ef0a89c0483ff1f26f42452dbc210d7d2 | AppIconOverlay/config.h | AppIconOverlay/config.h | #ifndef AppIconOverlay_config_h
#define AppIconOverlay_config_h
#define DEBUG 1
#define DEFAULT_MIN_FONT_SIZE 6.0
#define DEFAULT_MAX_FONT_SIZE 18.0
#define DEFAULT_FONT_TO_USE "Arial-BoldMT"
#endif
| #ifndef AppIconOverlay_config_h
#define AppIconOverlay_config_h
#define DEBUG 1
#define DEFAULT_MIN_FONT_SIZE 6.0
#define DEFAULT_MAX_FONT_SIZE 18.0
#define DEFAULT_FONT_TO_USE @"Arial-BoldMT"
#endif
| Convert default font name into an NSString | Convert default font name into an NSString
| C | mit | carsonmcdonald/AppIconOverlay |
d84b1b8c58237023cf007e92202d96716254b1f0 | vp8/decoder/opencl/opencl_systemdependent.c | vp8/decoder/opencl/opencl_systemdependent.c | /*
* Copyright (c) 2010 The WebM 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 contributin... | /*
* Copyright (c) 2010 The WebM 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 contributin... | Remove unused external function definitions. | Remove unused external function definitions.
| C | bsd-3-clause | awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl |
f5098c051ddf16fd9adb2d53044975c2fc33ad10 | libpolyml/noreturn.h | libpolyml/noreturn.h | /*
Title: No return header.
Author: David C.J. Matthews
Copyright (c) 2006, 2015 David C.J. Matthews
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
... | /*
Title: No return header.
Author: David C.J. Matthews
Copyright (c) 2006, 2015 David C.J. Matthews
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 2.1 as published by the Free Software Foundation.
... | Fix no-return for non-GCC and non-VS. | Fix no-return for non-GCC and non-VS.
| C | lgpl-2.1 | polyml/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,dcjm/polyml |
a66b58cc03746c8b26d1f73c149eea03f9195c85 | packages/rview/fltk/Fl_Value_Slider2.h | packages/rview/fltk/Fl_Value_Slider2.h | #ifndef Fl_Value_Slider2_H
#define Fl_Value_Slider2_H
#include "Fl/Fl_Slider.H"
class Fl_Value_Slider2 : public Fl_Slider {
uchar textfont_, textsize_;
unsigned textcolor_;
public:
void draw();
int handle(int);
Fl_Value_Slider2(int x,int y,int w,int h, const char *l = 0);
Fl_Font textfont() co... | #ifndef Fl_Value_Slider2_H
#define Fl_Value_Slider2_H
#include <FL/Fl_Slider.H>
class Fl_Value_Slider2 : public Fl_Slider {
uchar textfont_, textsize_;
unsigned textcolor_;
public:
void draw();
int handle(int);
Fl_Value_Slider2(int x,int y,int w,int h, const char *l = 0);
Fl_Font textfont() co... | Fix include statement of FLTK header such that it compiles with FLTK 1.3 without requiring backwards compatible link creation. | Fix include statement of FLTK header such that it compiles with FLTK 1.3 without requiring backwards compatible link creation.
| C | unknown | BioMedIA/irtk-legacy,BioMedIA/IRTK,BioMedIA/IRTK,ghisvail/irtk-legacy,ghisvail/irtk-legacy,BioMedIA/IRTK,ghisvail/irtk-legacy,ghisvail/irtk-legacy,BioMedIA/IRTK,BioMedIA/irtk-legacy,BioMedIA/irtk-legacy,sk1712/IRTK,sk1712/IRTK,sk1712/IRTK,sk1712/IRTK,BioMedIA/irtk-legacy |
cc960ada72a4626bac4e12853c00a20282d246f7 | include/problems/0001-0050/Problem14.h | include/problems/0001-0050/Problem14.h | //===-- problems/Problem14.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | //===-- problems/Problem14.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | Add another / to a couple comments in Problem 14 to make intended Doxygen comments visible as such. | Add another / to a couple comments in Problem 14 to make intended Doxygen comments visible as such.
| C | mit | wtmitchell/challenge_problems,wtmitchell/challenge_problems,wtmitchell/challenge_problems |
adebbe22c28891ccc25941d7679a9641972a7a25 | tests/regression/31-ikind-aware-ints/16-enums-compare.c | tests/regression/31-ikind-aware-ints/16-enums-compare.c | //PARAM: --enable ana.int.enums --disable ana.int.def_exc
int main(){
int top = rand();
int x,y;
if(top){
x = 1;
} else{
x = 0;
}
assert(x<2);
return 0;
}
| //PARAM: --enable ana.int.enums --disable ana.int.def_exc
int main(){
int top = rand();
int x,y;
if(top){
x = 1;
} else{
x = 0;
}
assert(x < 2);
assert(x < 1); // UNKNOWN!
assert(x < 0); // FAIL
assert(x <= 2);
assert(x <= 1);
assert(x <= 0); // UNKNOWN!
... | Add more assert statements to test case | Add more assert statements to test case
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
a8f44e52c36e7dee41d2e6a913e83e1d9bb9c1cc | sbr/folder_free.c | sbr/folder_free.c |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
void
folder_free (struct msgs *mp)
{
size_t i;
bvector_t ... |
/*
* folder_free.c -- free a folder/message structure
*
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
*/
#include <h/mh.h>
#include <h/utils.h>
void
folder_free (struct msgs *mp)
{
siz... | Replace `if (p) free(p)' with `mh_xfree(p)'. | Replace `if (p) free(p)' with `mh_xfree(p)'.
| C | bsd-3-clause | mcr/nmh,mcr/nmh |
5055cdaf310f28beb0e84119dd4da1a6034cc0f2 | Programs/charset_grub.c | Programs/charset_grub.c | /*
* BRLTTY - A background process providing access to the console screen (when in
* text mode) for a blind person using a refreshable braille display.
*
* Copyright (C) 1995-2012 by The BRLTTY Developers.
*
* BRLTTY comes with ABSOLUTELY NO WARRANTY.
*
* This is free software, placed under the terms o... | Add the grub-specific charset functions. (dm) | Add the grub-specific charset functions. (dm)
git-svn-id: 30a5f035a20f1bc647618dbad7eea2a951b61b7c@6219 91a5dbb7-01b9-0310-9b5f-b28072856b6e
| C | lgpl-2.1 | brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty,brltty/brltty | |
89eae96b2f739b5f0e7db4bee8bd517207d699c6 | src/include/port/qnx4.h | src/include/port/qnx4.h | #include <sys/types.h> /* for namser.h */
#include <arpa/nameser.h> /* for BYTE_ORDER */
#include <process.h> /* for execv */
#include <ioctl.h> /* for unix.h */
#include <unix.h>
#include <sys/select.h> /* for select */
#define HAS_TEST_AND_SET
#undef HAVE_GETRUSAGE
#define strncasecmp strnicmp
#ifndef ... | #include <sys/types.h> /* for namser.h */
#include <arpa/nameser.h> /* for BYTE_ORDER */
#include <process.h> /* for execv */
#include <ioctl.h> /* for unix.h */
#include <unix.h>
#include <sys/select.h> /* for select */
#define HAS_TEST_AND_SET
#undef HAVE_GETRUSAGE
#define strncasecmp strnicmp
#ifndef ... | Remove rint() prototype from QNX. | Remove rint() prototype from QNX.
| C | mpl-2.0 | postmind-net/postgres-xl,randomtask1155/gpdb,rvs/gpdb,janebeckman/gpdb,foyzur/gpdb,xuegang/gpdb,arcivanov/postgres-xl,jmcatamney/gpdb,cjcjameson/gpdb,jmcatamney/gpdb,Chibin/gpdb,zaksoup/gpdb,50wu/gpdb,snaga/postgres-xl,Quikling/gpdb,adam8157/gpdb,lintzc/gpdb,lisakowen/gpdb,kmjungersen/PostgresXL,Chibin/gpdb,atris/gpdb,... |
80b30e1bfdef0904945b67b3add42458da72dcaa | packages/Python/lldbsuite/test/commands/expression/multiline-completion/main.c | packages/Python/lldbsuite/test/commands/expression/multiline-completion/main.c | int main(int argc, char **argv) {
lldb_enable_attach();
int to_complete = 0;
return to_complete;
}
| int main(int argc, char **argv) {
int to_complete = 0;
return to_complete;
}
| Remove unnecessary lldb_enable_attach in TestMultilineCompletion | [lldb][NFC] Remove unnecessary lldb_enable_attach in TestMultilineCompletion
We don't actually need to call this for this test.
git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@370623 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-lldb,llvm-mirror/lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,llvm-mirror/lldb,apple/swift-lldb,apple/swift-lldb |
4f4ada85e23ba03759aaf617c994bf2efc7e91c4 | 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: de016e52bd170d2d4f2344f9bf92d50478b649e0@54279 0039d316-1c4b-4281-b951-d872f2087c9... | C | bsd-3-clause | nacl-webkit/chrome_deps,zcbenz/cefode-chromium,axinging/chromium-crosswalk,robclark/chromium,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,Just-D/chromium-1,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,junmin-zhu/chromium-rivertrai... |
9cc3c498b25f30ebe2da5b9d59df7a87ef7bc3d2 | src/libstddjb/absolutepath.c | src/libstddjb/absolutepath.c | /* ISC license. */
/* MT-unsafe */
#include <skalibs/stralloc.h>
#include <skalibs/skamisc.h>
#include <skalibs/djbunix.h>
int sarealpath (stralloc *sa, char const *path)
{
return sarealpath_tmp(sa, path, &satmp) ;
}
| /* ISC license. */
/* MT-unsafe */
#include <skalibs/stralloc.h>
#include <skalibs/skamisc.h>
#include <skalibs/djbunix.h>
BUG
int sarealpath (stralloc *sa, char const *path)
{
return sarealpath_tmp(sa, path, &satmp) ;
}
| Make build crash early on purpose (to test test suite...) | Make build crash early on purpose (to test test suite...)
| C | isc | skarnet/skalibs,skarnet/skalibs |
a9befa9f89a002dc2fa7696a44936055a98de413 | test_utils/mock_queue.h | test_utils/mock_queue.h | #ifndef TACHYON_TEST_UTILS_MOCK_QUEUE_H_
#define TACHYON_TEST_UTILS_MOCK_QUEUE_H_
#include <stdint.h>
#include "gmock/gmock.h"
#include "lib/queue_interface.h"
namespace tachyon {
namespace testing {
// Mock class for queues.
template <class T>
class MockQueue : public QueueInterface<T> {
public:
MOCK_METHOD1_T... | #ifndef TACHYON_TEST_UTILS_MOCK_QUEUE_H_
#define TACHYON_TEST_UTILS_MOCK_QUEUE_H_
#include <stdint.h>
#include "gmock/gmock.h"
#include "lib/queue_interface.h"
namespace tachyon {
namespace testing {
// Mock class for queues.
template <class T>
class MockQueue : public QueueInterface<T> {
public:
MOCK_METHOD1_T... | Add peek methods to mock queue. | Add peek methods to mock queue.
| C | mit | djpetti/gaia,djpetti/gaia,djpetti/gaia |
388d30f266630975e30de38b987038859207d3bc | tests/glibc_syscall_wrappers/test_stat.c | tests/glibc_syscall_wrappers/test_stat.c | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#pragma GCC diagnostic ignored "-Wnonnull"
#define KNOWN_FIL... | /*
* Copyright 2010 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can
* be found in the LICENSE file.
*/
#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
#pragma GCC diagnostic ignored "-Wnonnull"
#define KNOWN_FIL... | Remove test for obsolete function stat64. | Remove test for obsolete function stat64.
BUG=
TEST=run_stat_test
Review URL: http://codereview.chromium.org/6300006
git-svn-id: 721b910a23eff8a86f00c8fd261a7587cddf18f8@4152 fcba33aa-ac0c-11dd-b9e7-8d5594d729c2
| C | bsd-3-clause | sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client,nacl-webkit/native_client,sbc100/native_client,sbc100/native_client,nacl-webkit/native_client,nacl-webkit/native_client,sbc100/native_client |
06039e96e1098f3059e34ae836e8c66b55384402 | include/mart-common/experimental/tmp.h | include/mart-common/experimental/tmp.h | #ifndef LIB_MART_COMMON_GUARD_TMP_H
#define LIB_MART_COMMON_GUARD_TMP_H
/**
* tmp.h (mart-common)
*
* Copyright (C) 2015-2017: Michael Balszun <michael.balszun@mytum.de>
*
* This software may be modified and distributed under the terms
* of the MIT license. See either the LICENSE file in the library's root
* directory ... | Add cartesian_value_product template meta function | [Merge] Add cartesian_value_product template meta function
| C | mit | tum-ei-rcs/mart-common,tum-ei-rcs/mart-common | |
28b5c302b8d65d935fb833d5a8a583866f2e5c60 | secure-notes-exporter/main.c | secure-notes-exporter/main.c | //
// main.c
// secure-notes-exporter
//
// Created by Greg Hurrell on 5/9/14.
// Copyright (c) 2014 Greg Hurrell. All rights reserved.
//
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
int main(int argc, const char * argv[])
{
// create query
CFStringRef keys[] = { kSecReturnAt... | //
// main.c
// secure-notes-exporter
//
// Created by Greg Hurrell on 5/9/14.
// Copyright (c) 2014 Greg Hurrell. All rights reserved.
//
#include <CoreFoundation/CoreFoundation.h>
#include <Security/Security.h>
void printItem(const void *value, void *context) {
CFDictionaryRef dictionary = value;
CFNumb... | Print something about "Secure Notes" while iterating | Print something about "Secure Notes" while iterating
I couldn't find a constant for 'note' and there are probably more
idiomatic ways to do this, but this is what I have.
Signed-off-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@hurrell.net>
| C | bsd-3-clause | wincent/secure-notes-exporter |
ce1a1091e2ca7826ec17d08d756105eb6cf654f4 | include/llvm/Transforms/Utils/Mem2Reg.h | include/llvm/Transforms/Utils/Mem2Reg.h | //===- Mem2Reg.h - The -mem2reg pass, a wrapper around the Utils lib ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- Mem2Reg.h - The -mem2reg pass, a wrapper around the Utils lib ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add EOL at EOF to appease source utils like unifdef | Add EOL at EOF to appease source utils like unifdef
<rdar://problem/32511256>
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@305225 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Dri... |
7105c5953e128f3745bca196ddbc30ca7c3229fe | tests/api/test-bug-is-primitive-invalid-index-gh337.c | tests/api/test-bug-is-primitive-invalid-index-gh337.c | /*
* Bug in duk_is_primitive() prior to Duktape 1.3.0: returns 1 for invalid
* index.
*
* https://github.com/svaarala/duktape/issues/337
*/
/*===
*** test_1 (duk_safe_call)
0
final top: 0
==> rc=0, result='undefined'
*** test_2 (duk_safe_call)
0
final top: 0
==> rc=0, result='undefined'
*** test_3 (duk_safe_ca... | Add bug testcase for GH-337 | Add bug testcase for GH-337
| C | mit | markand/duktape,jmptrader/duktape,nivertech/duktape,nivertech/duktape,jmptrader/duktape,nivertech/duktape,markand/duktape,chenyaqiuqiu/duktape,harold-b/duktape,svaarala/duktape,chenyaqiuqiu/duktape,tassmjau/duktape,svaarala/duktape,nivertech/duktape,nivertech/duktape,chenyaqiuqiu/duktape,chenyaqiuqiu/duktape,jmptrader/... | |
20a48bba8b21203919b25888f3ad75d27a2bbab0 | tests/regression/02-base/86-spurious.c | tests/regression/02-base/86-spurious.c | #include<pthread.h>
#include<assert.h>
int counter = 0;
pthread_mutex_t lock1;
void* producer(void* param) {
pthread_mutex_lock(&lock1);
counter = 0;
pthread_mutex_unlock(&lock1);
}
void* consumer(void* param) {
pthread_mutex_lock(&lock1);
int bla = counter >= 0;
// This should not produce a w... | //PARAM: --disable warn.assert
#include<pthread.h>
#include<assert.h>
int counter = 0;
pthread_mutex_t lock1;
void* producer(void* param) {
pthread_mutex_lock(&lock1);
counter = 0;
pthread_mutex_unlock(&lock1);
}
void* consumer(void* param) {
pthread_mutex_lock(&lock1);
int bla = counter >= 0;
... | Modify test 02/86 so it fails if spurious warning is produced | Modify test 02/86 so it fails if spurious warning is produced
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
87b2aa5ed903e8121969ae0f8dead4a7aaa88ea1 | boards/nrf52832-mdk/include/periph_conf.h | boards/nrf52832-mdk/include/periph_conf.h | /*
* Copyright (C) 2019 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_nrf52832-mdk
* @{
*
* @file
* @brief Peripheral configuration for the nRF... | /*
* Copyright (C) 2019 Inria
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup boards_nrf52832-mdk
* @{
*
* @file
* @brief Peripheral configuration for the nRF... | Enable the nRF52 built-in DC/DC converter | nrf52832-mdk: Enable the nRF52 built-in DC/DC converter
| C | lgpl-2.1 | OlegHahm/RIOT,RIOT-OS/RIOT,yogo1212/RIOT,OTAkeys/RIOT,ant9000/RIOT,authmillenon/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,kaspar030/RIOT,ant9000/RIOT,kYc0o/RIOT,yogo1212/RIOT,basilfx/RIOT,authmillenon/RIOT,OTAkeys/RIOT,OlegHahm/RIOT,authmillenon/RIOT,yogo1212/RIOT,OTAkeys/RIOT,basilfx/RIOT,basilfx/RIOT,jasonatran/RIOT,miri64/RI... |
27291e96b8b5ac7472c782842a01fca8ac59b6b6 | src/vast/concept/parseable/vast/http.h | src/vast/concept/parseable/vast/http.h | #ifndef VAST_CONCEPT_PARSEABLE_VAST_HTTP_H
#define VAST_CONCEPT_PARSEABLE_VAST_HTTP_H
#include <algorithm>
#include <cctype>
#include <string>
#include "vast/concept/parseable/core.h"
#include "vast/concept/parseable/string.h"
#include "vast/concept/parseable/numeric/real.h"
#include "vast/concept/parseable/vast/uri.... | Add HTTP parsers which got lost during last merge | Add HTTP parsers which got lost during last merge
| C | bsd-3-clause | mavam/vast,vast-io/vast,vast-io/vast,mavam/vast,vast-io/vast,pmos69/vast,mavam/vast,vast-io/vast,pmos69/vast,pmos69/vast,mavam/vast,pmos69/vast,vast-io/vast | |
e92636f39795ce15a5f11660803d0d0c9394ec23 | src/t3/Portability.h | src/t3/Portability.h | /****************************************************************************
* Simple definitions to aid platform portability
* Author: Bill Forster
* License: MIT license. Full text of license is in associated file LICENSE
* Copyright 2010-2014, Bill Forster <billforsternz at gmail dot com>
*****************... | /****************************************************************************
* Simple definitions to aid platform portability
* Author: Bill Forster
* License: MIT license. Full text of license is in associated file LICENSE
* Copyright 2010-2014, Bill Forster <billforsternz at gmail dot com>
*****************... | Change over to KostaKow's version of this | Change over to KostaKow's version of this
| C | mit | billforsternz/tarrasch-chess-gui,billforsternz/tarrasch-chess-gui,billforsternz/tarrasch-chess-gui,billforsternz/tarrasch-chess-gui |
a0bd5722877d7144bbac6ab613ef3d9ea89e39cd | src/polling/polling_thread.h | src/polling/polling_thread.h | #ifndef POLLING_THREAD_H
#define POLLING_THREAD_H
#include <cstdint>
#include <chrono>
#include <map>
#include <uv.h>
#include "../thread.h"
#include "../status.h"
#include "../result.h"
#include "polled_root.h"
const std::chrono::milliseconds DEFAULT_POLL_INTERVAL = std::chrono::milliseconds(500);
const uint_fast64... | #ifndef POLLING_THREAD_H
#define POLLING_THREAD_H
#include <cstdint>
#include <chrono>
#include <map>
#include <uv.h>
#include "../thread.h"
#include "../status.h"
#include "../result.h"
#include "polled_root.h"
const std::chrono::milliseconds DEFAULT_POLL_INTERVAL = std::chrono::milliseconds(100);
const uint_fast64... | Drop the default polling interval to 100ms | Drop the default polling interval to 100ms
| C | mit | atom/watcher,atom/watcher,atom/watcher,atom/watcher,atom/watcher |
9447fa811b7ac3429f9fdbc8a34a7b6ac6dccca3 | core-set.h | core-set.h | #ifndef __CORE_SET__
#define __CORE_SET__
#include <set>
class CoreSet : public std::set<int>
{
public:
int getPrevCore(int coreId) {
auto curr = this->find(coreId);
assert(curr != this->end());
curr--;
// This was the first element, start over
if (curr == this->end())
... | #ifndef __CORE_SET__
#define __CORE_SET__
#include "assert.h"
#include <set>
class CoreSet : public std::set<int>
{
public:
int getPrevCore(int coreId) {
auto curr = this->find(coreId);
assert(curr != this->end());
curr--;
// This was the first element, start over
if (curr ... | Add a missing header include for assert.h | Add a missing header include for assert.h
| C | bsd-3-clause | s-kanev/XIOSim,s-kanev/XIOSim,s-kanev/XIOSim,s-kanev/XIOSim |
4ede882f2c2b3a2409bddbbd6cee9bbbfdead905 | Lumina-DE/src/lumina-desktop/Globals.h | Lumina-DE/src/lumina-desktop/Globals.h | //===========================================
// Lumina-DE source code
// Copyright (c) 2012, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_GLOBALS_H
#define _LUMINA_DESKTOP_GLOBALS_H
class SYSTEM... | //===========================================
// Lumina-DE source code
// Copyright (c) 2012, Ken Moore
// Available under the 3-clause BSD license
// See the LICENSE file for full details
//===========================================
#ifndef _LUMINA_DESKTOP_GLOBALS_H
#define _LUMINA_DESKTOP_GLOBALS_H
#include <un... | Fix up the Lumina compilation on 10.x | Fix up the Lumina compilation on 10.x
| C | bsd-2-clause | pcbsd/external-projects,pcbsd/external-projects,pcbsd/external-projects,pcbsd/external-projects |
441be63dc78aa784d22bdb6d07b8d3c35617df04 | test/small1/wchar1_freebsd.c | test/small1/wchar1_freebsd.c | # 1 "wchar1.c"
# 1 "testharness.h" 1
extern int printf(const char *, ...);
extern void exit(int);
# 1 "wchar1.c" 2
# 1 "/usr/include/stddef.h" 1 3
# 1 "/usr/include/machine/ansi.h" 1 3
... | Test reported by Axel, our FreeBSD user. This file is the postprocessed result from a FreeBSD machine. This command fails: | Test reported by Axel, our FreeBSD user. This file is the postprocessed
result from a FreeBSD machine. This command fails:
../bin/cilly small1/wchar1_freebsd.c
IGNORE
| C | bsd-3-clause | samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c,samuelhavron/obliv-c | |
d09f9e3fd3ca978e0a20e63bdeb906c9592baf82 | include/fileurlreader.h | include/fileurlreader.h | #ifndef NEWSBOAT_FILEURLREADER_H_
#define NEWSBOAT_FILEURLREADER_H_
#include <string>
#include "urlreader.h"
namespace newsboat {
class FileUrlReader : public UrlReader {
public:
explicit FileUrlReader(const std::string& file = "");
nonstd::optional<std::string> reload() override;
std::string get_source() overr... | #ifndef NEWSBOAT_FILEURLREADER_H_
#define NEWSBOAT_FILEURLREADER_H_
#include <string>
#include "urlreader.h"
namespace newsboat {
class FileUrlReader : public UrlReader {
public:
explicit FileUrlReader(const std::string& file = "");
/// \brief Load URLs from the urls file.
///
/// \return A non-value on succes... | Document return value of FileUrlReader's reload() and write_config() | Document return value of FileUrlReader's reload() and write_config()
| C | mit | der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat,newsboat/newsboat,der-lyse/newsboat,newsboat/newsboat,newsboat/newsboat,newsboat/newsboat,der-lyse/newsboat,der-lyse/newsboat |
1cba0a11831e8920b4a958eee14d9785b034ad85 | include/oc_clock_util.h | include/oc_clock_util.h | /*
// Copyright (c) 2019 Intel 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 or... | /*
// Copyright (c) 2019 Intel 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 or... | Fix unknown type name 'size_t' error | Fix unknown type name 'size_t' error
freertos build fails complaining that size_t is an unknown type.
'size_t' is defined in stddef.h so is is included in the
oc_clock_util header file to resolve the error.
Change-Id: I9cfe5daa7850ca33f920be6b276609ee659584c1
Signed-off-by: George Nash <acbdc39d528a4315fe0b532d55c50a... | C | apache-2.0 | iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained,iotivity/iotivity-constrained |
0630e7a6a475b03e1ea1a04de82d495acc839373 | test/Driver/offloading-interoperability.c | test/Driver/offloading-interoperability.c | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -no-canonical-prefixes -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | ... | // REQUIRES: clang-driver
// REQUIRES: powerpc-registered-target
// REQUIRES: nvptx-registered-target
//
// Verify that CUDA device commands do not get OpenMP flags.
//
// RUN: %clang -no-canonical-prefixes -### -x cuda -target powerpc64le-linux-gnu -std=c++11 --cuda-gpu-arch=sm_35 -fopenmp=libomp %s 2>&1 \
// RUN: | ... | Revise test case due to the change from CUDA 10+. | Revise test case due to the change from CUDA 10+.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@362232 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
74337bcad01fa0cdf02b4df8bedce9c23177ccbc | linuxffbeffectfactory.h | linuxffbeffectfactory.h | #ifndef LINUXFFBEFFECTFACTORY_H
#define LINUXFFBEFFECTFACTORY_H
#include "globals.h"
#include "linuxffbconditioneffect.h"
#include "linuxffbconstanteffect.h"
#include "ffbnulleffect.h"
#include "linuxffbperiodiceffect.h"
#include "linuxffbrampeffect.h"
#include "linuxffbrumbleeffect.h"
class LinuxFFBEffectFactory
{
p... | #ifndef LINUXFFBEFFECTFACTORY_H
#define LINUXFFBEFFECTFACTORY_H
#include "globals.h"
#include "linuxffbconditioneffect.h"
#include "linuxffbconstanteffect.h"
#include "ffbnulleffect.h"
#include "linuxffbperiodiceffect.h"
#include "linuxffbrampeffect.h"
#include "linuxffbrumbleeffect.h"
class LinuxFFBEffectFactory
{
p... | Use deleted instead of private constructors | Use deleted instead of private constructors
| C | mit | MadCatX/FFBChecker,MadCatX/FFBChecker |
d2b61ae1f672f6b0c6495d6571df298047e858f2 | Tropos/Models/TRWeatherUpdate.h | Tropos/Models/TRWeatherUpdate.h | @class TRTemperature;
@interface TRWeatherUpdate : NSObject
@property (nonatomic, copy, readonly) NSString *city;
@property (nonatomic, copy, readonly) NSString *state;
@property (nonatomic, copy, readonly) NSString *conditionsDescription;
@property (nonatomic, readonly) TRTemperature *currentTemperature;
@property (... | @class CLPlacemark;
@class TRTemperature;
@interface TRWeatherUpdate : NSObject
@property (nonatomic, copy, readonly) NSString *city;
@property (nonatomic, copy, readonly) NSString *state;
@property (nonatomic, copy, readonly) NSString *conditionsDescription;
@property (nonatomic, readonly) TRTemperature *currentTemp... | Fix compiler error about undeclared type | Fix compiler error about undeclared type
| C | mit | hanpanpan200/Tropos,red3/Tropos,Ezimetzhan/Tropos,andreamazz/Tropos,red3/Tropos,hanpanpan200/Tropos,andreamazz/Tropos,thoughtbot/Tropos,tkafka/Tropos,kevinnguy/Tropos,coty/Tropos,ashfurrow/Tropos,Ezimetzhan/Tropos,tkafka/Tropos,ashfurrow/Tropos,lufeifan531/Tropos,thoughtbot/Tropos,kevinnguy/Tropos,lufeifan531/Tropos,an... |
145b28f1c040a2053547ba384e04492f2c130749 | tools/regression/pipe/pipe-reverse2.c | tools/regression/pipe/pipe-reverse2.c | /*-
* Copyright (c) 2010 Jilles Tjoelker
* 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
* notice, this list of con... | Add a test for r228510. | Add a test for r228510.
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase | |
bc11202f53d082c559ff5d0ce1693c463b4777db | VisualPractice/auxiliary.h | VisualPractice/auxiliary.h | #ifndef TE_AUXILIARY_H
#define TE_AUXILIARY_H
struct SDL_Rect;
namespace te
{
struct Vector2i;
class Rectangle;
bool checkCollision(const SDL_Rect& a, const SDL_Rect& b);
bool checkCollision(const Rectangle& a, const Rectangle& b);
SDL_Rect getIntersection(const SDL_Rect& a, const SDL_Rect& b);... | #ifndef TE_AUXILIARY_H
#define TE_AUXILIARY_H
#include <map>
struct SDL_Rect;
namespace te
{
struct Vector2i;
class Rectangle;
bool checkCollision(const SDL_Rect& a, const SDL_Rect& b);
bool checkCollision(const Rectangle& a, const Rectangle& b);
SDL_Rect getIntersection(const SDL_Rect& a, con... | Add insertOrAssign helper for maps | Add insertOrAssign helper for maps
| C | mit | evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngine,evinstk/TantechEngineOriginal,evinstk/TantechEngineOriginal,evinstk/TantechEngine |
ee1c71c7abb67a59dd754a92989c9d18758b2eea | webkit/glue/form_data.h | webkit/glue/form_data.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_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.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_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.h"
... | Add a default constructor for FormData. There are too many places that create FormDatas, and we shouldn't need to initialize user_submitted for each call site. | AutoFill: Add a default constructor for FormData. There are too many places
that create FormDatas, and we shouldn't need to initialize user_submitted for
each call site.
BUG=50423
TEST=none
Review URL: http://codereview.chromium.org/3074023
git-svn-id: http://src.chromium.org/svn/trunk/src@54641 4ff67af0-8c30-449e-8... | 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... |
b3676dfdad184acc12b768f5c82e3ec7ccecbaf5 | src/rtcmix/Instrument.h | src/rtcmix/Instrument.h | extern "C" {
#include <sys/types.h>
}
class Instrument {
public:
float start;
float dur;
int cursamp;
int chunksamps;
int endsamp;
int nsamps;
unsigned long chunkstart;
int sfile_on; // a soundfile is open (for closing later)
int fdIndex; // index into unix input file desc. table
int inputchans... | #include <sys/types.h>
class Instrument {
public:
float start;
float dur;
int cursamp;
int chunksamps;
int endsamp;
int nsamps;
unsigned long chunkstart;
int sfile_on; // a soundfile is open (for closing later)
int fdIndex; // index into unix input file desc. table
int inputchans;
double input... | Remove apparently uneccessary extern C stuff | Remove apparently uneccessary extern C stuff
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
39a1884968170f7ca948a236ebc5d510c0c45af5 | test/Analysis/complex.c | test/Analysis/complex.c | // RUN: clang -checker-simple -verify %s
#include <stdlib.h>
int f1(int * p) {
// This branch should be infeasible
// because __imag__ p is 0.
if (!p && __imag__ (intptr_t) p)
*p = 1; // no-warning
// If p != 0 then this branch is feasible; otherwise it is not.
if (__real__ (intptr_t) p)
*p = 1;... | // RUN: clang -checker-simple -verify %s
#include <stdint.h>
int f1(int * p) {
// This branch should be infeasible
// because __imag__ p is 0.
if (!p && __imag__ (intptr_t) p)
*p = 1; // no-warning
// If p != 0 then this branch is feasible; otherwise it is not.
if (__real__ (intptr_t) p)
*p = 1;... | Include stdint.h instead of stdio.h. | Include stdint.h instead of stdio.h.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@52578 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/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,apple/swift-cl... |
b0ff8cced985ea177c9dfce6c452803ffe4ed949 | src/soft/float/cmptf2.c | src/soft/float/cmptf2.c | /* This file is part of Metallic, a C++ library for WebAssembly.
*
* Copyright (C) 2017 Chen-Pang He <chen.pang.he@jdh8.org>
*
* 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... | Add compare function of quadruple precision | Add compare function of quadruple precision
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | |
effc775ef0269be2600ec6ad61f905173ecfd428 | src/util.h | src/util.h | /*
* The Homework Database
*
* Authors:
* Oliver Sharma and Joe Sventek
* {oliver, joe}@dcs.gla.ac.uk
*
* (c) 2009. All rights reserved.
*/
#ifndef OCLIB_UTIL_H
#define OCLIB_UTIL_H
#include "config.h"
#include "logdefs.h"
#include <stdio.h>
/* -------- [MESSAGE] -------- */
#ifdef NMSG
#define MSG (v... | /*
* Copyright (c) 2013, Court of the University of Glasgow
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* thi... | Add BSD 3-clause open source header | Add BSD 3-clause open source header
| C | bsd-3-clause | jsventek/Cache,jsventek/Cache,fergul/Cache,fergul/Cache,fergul/Cache,jsventek/Cache |
0d95270ddad8133f04047a15a6b8b2887a5d97a8 | src/couv.c | src/couv.c | #include "couv-private.h"
static int couv_hrtime(lua_State *L) {
lua_pushnumber(L, uv_hrtime() / 1e9);
return 1;
}
static const struct luaL_Reg functions[] = {
{ "hrtime", couv_hrtime },
{ NULL, NULL }
};
int luaopen_couv_native(lua_State *L) {
lua_createtable(L, 0, ARRAY_SIZE(functions) - 1);
couvL_setf... | #include "couv-private.h"
static int couv_hrtime(lua_State *L) {
lua_pushnumber(L, uv_hrtime());
return 1;
}
static const struct luaL_Reg functions[] = {
{ "hrtime", couv_hrtime },
{ NULL, NULL }
};
int luaopen_couv_native(lua_State *L) {
lua_createtable(L, 0, ARRAY_SIZE(functions) - 1);
couvL_setfuncs(L... | Change return value of hrtime from seconds to nano seconds. | Change return value of hrtime from seconds to nano seconds.
| C | mit | hnakamur/couv,hnakamur/couv |
01b0b70139f2378c410b089f843c61fb61583031 | Utilities/vxl/v3p/netlib/libf2c/pow_ii.c | Utilities/vxl/v3p/netlib/libf2c/pow_ii.c | #include "v3p_f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef KR_headers
integer pow_ii(ap, bp) integer *ap, *bp;
#else
integer pow_ii(integer *ap, integer *bp)
#endif
{
integer pow, x, n;
unsigned long u;
x = *ap;
n = *bp;
if (n <= 0) {
if (n == 0 || x ==... | #include "v3p_f2c.h"
#ifdef __cplusplus
extern "C" {
#endif
/* The divide by zero below appears to be perhaps on purpose to create
a numerical exception. */
#ifdef _MSC_VER
# pragma warning (disable: 4723) /* potential divide by 0 */
#endif
#ifdef KR_headers
integer pow_ii(ap, bp) integer *ap, *bp;
#else
integer ... | Disable divide by zero warning for VS6 to avoid modifying function implementation. | COMP: Disable divide by zero warning for VS6 to avoid modifying function implementation.
| C | apache-2.0 | InsightSoftwareConsortium/ITK,rhgong/itk-with-dom,LucHermitte/ITK,LucasGandel/ITK,cpatrick/ITK-RemoteIO,jcfr/ITK,paulnovo/ITK,blowekamp/ITK,eile/ITK,GEHC-Surgery/ITK,hjmjohnson/ITK,atsnyder/ITK,biotrump/ITK,richardbeare/ITK,jmerkow/ITK,blowekamp/ITK,vfonov/ITK,jcfr/ITK,malaterre/ITK,jmerkow/ITK,hjmjohnson/ITK,vfonov/IT... |
f1de1efb2a910bc36656ae4691b647ada74f6f88 | ios/OAuthManager/OAuthManager.h | ios/OAuthManager/OAuthManager.h | //
// OAuthManager.h
//
// Created by Ari Lerner on 5/31/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#if __has_include("RCTLinkingManager.h")
... | //
// OAuthManager.h
//
// Created by Ari Lerner on 5/31/16.
// Copyright © 2016 Facebook. All rights reserved.
//
#import <Foundation/Foundation.h>
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#if __has_include(<React/RCTLinkingMa... | Duplicate RCTMethodInfo while building iOS app | Fix: Duplicate RCTMethodInfo while building iOS app | C | mit | fullstackreact/react-native-oauth,fullstackreact/react-native-oauth,fullstackreact/react-native-oauth |
46d5de0f96a81050a65aa72faabdb5554c906842 | c/src/ta_data/ta_adddatasourceparam_priv.h | c/src/ta_data/ta_adddatasourceparam_priv.h | #ifndef TA_ADDDATASOURCEPARAM_PRIV_H
#define TA_ADDDATASOURCEPARAM_PRIV_H
/* The following is a private copy of the user provided
* parameters for a TA_AddDataSource call.
*
* Code is in 'ta_data_interface.c'
*/
typedef struct
{
TA_SourceId id;
TA_SourceFlag flags;
TA_Period period;
TA_String *locat... | #ifndef TA_ADDDATASOURCEPARAM_PRIV_H
#define TA_ADDDATASOURCEPARAM_PRIV_H
/* The following is a private copy of the user provided
* parameters for a TA_AddDataSource call.
*
* Code is in 'ta_data_interface.c'
*/
typedef struct
{
TA_SourceId id;
TA_SourceFlag flags;
TA_Period period;
TA_String *locat... | Add "TA_String *name" to TA_AddDataSourceParamPriv | Add "TA_String *name" to TA_AddDataSourceParamPriv
git-svn-id: 33305d871a58cfd02b407b81d5206d2a785211eb@541 159cb52c-178a-4f3c-8eb8-d0aff033d058
| C | bsd-3-clause | shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib,shamanland/ta-lib |
f20b984aa6bffeaccdd9b789fc543c93f20271f9 | protocols/groupwise/libgroupwise/tasks/getdetailstask.h | protocols/groupwise/libgroupwise/tasks/getdetailstask.h | //
// C++ Interface: getdetailstask
//
// Description:
//
//
// Author: SUSE AG <>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef GETDETAILSTASK_H
#define GETDETAILSTASK_H
#include "gwerror.h"
#include "requesttask.h"
/**
This task fetches the details for a set of user ID... | //
// C++ Interface: getdetailstask
//
// Description:
//
//
// Author: SUSE AG <>, (C) 2004
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef GETDETAILSTASK_H
#define GETDETAILSTASK_H
#include "gwerror.h"
#include "requesttask.h"
/**
This task fetches the details for a set of user ID... | Fix broken signal connection CVS_SILENT | Fix broken signal connection
CVS_SILENT
svn path=/branches/groupwise_in_anger/kdenetwork/kopete/; revision=344030
| C | lgpl-2.1 | josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete |
3313382ec12352d9c7f2458cd293ed9f901aa38f | webkit/glue/form_data.h | webkit/glue/form_data.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_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.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_FORM_DATA_H__
#define WEBKIT_GLUE_FORM_DATA_H__
#include <vector>
#include "base/string_util.h"
#include "googleurl/src/gurl.h"
... | Add a default constructor for FormData. There are too many places that create FormDatas, and we shouldn't need to initialize user_submitted for each call site. | AutoFill: Add a default constructor for FormData. There are too many places
that create FormDatas, and we shouldn't need to initialize user_submitted for
each call site.
BUG=50423
TEST=none
Review URL: http://codereview.chromium.org/3074023
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@54641 0039d316-1c4b-428... | C | bsd-3-clause | rogerwang/chromium,anirudhSK/chromium,anirudhSK/chromium,rogerwang/chromium,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,M4sse/chromium.src,axinging/chromium-crosswalk,mogoweb/chromium-crosswalk,jar... |
3d432822d5b0d14c7f661bbc8cadb287f4531528 | 3RVX/MeterWnd/Animation.h | 3RVX/MeterWnd/Animation.h | #pragma once
#include "MeterWnd.h"
class Animation {
public:
virtual bool Animate(MeterWnd *meterWnd) = 0;
virtual void Reset(MeterWnd *meterWnd) = 0;
}; | #pragma once
class MeterWnd;
class Animation {
public:
virtual bool Animate(MeterWnd *meterWnd) = 0;
virtual void Reset(MeterWnd *meterWnd) = 0;
}; | Use forward declaration for MeterWnd | Use forward declaration for MeterWnd
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX |
0e363dd05530ea6d0fe407bfbeb0eff4706301cc | tests/apps/barrier/barrier_test.c | tests/apps/barrier/barrier_test.c | /****************************************************
* This is a test that will test barriers *
****************************************************/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include "carbon_user.h"
#include "capi.h"
#include "... | /****************************************************
* This is a test that will test barriers *
****************************************************/
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <fcntl.h>
#include "carbon_user.h"
#include "capi.h"
#include "... | Update barrier test to new api. | [tests] Update barrier test to new api.
| C | mit | victorisildur/Graphite,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite-Cycle-Level,mit-carbon/Graphite,mit-carbon/Graphite-Cycle-Level,8l/Graphite,victorisildur/Graphite,8l/Graphite,nkawahara/Graphite,fhijaz/Graphite,8l/Graphite,8l/Graphite,mit-carbon/Graphite-Cycle-Level,nkawahara/Graphite,nkawahara/Graphite,mit-c... |
135c7668abe9b92fc103fda87f4f1ad255951184 | src/utils/path_helper.h | src/utils/path_helper.h | #ifndef SRC_UTILS_PATH_HELPER_H_
#define SRC_UTILS_PATH_HELPER_H_
#include <QFile>
#include <QUrl>
#include <QDir>
#include <QCoreApplication>
#include <string>
inline QString absolutePathOfRelativeUrl(QUrl url)
{
return QDir(QCoreApplication::applicationDirPath())
.absoluteFilePath(url.toLocalFile());
}
in... | #ifndef SRC_UTILS_PATH_HELPER_H_
#define SRC_UTILS_PATH_HELPER_H_
#include <QFile>
#include <QUrl>
#include <QDir>
#include <QCoreApplication>
#include <string>
#include "./project_root.h"
inline QString relativeApplicationToProjectRootPath()
{
return QDir(QCoreApplication::applicationDirPath())
.relativeFil... | Add path helpers which handle paths relative to project root. | Add path helpers which handle paths relative to project root.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
754de119506d573be99d8538554999bd24801311 | test/common.h | test/common.h | #ifndef NEOVIM_QT_TEST_COMMON
#define NEOVIM_QT_TEST_COMMON
// This is just a fix for QSignalSpy::wait
// http://stackoverflow.com/questions/22390208/google-test-mock-with-qt-signals
#define SPYWAIT(spy) (spy.count()>0||spy.wait())
#define SPYWAIT2(spy, time) (spy.count()>0||spy.wait(time))
#endif
| #ifndef NEOVIM_QT_TEST_COMMON
#define NEOVIM_QT_TEST_COMMON
// This is just a fix for QSignalSpy::wait
// http://stackoverflow.com/questions/22390208/google-test-mock-with-qt-signals
bool SPYWAIT(QSignalSpy &spy, int timeout=10000)
{
return spy.count()>0||spy.wait(timeout);
}
bool SPYWAIT2(QSignalSpy &spy, int timeo... | Fix bug in SPYWAIT helpers | Fix bug in SPYWAIT helpers
SPYWAIT was a macro that could evaluate an expression twice, which is
not what we want to do.
| C | isc | equalsraf/neovim-qt,equalsraf/neovim-qt,equalsraf/neovim-qt,equalsraf/neovim-qt |
75ec6cfb198bed76a656cf92670ff395acfcdfc1 | tests/unit/s2n_client_disabled_test.c | tests/unit/s2n_client_disabled_test.c | /*
* Copyright 2014 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | Add a regression test for disabled client mode | Add a regression test for disabled client mode
Verify that client functionality does not work without setting the
magic environment variable.
| C | apache-2.0 | bpdavidson/s2n,wcs1only/s2n,PKRoma/s2n,kench/s2n,alexeblee/s2n,barnabycolby/s2n,SomeoneWeird/s2n,raycoll/s2n,awslabs/s2n,awslabs/s2n,alexeblee/s2n,jldodds/s2n,gibson-compsci/s2n,colmmacc/s2n,raycoll/s2n,PKRoma/s2n,kedars/s2n,jldodds/s2n,colmmacc/s2n,bpdavidson/s2n,pascal-cuoq/s2n,alexeblee/s2n,bpdavidson/s2n,wcs1only/s... | |
e4ed1011d2e111381a8279d53a0c9c14f8f6a5b8 | pw_sync_threadx/public/pw_sync_threadx/interrupt_spin_lock_native.h | pw_sync_threadx/public/pw_sync_threadx/interrupt_spin_lock_native.h | // Copyright 2020 The Pigweed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | // Copyright 2020 The Pigweed 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | Adjust ISL enum to make it bss eligible | pw_sync_threadx: Adjust ISL enum to make it bss eligible
Adjusts an enum's values to ensure that a value of 0 is used in the
constexpr constructor to ensure that the object is bss eligible
instead of requiring placement in data.
Change-Id: Ied32426852661b5b534b6e4682a0e52fa28a57ae
Reviewed-on: https://pigweed-review.... | C | apache-2.0 | google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed,google/pigweed |
35a861ccd55b223642ff88305bc7255dbf5166ea | examples/test_test-setInvalid-1_test.c | examples/test_test-setInvalid-1_test.c | // Copyright 2018 Eotvos Lorand University, Budapest, Hungary
//
// 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... | Add content for test case setInvalid-1 | Add content for test case setInvalid-1
| C | apache-2.0 | P4ELTE/t4p4s,P4ELTE/t4p4s,P4ELTE/t4p4s | |
ac0393e3d447ec3a36d4967b4fd2cc9144cd7010 | src/util.h | src/util.h | #ifndef LACO_UTIL_H
#define LACO_UTIL_H
struct LacoState;
/**
* Load a line into the lua stack to be evaluated later
*
* param pointer to LacoState
*
* return -1 if there is no line input to load
*/
int laco_load_line(struct LacoState* laco);
/**
* Called after laco_load_line, this evaluated the line... | #ifndef LACO_UTIL_H
#define LACO_UTIL_H
struct LacoState;
/**
* Load a line into the lua stack to be evaluated later
*
* param pointer to LacoState
*
* return -1 if there is no line input to load
*/
int laco_load_line(struct LacoState* laco);
/**
* Called after laco_load_line, this evaluated the line... | Update documentation for pointer type change | Update documentation for pointer type change
| C | bsd-2-clause | sourrust/laco |
dba0f35781d063f35d0074a075927a866615665e | network/network-common.h | network/network-common.h | #pragma once
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <string.h>
#include <errno.h>
#define emsg(s, d) \
fprintf(stderr, "%s(%d): %s %s\n", __func__, __LINE__, s, strerror(d))
#define err(s) emsg(s, errn... | #pragma once
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h>
#include <netdb.h>
#include <string.h>
#include <errno.h>
#define emsg(s, d) \
fprintf(stderr, "%s(%d): %s %s\n", __func__, __LINE__, s, strerror(d))
#de... | Add missing include for fd_set declaration | Add missing include for fd_set declaration
| C | unlicense | hannesweisbach/ccourse |
178c839c82e248bd8c8187ad1a57d05137449eb3 | constants.h | constants.h | #ifndef CONSTANTS_INCLUDED
#define WORDLENGTH 11
#define NUMWORDS 65536
#define WORDFILE "words.txt"
#define HEX_CHUNK_LENGTH 4
#define CONSTANTS_INCLUDED
#endif
| #ifndef CONSTANTS_INCLUDED
#define WORDLENGTH 11
#define NUMWORDS 65536
#define WORDFILE "words.txt"
#define HEX_CHUNK_LENGTH 4
#define HEX_CHUNK_FORMAT "%04X"
#define CONSTANTS_INCLUDED
#endif
| Add constant formatting string for creating hexadecimal chunks. | Add constant formatting string for creating hexadecimal chunks.
| C | agpl-3.0 | ryepdx/keyphrase,ryepdx/keyphrase |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.