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 |
|---|---|---|---|---|---|---|---|---|---|
83badd5cf2c7acd266977b8698d548d0de02c5c6 | modules/electromagnetics/include/utils/ElkEnums.h | modules/electromagnetics/include/utils/ElkEnums.h | #ifndef ELKENUMS_H
#define ELKENUMS_H
/** ElkEnums contains various enumerations useful in ELK, such as real/imag component definitions in
* Kernels, BCs, etc.
*/
namespace elk
{
enum ComponentEnum
{
REAL,
IMAGINARY
};
} // namespace elk
#endif // ELKENUMS_H
| #pragma once
/** ElkEnums contains various enumerations useful in ELK, such as real/imag component definitions in
* Kernels, BCs, etc.
*/
namespace elk
{
enum ComponentEnum
{
REAL,
IMAGINARY
};
} // namespace elk
| Convert utils to pragma once | Convert utils to pragma once
refs #21085
| C | lgpl-2.1 | idaholab/moose,milljm/moose,andrsd/moose,harterj/moose,lindsayad/moose,milljm/moose,harterj/moose,laagesen/moose,laagesen/moose,idaholab/moose,idaholab/moose,lindsayad/moose,andrsd/moose,dschwen/moose,laagesen/moose,laagesen/moose,idaholab/moose,lindsayad/moose,andrsd/moose,dschwen/moose,harterj/moose,dschwen/moose,mil... |
1750cd0d3e574fa2c85b9423e58cef5ef1fb1d26 | src/tests/stdlib/strtod_test.c | src/tests/stdlib/strtod_test.c | /**
* @file
* @brief
*
* @date 26.02.13
* @author Alexander Lapshin
*/
#include <embox/test.h>
#include <stdlib.h>
EMBOX_TEST_SUITE("standard library");
TEST_CASE("Check strtod function") {
test_assert_equal(0, (int) atof("0.0"));
test_assert_equal(10, (int) (10 * atof("1.0")));
test_assert_equ... | /**
* @file
* @brief
*
* @date 26.02.13
* @author Alexander Lapshin
*/
#include <embox/test.h>
#include <stdlib.h>
EMBOX_TEST_SUITE("standard library");
TEST_CASE("Check strtod function") {
test_assert_equal(0, (int) atof("0.0"));
test_assert_equal(10, (int) (10 * atof("1.0")));
test_assert_equ... | Add test for strtod function | Add test for strtod function | C | bsd-2-clause | Kefir0192/embox,vrxfile/embox-trik,vrxfile/embox-trik,Kakadu/embox,mike2390/embox,abusalimov/embox,Kakadu/embox,gzoom13/embox,embox/embox,vrxfile/embox-trik,abusalimov/embox,Kefir0192/embox,abusalimov/embox,embox/embox,mike2390/embox,Kefir0192/embox,mike2390/embox,embox/embox,Kefir0192/embox,vrxfile/embox-trik,Kakadu/e... |
8db141ecc09613faa808a8dd6ef15b316d86210a | pair.c | pair.c | #include "pair.h"
pair new_pair( const char c, const int freq ) {
pair p;
p.c = c;
p.freq = freq;
return p;
}
int compare_freq( const void *a, const void *b ) {
const pair *ia = ( const pair * ) a;
const pair *ib = ( const pair * ) b;
return ib->freq - ia->freq;
}
| #include "pair.h"
pair new_pair( const char c, const int freq ) {
pair p;
p.c = c;
p.freq = freq;
return p;
}
int compare_freq( const void *a, const void *b ) {
const pair *ia = ( const pair * ) a;
const pair *ib = ( const pair * ) b;
return ia->freq - ib->freq;
}
| Fix character frequency map to be sorted in ascending order | Fix character frequency map to be sorted in ascending order
| C | mit | masriamir/huffman,masriamir/huffman |
5acf8d688ec5e75ebf8cdc7f29925b0d21ad90b1 | SurgSim/Math/ParticlesShape-inl.h | SurgSim/Math/ParticlesShape-inl.h | // This file is a part of the OpenSurgSim project.
// Copyright 2013, SimQuest Solutions 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/LICE... | // This file is a part of the OpenSurgSim project.
// Copyright 2013-2016, SimQuest Solutions 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... | Fix uninitialed member variable in ParticlesShape | Fix uninitialed member variable in ParticlesShape
The radius was uninitialized when using the ParticlesShape copy
constructor that takes another Vertices type.
| C | apache-2.0 | simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim,simquest/opensurgsim |
d660bde85ad87e3309082e9031b77e9e16b5752d | base/checks.h | base/checks.h | /*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | /*
* Copyright 2006 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros | Define convenient FATAL_ERROR() and FATAL_ERROR_IF() macros
R=henrike@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/16079004
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 0fa6366ed15f48b3ec227987f21f339180fb4936
| C | bsd-3-clause | sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc,sippet/webrtc |
3237da3e1b6e77b6d8505bc5941497f63968226b | Common/ErrorCodes.h | Common/ErrorCodes.h | /*
<License>
Copyright 2015 Virtium Technology
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... | /*
<License>
Copyright 2015 Virtium Technology
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 enum values: Timeout, Invalid, NoSupport to eErrorCode | Add enum values: Timeout, Invalid, NoSupport to eErrorCode
| C | apache-2.0 | tranminhtam/vtStor,tranminhtam/vtStor,tranminhtam/vtStor,tranminhtam/vtStor |
bce3c27bd9b4c8b415ec9301e33d93b5fe8f3705 | OrbitLinuxTracing/Logging.h | OrbitLinuxTracing/Logging.h | #ifndef ORBIT_LINUX_TRACING_LOGGING_H_
#define ORBIT_LINUX_TRACING_LOGGING_H_
// TODO: Move logging to OrbitBase once we have clearer plans for such module.
#include <cstdio>
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#define LOG(format, ...) fprintf(stderr,... | #ifndef ORBIT_LINUX_TRACING_LOGGING_H_
#define ORBIT_LINUX_TRACING_LOGGING_H_
// TODO: Move logging to OrbitBase once we have clearer plans for such module.
#include <cstdio>
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments"
#endif
#define LOG(form... | Disable clang diagnostics pragma on windows | Disable clang diagnostics pragma on windows
Use clang diagnostics pragma only if it project is compiled with clang.
Bug: http://b/150575491
Test: ninja
| C | bsd-2-clause | google/orbit,pierricgimmig/orbitprofiler,google/orbit,pierricgimmig/orbitprofiler,pierricgimmig/orbitprofiler,google/orbit,pierricgimmig/orbitprofiler,google/orbit |
55b09c3417ee963f59d42583e6d5e4b34fa4c856 | RecentlyUsedCache.h | RecentlyUsedCache.h | /* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <unordered_map>
#include <string>
#include <vector>
template <class T> class RingBuffer
{
private:
int cur... | /* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include <unordered_map>
#include <string>
#include <vector>
template <class T> class RingBuffer
{
private:
int cur... | Add clear() functions to cache | Add clear() functions to cache | C | mpl-2.0 | garvankeeley/https-everywhere-cpp,garvankeeley/https-everywhere-cpp |
9149bd2c3a9a443367b31bc99c55b69cb60e920b | IRKit/IRKit/IRHTTPJSONOperation.h | IRKit/IRKit/IRHTTPJSONOperation.h | //
// IRHTTPJSONOperation.h
// IRKit
//
// Created by Masakazu Ohtsuka on 2013/12/02.
//
//
#import "ISHTTPOperation.h"
@interface IRHTTPJSONOperation : ISHTTPOperation
@end
| //
// IRHTTPJSONOperation.h
// IRKit
//
// Created by Masakazu Ohtsuka on 2013/12/02.
//
//
// #import "ISHTTPOperation.h"
@import ISHTTPOperation;
@interface IRHTTPJSONOperation : ISHTTPOperation
@end
| Fix again error: include of non-modular header inside framework module | Fix again error: include of non-modular header inside framework module
| C | mit | irkit/ios-sdk |
728f279f978e5699bb5ade33abb7779cb86b2fab | BRFullTextSearch/CLuceneSearchService.h | BRFullTextSearch/CLuceneSearchService.h | //
// CLuceneSearchService.h
// BRFullTextSearch
//
// Created by Matt on 6/28/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import <Foundation/Foundation.h>
#import "BRSearchService.h"
@interface CLuceneSearchService : NSObject <BRSearchService>
//... | //
// CLuceneSearchService.h
// BRFullTextSearch
//
// Implementation of BRSearchService using CLucene. When indexing, only NSString, or
// NSArray/NSSet with NSString values, are supported as field values.
//
// Created by Matt on 6/28/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the A... | Add note on supported field value types. | Add note on supported field value types.
| C | apache-2.0 | Blue-Rocket/BRFullTextSearch,Blue-Rocket/BRFullTextSearch,Blue-Rocket/BRFullTextSearch,Blue-Rocket/BRFullTextSearch |
bd447ad74aca67de6ef3b3b203ee172f1bde19c0 | game/ufopaedia/ufopaediacategory.h | game/ufopaedia/ufopaediacategory.h | #pragma once
#include "framework/stage.h"
#include "framework/includes.h"
#include "ufopaediaentry.h"
namespace OpenApoc
{
class UfopaediaCategory : public Stage // , public std::enable_shared_from_this<UfopaediaCategory>
{
private:
Form *menuform;
StageCmd stageCmd;
void SetCatOffset(int Direction);
public... | #pragma once
#include "framework/stage.h"
#include "framework/includes.h"
#include "ufopaediaentry.h"
namespace OpenApoc
{
class UfopaediaCategory : public Stage // , public std::enable_shared_from_this<UfopaediaCategory>
{
private:
Form *menuform;
StageCmd stageCmd;
void SetCatOffset(int Direction);
public... | Fix unsigned/signed comparison in UfopaediaCategory::EventOccurred | Fix unsigned/signed comparison in UfopaediaCategory::EventOccurred
| C | mit | FranciscoDA/OpenApoc,AndO3131/OpenApoc,ShadowDancer/OpenApoc,AndO3131/OpenApoc,pmprog/OpenApoc,pmprog/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc,steveschnepp/OpenApoc,ShadowDancer/OpenApoc,AndO3131/OpenApoc,steveschnepp/OpenApoc,FranciscoDA/OpenApoc,Istrebitel/OpenApoc |
e54983694bc43a0f1a7ebb4ed0aeb78a1f2d36ab | Alc/backends/base.h | Alc/backends/base.h | #ifndef AL_BACKENDS_BASE_H
#define AL_BACKENDS_BASE_H
#include "alMain.h"
struct ALCbackendVtable;
typedef struct ALCbackend {
const struct ALCbackendVtable *vtbl;
ALCdevice *mDevice;
} ALCbackend;
struct ALCbackendVtable {
void (*const Destruct)(ALCbackend *state);
ALCenum (*const open)(ALCbacke... | Add missing header to git | Add missing header to git
| C | lgpl-2.1 | mmozeiko/OpenAL-Soft,alexxvk/openal-soft,alexxvk/openal-soft,mmozeiko/OpenAL-Soft,arkana-fts/openal-soft,franklixuefei/openal-soft,BeamNG/openal-soft,BeamNG/openal-soft,irungentoo/openal-soft-tox,Wemersive/openal-soft,arkana-fts/openal-soft,aaronmjacobs/openal-soft,irungentoo/openal-soft-tox,franklixuefei/openal-soft,W... | |
de9b060c9e15245df187379f366894c83333bc6c | src/config_static.h | src/config_static.h | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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
*
* ... | /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2010 NorthScale, 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
*
* ... | Fix event test for win32 | Fix event test for win32
Change-Id: I74011ed8cdebaf1771bbaadf4c1eba559f240448
Reviewed-on: http://review.couchbase.org/34772
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
| C | bsd-3-clause | couchbase/moxi,membase/moxi,membase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,membase/moxi,couchbase/moxi,membase/moxi |
f735e804814b28ef6f6db39aabab61a3566dc237 | sys/ia64/include/smp.h | sys/ia64/include/smp.h | /*
* $FreeBSD$
*/
#ifndef _MACHINE_SMP_H_
#define _MACHINE_SMP_H_
#ifdef _KERNEL
/*
* Interprocessor interrupts for SMP. The following values are indices
* into the IPI vector table. The SAL gives us the vector used for AP
* wake-up. Keep the IPI_AP_WAKEUP at index 0.
*/
#define IPI_AP_WAKEUP 0
#define IPI_AST... | /*
* $FreeBSD$
*/
#ifndef _MACHINE_SMP_H_
#define _MACHINE_SMP_H_
#ifdef _KERNEL
/*
* Interprocessor interrupts for SMP. The following values are indices
* into the IPI vector table. The SAL gives us the vector used for AP
* wake-up. Keep the IPI_AP_WAKEUP at index 0.
*/
#define IPI_AP_WAKEUP 0
#define IPI_AST... | Add an IPI used for testing proper operation of delivering IPIs. | Add an IPI used for testing proper operation of delivering IPIs.
| 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 |
8ff86df042ea13514cc3682895b06a1106c29d36 | test/tsan/thread_exit.c | test/tsan/thread_exit.c | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
// Crashes on powerpc64be
// XFAIL: target-is-powerpc64be
#include "test.h"
int var;
void *Thread(void *x) {
pthread_exit(&var);
return 0;
}
int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
pthread_join(t, &ret... | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
// Crashes on powerpc64be
// UNSUPPORTED: powerpc64
#include "test.h"
int var;
void *Thread(void *x) {
pthread_exit(&var);
return 0;
}
int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
pthread_join(t, &retval);
... | Remove debug logging and disable test on ppc64be | [tsan] Remove debug logging and disable test on ppc64be
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@353624 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
e949bf64e01c9a2de41eb3a4479db0e58cd4caa6 | src/allocator.c | src/allocator.c | /* See LICENSE file for copyright and license details. */
#include "internals.h"
void
libzahl_realloc(z_t a, size_t need)
{
#if defined(__clang__) /* https://llvm.org/bugs/show_bug.cgi?id=26930 */
volatile size_t j;
#else
# define j i
#endif
size_t i, x;
zahl_char_t *new;
/* Find n such that n is a minimal powe... | /* See LICENSE file for copyright and license details. */
#include "internals.h"
void
libzahl_realloc(z_t a, size_t need)
{
size_t i, x;
zahl_char_t *new;
/* Find n such that n is a minimal power of 2 ≥ need. */
if (likely((need & (~need + 1)) != need)) {
need |= need >> 1;
need |= need >> 2;
need |= need ... | Fix so that no workaround is required. | Fix so that no workaround is required.
Thanks to Alexis Megas.
Signed-off-by: Mattias Andrée <3d72f033b30d63e7ff5f0b71398e9c45b66386a1@kth.se>
| C | isc | maandree/libzahl,maandree/libzahl,maandree/libzahl |
a8f8e28d73a49458195a41a4f2983665f8b84e59 | config/config_exporter.h | config/config_exporter.h | #ifndef CONFIG_EXPORTER_H
#define CONFIG_EXPORTER_H
class ConfigClass;
class ConfigObject;
class ConfigValue;
class ConfigExporter {
protected:
ConfigExporter(void)
{ }
~ConfigExporter()
{ }
public:
virtual void field(const ConfigValue *, const std::string&) = 0;
virtual void object(const ConfigClass *, cons... | #ifndef CONFIG_EXPORTER_H
#define CONFIG_EXPORTER_H
class ConfigClass;
class ConfigObject;
class ConfigValue;
class ConfigExporter {
protected:
ConfigExporter(void)
{ }
virtual ~ConfigExporter()
{ }
public:
virtual void field(const ConfigValue *, const std::string&) = 0;
virtual void object(const ConfigClass... | Fix per Noris Datum's E-Mail. | Fix per Noris Datum's E-Mail.
git-svn-id: 9e2532540f1574e817ce42f20b9d0fb64899e451@783 4068ffdb-0463-0410-8185-8cc71e3bd399
| C | bsd-2-clause | splbio/wanproxy,splbio/wanproxy,diegows/wanproxy,diegows/wanproxy,splbio/wanproxy,diegows/wanproxy |
ec7ec4ecf7fb388c8bc6d074acb65e7d5605ff05 | runtime/platform/floating_point.h | runtime/platform/floating_point.h | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_PLATFORM_FLOATING_POINT_H_
#define RUNTIME_PLATFORM_FLOATING_POINT_H_
#include <cmath>... | // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#ifndef RUNTIME_PLATFORM_FLOATING_POINT_H_
#define RUNTIME_PLATFORM_FLOATING_POINT_H_
#include <math.h... | Fix import to fix Flutter build | [gardening] Fix import to fix Flutter build
How cmath is included changes whether the symbols are in the std:: namespace or not. This changes it back to how we have it everywhere in the codebase: math.h
Follow up of https://dart-review.googlesource.com/c/sdk/+/115707/
Change-Id: I383c1e9de0434d1367dfdb6302a8fb6db2c3... | C | bsd-3-clause | dart-lang/sdk,dart-lang/sdk,dart-archive/dart-sdk,dart-lang/sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-archive/dart-sdk,dartino/dart-sdk,dartino/dart-sdk,dart-lang/sdk,dart-lang/sdk,dart-ar... |
170bd62c1002a9f22595af023f0b0f823809c522 | include/D_AnimationSheet.h | include/D_AnimationSheet.h | /*
Copyright 2015 Ahnaf Siddiqui
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | /*
Copyright 2015 Ahnaf Siddiqui
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to i... | Set default nullptr value on animation sheet texture | Set default nullptr value on animation sheet texture
| C | apache-2.0 | luky1971/Diamond,polymergames/Diamond,polymergames/Diamond,polymergames/Diamond,luky1971/Diamond,polymergames/Diamond,luky1971/Diamond,luky1971/Diamond,polymergames/Diamond,luky1971/Diamond,luky1971/Diamond,polymergames/Diamond |
284c177fdc84906dcecc2f4770ac979377255a45 | atmega32a/ddr_pin_port_1/main.c | atmega32a/ddr_pin_port_1/main.c | /*
* @file main.c
* @brief Set PORTC I/O pins using data direction register,
* read input from pins and set high PORTC.0 2 and 3
* if input pin PORTC.6 is high.
* @date 06 Jun 2016 10:28 PM
*/
#include <avr/io.h>
#include <util/delay.h>
#define __DELAY_BACKWARD_COMPATIBLE__
#ifndef ... | /*
* @file main.c
* @brief Set PORTC I/O pins using data direction register,
* read input from pins and set high PORTC.0 2 and 3
* if input pin PORTC.6 is high.
* @date 06 Jun 2016 10:28 PM
*/
#define __DELAY_BACKWARD_COMPATIBLE__
#ifndef F_CPU
#define F_CPU 16000000UL /* 16 MHz cl... | Define clock frequency before includes | Define clock frequency before includes
| C | lgpl-2.1 | spinlockirqsave/avr |
898b1920a67048c1f38bb99777f4cff06380a59a | arch/ppc/platforms/4xx/virtex.h | arch/ppc/platforms/4xx/virtex.h | /*
* arch/ppc/platforms/4xx/virtex.h
*
* Include file that defines the Xilinx Virtex-II Pro processor
*
* Author: MontaVista Software, Inc.
* source@mvista.com
*
* 2002-2004 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the GNU General Public License version 2. This program... | /*
* arch/ppc/platforms/4xx/virtex.h
*
* Include file that defines the Xilinx Virtex-II Pro processor
*
* Author: MontaVista Software, Inc.
* source@mvista.com
*
* 2002-2004 (c) MontaVista Software, Inc. This file is licensed under the
* terms of the GNU General Public License version 2. This program... | Fix compile error for ML300/403 | [PATCH] Fix compile error for ML300/403
Needed due to changes in ppc_sys.c.
Signed-off-by: Grant Likely <9069e6f5a2b566e2674a0ba1e2bf39c12c195fad@secretlab.ca>
Signed-off-by: Paul Mackerras <19a0ba370c443ba08d20b5061586430ab449ee8c@samba.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kana... |
ce5a951499fe9591054c8fa07df5f5fcf61dec59 | driver/retimer/anx7491.h | driver/retimer/anx7491.h | /* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* ANX7491:10G USB 3.2 Re-timer (1-Port)
*/
#ifndef __CROS_EC_USB_RETIMER_ANX7491_H
#define __CROS_EC_USB_RETIMER_ANX7491_H
/* I2C interface addre... | Add header for ANX7491 retimer | guybrush: Add header for ANX7491 retimer
Adding a header to hold register values for ANX7491. ANX7491 should work
without configuration. More registers can be added as needed for
tuning.
BUG=b:184592168
TEST=Build
BRANCH=None
Signed-off-by: Rob Barnes <3ced0940a2329ce70499686f01d3d60685ec66ed@google.com>
Change-Id: ... | C | bsd-3-clause | coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec,coreboot/chrome-ec | |
355c5444d721ed0ed3c4fb5ca8286c579c79db69 | ios/ReactNativeExceptionHandler.h | ios/ReactNativeExceptionHandler.h |
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif
#import <UIKit/UIKit.h>
#include <libkern/OSAtomic.h>
#include <execinfo.h>
@interface ReactNativeExceptionHandler : NSObject <RCTBridgeModule>
+ (void) replaceNativeExceptionHandlerBlock:(void (^)(NSEx... |
#if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#else
#import "RCTBridgeModule.h"
#endif
#import <UIKit/UIKit.h>
#include <libkern/OSAtomic.h>
#include <execinfo.h>
@interface ReactNativeExceptionHandler : NSObject <RCTBridgeModule>
+ (void) replaceNativeExceptionHandlerBlock:(void (^... | Change import priority of RCTBridgeModule | Change import priority of RCTBridgeModule
This appears to be the accepted fix for this issue: https://github.com/master-atul/react-native-exception-handler/issues/46 per https://github.com/facebook/react-native/issues/15775#issuecomment-326930316 and other posts in the same thread. | C | mit | master-atul/react-native-exception-handler,master-atul/react-native-exception-handler,master-atul/react-native-exception-handler |
0b77e6dcf6955ffd783830104c12563a650d3e25 | include/utils/string_to_enum.h | include/utils/string_to_enum.h | // The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version ... | // The libMesh Finite Element Library.
// Copyright (C) 2002-2019 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version ... | Include new header in old header for backwards compatibility. | Include new header in old header for backwards compatibility.
| C | lgpl-2.1 | libMesh/libmesh,capitalaslash/libmesh,libMesh/libmesh,capitalaslash/libmesh,roystgnr/libmesh,BalticPinguin/libmesh,capitalaslash/libmesh,capitalaslash/libmesh,roystgnr/libmesh,dschwen/libmesh,capitalaslash/libmesh,libMesh/libmesh,libMesh/libmesh,BalticPinguin/libmesh,jwpeterson/libmesh,dschwen/libmesh,jwpeterson/libmes... |
e5f5221b5ee04eaffdd76c196c32b82ca4b9a332 | lib/Target/X86/X86TargetMachine.h | lib/Target/X86/X86TargetMachine.h | //===-- X86TargetMachine.h - Define TargetMachine for the X86 ---*- C++ -*-===//
//
// This file declares the X86 specific subclass of TargetMachine.
//
//===----------------------------------------------------------------------===//
#ifndef X86TARGETMACHINE_H
#define X86TARGETMACHINE_H
#include "llvm/Target/TargetM... | //===-- X86TargetMachine.h - Define TargetMachine for the X86 ---*- C++ -*-===//
//
// This file declares the X86 specific subclass of TargetMachine.
//
//===----------------------------------------------------------------------===//
#ifndef X86TARGETMACHINE_H
#define X86TARGETMACHINE_H
#include "llvm/Target/TargetM... | Implement the new optional getRegisterInfo | Implement the new optional getRegisterInfo
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@4437 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llv... |
287d81cca3ddb6386c8fb4712a46d7e7cb01e7bd | cc1/tests/test003.c | cc1/tests/test003.c | /*
name: TEST003
description: Select function to call inside ternary operator
output:
*/
int
foo(void)
{
return 42;
}
int
bar(void)
{
return 24;
}
int
main(void)
{
return (1 ? foo : bar)();
}
| Add test for ternary operator | Add test for ternary operator
The test is currently failing.
| C | isc | k0gaMSX/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc,8l/scc,k0gaMSX/kcc,k0gaMSX/scc,8l/scc | |
e0589df6d57310a9e86c86c006657fef5c801b03 | library/src/main/cpp/borders.h | library/src/main/cpp/borders.h | #ifndef BORDERS_H
#define BORDERS_H
#include <cstdlib>
#include <cmath>
/** A line will be considered as having content if 0.25% of it is filled. */
const float filledRatioLimit = 0.0025;
/** When the threshold is closer to 1, less content will be cropped. **/
#define THRESHOLD 0.65
const uint16_t redThreshold_RGB_... | #ifndef BORDERS_H
#define BORDERS_H
#include <cstdlib>
#include <cmath>
/** A line will be considered as having content if 0.25% of it is filled. */
const float filledRatioLimit = 0.0025;
/** When the threshold is closer to 1, less content will be cropped. **/
#define THRESHOLD 0.75
const uint16_t redThreshold_RGB_... | Add a bit more threshold | Add a bit more threshold
| C | apache-2.0 | inorichi/tachimage,inorichi/tachimage,inorichi/tachimage |
be7f4b5b23cbdaedac70f2743b1cc0d4f517ef8d | cc1/tests/test015.c | cc1/tests/test015.c | /*
name: TEST015
description: Stress namespace mechanism
output:
test015.c:21: warning: 's1' defined but not used
S7 s2
(
M8 I s
)
S4 s1
(
M5 I s
M9 S7 s2
)
S2 s
(
M10 S4 s1
)
G11 S2 s
F1
G12 F1 main
{
-
j L2
A3 S2 s2
L4
yI G11 M10 .S4 M5 .I G11 M10 .S4 M9 .S7 M8 .I +I
L2
yI A3 M10 .S4 M9 .S7 M8 .I
}
*/
#line 1
st... | Add test of namespaces and structs/unions | Add test of namespaces and structs/unions
| C | mit | k0gaMSX/kcc,8l/scc,k0gaMSX/scc,k0gaMSX/scc,8l/scc,8l/scc,k0gaMSX/scc,k0gaMSX/kcc | |
032e91ad8a436a424a8364f70f5fea0ab5f6d23d | firmware/src/control_loop-inl.h | firmware/src/control_loop-inl.h | #ifndef CONTROL_LOOP_INL_H
#define CONTROL_LOOP_INL_H
#include "board.h"
#include "bitband.h"
namespace hardware {
inline
bool ControlLoop::hw_button_enabled()
{
return MEM_ADDR(BITBAND(reinterpret_cast<uint32_t>(&(GPIOF->IDR)),
GPIOF_HW_SWITCH_PIN));
}
}
#endif
| #ifndef CONTROL_LOOP_INL_H
#define CONTROL_LOOP_INL_H
#include "board.h"
#include "bitband.h"
namespace hardware {
inline
bool ControlLoop::hw_button_enabled() const
{
return MEM_ADDR(BITBAND(reinterpret_cast<uint32_t>(&(GPIOF->IDR)),
GPIOF_HW_SWITCH_PIN));
}
}
#endif
| Add const to hw_button_enabled() definition. | Add const to hw_button_enabled() definition.
| C | bsd-2-clause | hazelnusse/robot.bicycle,hazelnusse/robot.bicycle,hazelnusse/robot.bicycle,hazelnusse/robot.bicycle,hazelnusse/robot.bicycle |
ac20dc4cdb3accf492b23c75bcfedfad80bc5c3d | formats/format.h | formats/format.h | #ifndef FORMAT_H
#define FORMAT_H
#include <cstring> // memmove
class Format
{
public:
Format(void *p, size_t s = 0) : fp((char *)p), size(s) {};
size_t Leanify(size_t size_leanified = 0)
{
if (size_leanified)
{
memmove(fp - size_leanified, fp, size);
fp -= siz... | #ifndef FORMAT_H
#define FORMAT_H
#include <cstddef>
#include <cstring> // memmove
class Format
{
public:
Format(void *p, size_t s = 0) : fp((char *)p), size(s) {};
size_t Leanify(size_t size_leanified = 0)
{
if (size_leanified)
{
memmove(fp - size_leanified, fp, size);
... | Add missing cstddef header for size_t | Add missing cstddef header for size_t
| C | mit | yyjdelete/Leanify,JayXon/Leanify,JayXon/Leanify,yyjdelete/Leanify |
be0220d554aab34ff409c25cdb2820f1c2ee95fd | vp8/decoder/opencl/vp8_decode_cl.c | vp8/decoder/opencl/vp8_decode_cl.c | #include "vpx_ports/config.h"
#include "opencl/vp8_opencl.h"
#include "opencl/vp8_decode_cl.h"
#include <stdio.h>
extern int cl_init_dequant();
extern int cl_destroy_dequant();
int cl_decode_destroy(){
int err;
err = cl_destroy_dequant();
return CL_SUCCESS;
}
int cl_decode_init()
{
int err;
... | #include "vpx_ports/config.h"
#include "../../common/opencl/vp8_opencl.h"
#include "vp8_decode_cl.h"
#include <stdio.h>
extern int cl_init_dequant();
extern int cl_destroy_dequant();
int cl_decode_destroy(){
int err;
err = cl_destroy_dequant();
return CL_SUCCESS;
}
int cl_decode_init()
{
int ... | Remove some debug output from decode initialization. | Remove some debug output from decode initialization.
| C | bsd-3-clause | awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl,awatry/libvpx.opencl |
f7a22deb1c15605ae68b34ace8326fcf548427ca | cmd/smyrna/topviewdata.h | cmd/smyrna/topviewdata.h | /* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (c) 1994-2004 AT&T Corp... | /* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (c) 1994-2004 AT&T Corp... | Integrate topfish and sfdp into main tree, using GTS for triangulation; remove duplicated code | Integrate topfish and sfdp into main tree, using GTS for triangulation;
remove duplicated code
| C | epl-1.0 | kbrock/graphviz,BMJHayward/graphviz,kbrock/graphviz,BMJHayward/graphviz,jho1965us/graphviz,pixelglow/graphviz,jho1965us/graphviz,ellson/graphviz,pixelglow/graphviz,tkelman/graphviz,ellson/graphviz,kbrock/graphviz,jho1965us/graphviz,MjAbuz/graphviz,tkelman/graphviz,MjAbuz/graphviz,MjAbuz/graphviz,pixelglow/graphviz,kbro... |
d65991d5e2241ee3c1ce67cbaf49cbef3c53b291 | src/tool/hpcrun/unwind/generic-libunwind/unw-datatypes-specific.h | src/tool/hpcrun/unwind/generic-libunwind/unw-datatypes-specific.h | //
// This software was produced with support in part from the Defense Advanced
// Research Projects Agency (DARPA) through AFRL Contract FA8650-09-C-1915.
// Nothing in this work should be construed as reflecting the official policy or
// position of the Defense Department, the United States government, or
// Rice Un... | //
// This software was produced with support in part from the Defense Advanced
// Research Projects Agency (DARPA) through AFRL Contract FA8650-09-C-1915.
// Nothing in this work should be construed as reflecting the official policy or
// position of the Defense Department, the United States government, or
// Rice Un... | Drop another unused libunw cursor member. | Drop another unused libunw cursor member.
| C | bsd-3-clause | HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit,HPCToolkit/hpctoolkit |
207fc4291d4660ec2ef2deef959cd8ae0f0edbb0 | tests/regression/36-octapron/41-threadenter-no-locals.c | tests/regression/36-octapron/41-threadenter-no-locals.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
void *t_fun(void *arg) {
int x; // threadenter shouldn't pass value for x here
assert(x == 3); // UNKNOWN!
return NULL;
}
int main(void) {
int x = 3;
pthread_t id;
pthread_create(&id, NULL, t_fun, NULL);
return 0;... | Add octApron test where threadenter doesn't remove locals | Add octApron test where threadenter doesn't remove locals
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
784c65c9589bf4f6f9794a85c35de361012d52f2 | include/mqueue.h | include/mqueue.h | /*-
* Copyright (c) 2005 David Xu <davidxu@freebsd.org>
* 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, t... | Bring in POSIX message queue header file. | Bring in POSIX message queue header file.
| 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 | |
e2a17d9b50335e11f6246086ee3ae909c2cc0fd5 | parse.c | parse.c | #include <stdint.h>
#include <stdio.h>
#include "compiler.h"
#include "cJSON.h"
#include "parse.h"
int parse_message(const char *msg, uint32_t length)
{
cJSON *root;
const char *end_parse;
root = cJSON_ParseWithOpts(msg, &end_parse, 0);
if (unlikely(root == NULL)) {
fprintf(stderr, "Could not parse JSON!\n");
... | #include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "compiler.h"
#include "cJSON.h"
#include "parse.h"
int parse_message(const char *msg, uint32_t length)
{
cJSON *root;
const char *end_parse;
root = cJSON_ParseWithOpts(msg, &end_parse, 0);
if (unlikely(root == NULL)) {
fprintf(stderr, "Could n... | Add trampoline code to call function withn respect to the incoming JSON method. | Add trampoline code to call function withn respect to the incoming JSON method.
| C | mit | gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet |
340f3074b49de089e7e8cf9495fd54f67b7f9b8a | third_party/libwebp/webp/config.h | third_party/libwebp/webp/config.h | /*
* Copyright 2015 Google, Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// FIXME: Workaround for skbug.com/4037
// Some of our test machines have an older version of clang that does not
// have
// __builtin_bswap16
//
// But libwebp expects th... | /*
* Copyright 2015 Google, Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
// FIXME: Workaround for skbug.com/4037
// Some of our test machines have an older version of clang that does not
// have
// __builtin_bswap16
//
// But libwebp expects th... | Fix webp compile warnings on windows | Fix webp compile warnings on windows
This fix was landed with:
https://codereview.chromium.org/1280073002/
The above CL was reverted due to an unrelated bug in libwebp.
The above CL contains multiple components, and I think that
reverting this part of the change was unintentional.
BUG=skia:
Review URL: https://cod... | C | bsd-3-clause | ominux/skia,aosp-mirror/platform_external_skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,rubenvb/skia,qrealka/skia-hc,Hikari-no-Tenshi/android_external_skia,tmpvar/skia.cc,HalCanary/skia-hc,HalCanary/skia-hc,rubenvb/skia,aosp-mirror/... |
304b71823aac62adcbf938c23b823f7d0fd369f1 | samples/Qt/basic/mythread.h | samples/Qt/basic/mythread.h | #ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include "easylogging++.h"
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This ... | #ifndef MYTHREAD_H
#define MYTHREAD_H
#include <QThread>
#include "easylogging++.h"
class MyThread : public QThread {
Q_OBJECT
public:
MyThread(int id) : threadId(id) {}
private:
int threadId;
protected:
void run() {
LINFO <<"Writing from a thread " << threadId;
LVERBOSE(2) << "This ... | Remove logger ids loop from sample | Remove logger ids loop from sample
| C | mit | spqr33/easyloggingpp,lisong521/easyloggingpp,blankme/easyloggingpp,lisong521/easyloggingpp,blankme/easyloggingpp,arvidsson/easyloggingpp,simonhang/easyloggingpp,chenmusun/easyloggingpp,utiasASRL/easyloggingpp,dreal-deps/easyloggingpp,blankme/easyloggingpp,lisong521/easyloggingpp,chenmusun/easyloggingpp,simonhang/easylo... |
58864e0f25384641aef7bd616c6c5b5470656e46 | oi_os.h | oi_os.h | #ifndef OI_OS
#define OI_OS 1
#if defined(_WIN32) || defined(__WIN32__)
# define OI_WIN
# ifdef _MSC_VER
# define OI_MSVC
# else
# define OI_GCC
# endif
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
# endif
# include <windows.h>
#elif defined(linux) || defined(__linux)
# define OI... | #ifndef OI_OS
#define OI_OS 1
#if defined(__GNUC__)
# define OI_GCC
#elif defined(_MSC_VER)
# define OI_MSVC
#else
# warning oi does not recognize compiler
# define OI_UNKNOWN_CC
#endif
#if defined(_WIN32) || defined(__WIN32__)
# define OI_WIN
#
# ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
... | Set up actual compiler detections. Only supports gcc and msvc at the moment | Set up actual compiler detections. Only supports gcc and msvc at the moment
| C | mit | geky/oi |
cb03d892cccf64b647986e07d0773fe0a8d1da29 | iobuf/ibuf_refill.c | iobuf/ibuf_refill.c | #include <errno.h>
#include <unistd.h>
#include "iobuf.h"
static const char errmsg[] = "ibuf_refill called with non-empty buffer!\n";
int ibuf_refill(ibuf* in)
{
iobuf* io;
unsigned oldlen;
unsigned rd;
io = &(in->io);
if (io->flags) return 0;
if (io->bufstart != 0) {
if (io->bufstart < io->buflen) {... | #include <errno.h>
#include <unistd.h>
#include "iobuf.h"
static const char errmsg[] = "ibuf_refill called with non-empty buffer!\n";
int ibuf_refill(ibuf* in)
{
iobuf* io;
unsigned oldlen;
unsigned rd;
io = &(in->io);
if (io->flags) return 0;
if (io->bufstart != 0) {
if (io->bufstart < io->buflen) {... | Call _exit instead of exit on assertion failure. | Call _exit instead of exit on assertion failure.
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
ada00c025b0cc76e014407bcb7f04e5537b47abd | tools/examples/svnserve-sgid.c | tools/examples/svnserve-sgid.c | /*
* Wrapper to run the svnserve process setgid.
* The idea is to avoid the problem that some interpreters like bash
* invoked by svnserve in hook scripts will reset the effective gid to
* the real gid, nuking the effect of an ordinary setgid svnserve binary.
* Sadly, to set the real gid portably, you need to be r... | Add Perry Metzger's wrapper to run the svnserve process setgid, since this can be very helpful to svn+ssh users. Quoting from the comments: | Add Perry Metzger's wrapper to run the svnserve process setgid,
since this can be very helpful to svn+ssh users. Quoting from the
comments:
* The idea is to avoid the problem that some interpreters like bash
* invoked by svnserve in hook scripts will reset the effective gid to
* the real gid, nuking the effect of ... | C | apache-2.0 | YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,wbond/subversion | |
2d8090ba343ab90bdd7292bc47beb619c95a01d8 | src/Application/WebSocketServerModule/WebSocketServerModuleApi.h | src/Application/WebSocketServerModule/WebSocketServerModuleApi.h | // For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#if defined (_WINDOWS)
#if defined(WEBSOCKET_MODULE_EXPORTS)
#define WEBSOCKET_SERVER_MODULE_API __declspec(dllexport)
#else
#define WEBSOCKET_SERVER_MODULE_API __declspec(dllimport)
#endif
#else
#define WEBSOCKET_MODULE_API
#endi... | // For conditions of distribution and use, see copyright notice in LICENSE
#pragma once
#if defined (_WINDOWS)
#if defined(WEBSOCKET_MODULE_EXPORTS)
#define WEBSOCKET_SERVER_MODULE_API __declspec(dllexport)
#else
#define WEBSOCKET_SERVER_MODULE_API __declspec(dllimport)
#endif
#else
#define WEBSOCKET_SERVER_MODULE_AP... | Correct macro spelling to fix Linux build | Correct macro spelling to fix Linux build
| C | apache-2.0 | pharos3d/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,pharos3d/tundra,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,AlphaStaxLLC/tundra,BogusCurry/tundra,realXtend/tundra,realXtend/tundra,BogusCurry/tundra,realXtend/tundra,BogusCurry/tundra,pharos3d/tundra,realXtend/tundra,realXtend/tund... |
a55f6156402a709ea15338d5cf587b4f172c67ff | libc/mbstr/mbschr.c | libc/mbstr/mbschr.c | #include <mbstr.h>
#include <stdlib.h>
#include "../intern.h"
#ifdef __cplusplus
extern "C" {
#endif
char* __mbschr (char* str, mbchar_t c)
{
if (c < 0x80) {
return __strchr(str, c);
}
else {
char buf[sizeof(mbchar_t)+1];
*((mbchar_t*)buf) = c;
buf[__min(sizeof(mbchar_t),MB... | #include <mbstr.h>
#include <stdlib.h>
#include "../intern.h"
#ifdef __cplusplus
extern "C" {
#endif
char* __mbschr (char* str, mbchar_t c)
{
if (c < 0x80) {
return __strchr(str, c);
}
else {
char buf[sizeof(mbchar_t)+1];
*((mbchar_t*)buf) = c;
buf[__min(sizeof(mbchar_t),(s... | Fix compilation error, cast was missing | Fix compilation error, cast was missing
| C | mit | kristapsk/reclib,kristapsk/resclib,kristapsk/resclib,kristapsk/reclib |
a46108cfddd5e859264290574a47491bbcd6f5a3 | firmware/echo_isr.c | firmware/echo_isr.c | // Takes in a character at a time and sends it right back out,
// displaying the ASCII value on the LEDs.
// Uses interrupt system instead of a blocking read.
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "USART.h"
// Single character for serial TX/RX and "byte received" flag
volatil... | Use ISR for serial loopback instead of a blocking read | Use ISR for serial loopback instead of a blocking read
| C | mit | andrewadare/avr-breadboarding,andrewadare/avr-breadboarding | |
f9f56ea22cfd81dad7c66f78e8a5b5e3965ec16e | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.31f;
| #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.32f;
| Increment version number to 1.32 | Increment version number to 1.32
| C | apache-2.0 | ariccio/UIforETW,MikeMarcin/UIforETW,google/UIforETW,google/UIforETW,google/UIforETW,mwinterb/UIforETW,ariccio/UIforETW,ariccio/UIforETW,MikeMarcin/UIforETW,ariccio/UIforETW,mwinterb/UIforETW,mwinterb/UIforETW,MikeMarcin/UIforETW,google/UIforETW |
f8d56baf158ded41a738afb5f0be745b753d86c6 | tests/regression/21-casts/04-neg-to-unsigned-invariant.c | tests/regression/21-casts/04-neg-to-unsigned-invariant.c | // PARAM: --enable ana.int.def_exc --enable ana.int.interval
// ldv-benchmarks: u__linux-concurrency_safety__drivers---net---ethernet---amd---pcnet32.ko.c
#include <assert.h>
int main() {
int debug_value = -1;
if ((unsigned int)debug_value > 31U)
assert(1); // reachable
else
assert(1); // NOWARN (unreac... | Add unsound negative int to unsigned int branch invariant test | Add unsound negative int to unsigned int branch invariant test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
25ceb6c0fbaa0623bd2f195fd97a33955d2099e5 | common/c_cpp/src/cpp/wombat/Lock.h | common/c_cpp/src/cpp/wombat/Lock.h | /*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the... | /*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the... | Build error when openmama patch for VS solution files caused Enterprise build fail. | Build error when openmama patch for VS solution files caused Enterprise build fail.
Modification to Lock.h to correct build error when openmama patch for
Microsoft Visual Studio solution file updates caused Enterprise build to
fail.
Signed-off-by: A Ambrose <adf778e8f047b26f3e0544674b3bfe8e328348f7@nyx.com>
| C | lgpl-2.1 | dpauls/OpenMAMA,fquinner/OpenMAMA,philippreston/OpenMAMA,cloudsmith-io/openmama,philippreston/OpenMAMA,philippreston/OpenMAMA,MattMulhern/OpenMAMA,kuangtu/OpenMAMA,philippreston/OpenMAMA,vulcanft/openmama,cloudsmith-io/openmama,kuangtu/OpenMAMA,fquinner/OpenMAMA,vulcanft/openmama,philippreston/OpenMAMA,fquinner/OpenMAM... |
a6392ad0dff652abebd47b5c2eb0dfc08a44c31c | content/public/browser/devtools_frontend_window.h | content/public/browser/devtools_frontend_window.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#pragma once
class TabContents;... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#pragma once
class TabContents;... | Add missing CONTENT_EXPORT to fix Linux shared build after r112415 | Add missing CONTENT_EXPORT to fix Linux shared build after r112415
BUG=104625
TEST=None
TBR=pfeldman
Review URL: http://codereview.chromium.org/8763022
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@112420 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,adobe/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,adobe/chromium,adobe/chrom... |
ac903d665741e8cc28268da5804c891aea60c681 | bluetooth/bdroid_buildcfg.h | bluetooth/bdroid_buildcfg.h | /*
* Copyright 2013 The Android Open Source Project
*
* 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 applica... | /*
* Copyright 2013 The Android Open Source Project
*
* 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 applica... | Revert "bluetooth: Our kernel is missing CLOCK_BOOTTIME_ALARM (alarmtimer)" | Revert "bluetooth: Our kernel is missing CLOCK_BOOTTIME_ALARM (alarmtimer)"
This reverts commit 69cbe06c3c482cf78fa71b7e89c470ab83626523.
Change-Id: I34af7e9f564dd88654e105ea36d4a83d15d9acad
| C | apache-2.0 | maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead,maruos/android_device_lge_hammerhead |
03ad95c6c78b235b5ef946d0e4f80f161a0a35bd | includes/consolelogger.h | includes/consolelogger.h | // Copyright 2016 Pierre Fourgeaud
#ifndef PF_CONSOLELOGGER_H_
#define PF_CONSOLELOGGER_H_
#include <iostream>
#include <string>
#include "./iloglistener.h"
#include "./Logger.h"
/**
* @brief The FileLogger class
*
* Logger that will write the ouput to the console (cerr or cout depending on log level)
*/
class C... | // Copyright 2016 Pierre Fourgeaud
#ifndef PF_CONSOLELOGGER_H_
#define PF_CONSOLELOGGER_H_
#include <iostream>
#include <string>
#include "./iloglistener.h"
#include "./logger.h"
/**
* @brief The FileLogger class
*
* Logger that will write the ouput to the console (cerr or cout depending on log level)
*/
class C... | Fix typo in include file | Fix typo in include file
| C | mit | pierrefourgeaud/SimpleLogger |
9271608c9af71eec13691a5da6458c99791e833c | tests/regression/01-cpa/03-loops.c | tests/regression/01-cpa/03-loops.c | #include<stdio.h>
#include<assert.h>
int main () {
int i,j,k;
i = k = 0; j = 7;
while (i < 10) {
i++;
j = 7;
k = 5;
}
assert(i == 10); // UNKNOWN!
assert(k); // UNKNOWN!
// k is currenlty 0 \sqcup 5, if we unfolded the loops it would be 5
assert(j==7);
return 0;
}
| #include<stdio.h>
#include<assert.h>
int main () {
int i,j,k;
i = k = 0; j = 7;
while (i < 10) {
i++;
j = 7;
k = 5;
}
// assert(i == 10); // UNKNOWN!
// Removed this assertion as it is specific to flat ints and fails as soon as intervals or octagons correctly determine this
assert(k); // UN... | Remove assert specific to flat ints that will fail when using more poerful domain | Remove assert specific to flat ints that will fail when using more poerful domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
c9038d2b29279027889021bc952c34165e36e306 | tests/wocky-xmpp-connection-test.c | tests/wocky-xmpp-connection-test.c | #include <stdio.h>
#include <unistd.h>
#include <glib.h>
#include <wocky/wocky-xmpp-connection.h>
#include <wocky/wocky-transport.h>
#include "test-transport.h"
#include <check.h>
START_TEST (test_instantiation)
{
WockyXmppConnection *connection;
TestTransport *transport;
g_type_init();
transport = test_tr... | Add a testcase for WockyXmppConnection and check its istantiation | Add a testcase for WockyXmppConnection and check its istantiation
20070613140235-f974e-38a23919dc403a05ad6852760c6b13bd9ad2e6f5.gz
| C | lgpl-2.1 | noonien-d/wocky,noonien-d/wocky,noonien-d/wocky,freedesktop-unofficial-mirror/wocky,freedesktop-unofficial-mirror/wocky,freedesktop-unofficial-mirror/wocky | |
05a7836593e5b1100dba989a5b0045fed5a38dac | io/pipe_pair_simple.h | io/pipe_pair_simple.h | #ifndef IO_PIPE_PAIR_SIMPLE_H
#define IO_PIPE_PAIR_SIMPLE_H
#include <io/pipe_simple.h>
#include <io/pipe_simple_wrapper.h>
class PipePairSimple : public PipePair {
PipeSimpleWrapper<PipePairSimple> *incoming_pipe_;
PipeSimpleWrapper<PipePairSimple> *outgoing_pipe_;
protected:
PipePairSimple(void)
: incoming_pipe... | Add PipePairSimple which allows a user to simply construct a single object which implements a PipePair. | Add PipePairSimple which allows a user to simply construct a single object which
implements a PipePair.
| C | bsd-2-clause | wanproxy/wanproxy,wanproxy/wanproxy,wanproxy/wanproxy | |
ad32eb7c376d6264b742f7686fffca48c06eb2c5 | Source/Main/XcodeEditor.h | Source/Main/XcodeEditor.h | ////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
///... | ////////////////////////////////////////////////////////////////////////////////
//
// JASPER BLUES
// Copyright 2012 Jasper Blues
// All Rights Reserved.
//
// NOTICE: Jasper Blues permits you to use, modify, and distribute this file
// in accordance with the terms of the license agreement accompanying it.
//
///... | Remove item from umbrella header. | Remove item from umbrella header.
| C | apache-2.0 | cezheng/XcodeEditor,service2media/XcodeEditor,appsquickly/XcodeEditor,khanhtbh/XcodeEditor,cezheng/XcodeEditor,khanhtbh/XcodeEditor,JoelGerboreLaser/XcodeEditor,appsquickly/XcodeEditor,appsquickly/XcodeEditor,iosdevzone/XcodeEditor,JoelGerboreLaser/XcodeEditor,andyvand/XcodeEditor |
9d7ae5ba4e163fcc593f75d8f2c65ff09cec3d9a | libaacs/src/util/macro.h | libaacs/src/util/macro.h |
#ifndef MACRO_H_
#define MACRO_H_
#include <stdio.h>
#define HEX_PRINT(X,Y) { int zz; for(zz = 0; zz < Y; zz++) fprintf(stderr, "%02X", X[zz]); fprintf(stderr, "\n"); }
#define MKINT_BE16(X) ( (X)[0] << 8 | (X)[1] )
#define MKINT_BE24(X) ( (X)[0] << 16 | (X)[1] << 8 | (X)[2] )
#define MKINT_BE32(X) ( (X)[0] << 24 | ... | Include required header in source | Include required header in source
| C | lgpl-2.1 | rraptorr/libaacs,rraptorr/libaacs,mwgoldsmith/aacs,ShiftMediaProject/libaacs,mwgoldsmith/aacs,zxlooong/libaacs,zxlooong/libaacs,ShiftMediaProject/libaacs | |
0fda9e25449c322478d38e3b6ce6f3613d66fa68 | ETA-SDK/API/Model/ETA_ModelObject.h | ETA-SDK/API/Model/ETA_ModelObject.h | //
// ETA_ModelObject.h
// ETA-SDK
//
// Created by Laurie Hufford on 7/11/13.
// Copyright (c) 2013 eTilbudsavis. All rights reserved.
//
#import "Mantle.h"
#import "NSValueTransformer+ETAPredefinedValueTransformers.h"
@interface ETA_ModelObject : MTLModel <MTLJSONSerializing>
// setting either uuid or ern wil... | //
// ETA_ModelObject.h
// ETA-SDK
//
// Created by Laurie Hufford on 7/11/13.
// Copyright (c) 2013 eTilbudsavis. All rights reserved.
//
#import "Mantle.h"
#import "NSValueTransformer+ETAPredefinedValueTransformers.h"
@interface ETA_ModelObject : MTLModel <MTLJSONSerializing>
// setting either uuid or ern wil... | Add nullability info to root ModelObject | Add nullability info to root ModelObject
| C | mit | shopgun/shopgun-ios-sdk,shopgun/shopgun-ios-sdk,eTilbudsavis/native-ios-eta-sdk |
dd9603957944e85b3caa6c31fb4bf5cf39af59c5 | bibdesk/BDSKOAIGroupServer.h | bibdesk/BDSKOAIGroupServer.h | //
// BDSKOAIGroupServer.h
// Bibdesk
//
// Created by Christiaan Hofman on 1/1/07.
// Copyright 2007 __MyCompanyName__. All rights reserved.
//
#import <Cocoa/Cocoa.h>
#import "BDSKSearchGroup.h"
@class BDSKServerInfo;
@interface BDSKOAIGroupServer : NSObject <BDSKSearchGroupServer>
{
BDSKSearchGroup *group... | Add new header file. (or: xcode is stupid) | Add new header file. (or: xcode is stupid)
git-svn-id: cb3fc60f0f557b927b8032d8a94e869b6f9f230b@336 0fceea05-a30d-0410-8a8b-80ef821fb0a1
| C | bsd-3-clause | jasongrout/skim,camillobruni/skim,camillobruni/skim,camillobruni/skim,jasongrout/skim,camillobruni/skim | |
a776e39416cc4580b5a1688c3e44258888955996 | drivers/scsi/qla2xxx/qla_version.h | drivers/scsi/qla2xxx/qla_version.h | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2014 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.07.00.16-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 7
#define QLA_DRIVER_PATCH_VER 0
#defi... | /*
* QLogic Fibre Channel HBA Driver
* Copyright (c) 2003-2014 QLogic Corporation
*
* See LICENSE.qla2xxx for copyright and licensing details.
*/
/*
* Driver version
*/
#define QLA2XXX_VERSION "8.07.00.18-k"
#define QLA_DRIVER_MAJOR_VER 8
#define QLA_DRIVER_MINOR_VER 7
#define QLA_DRIVER_PATCH_VER 0
#defi... | Update driver version to 8.07.00.18-k | qla2xxx: Update driver version to 8.07.00.18-k
Signed-off-by: Giridhar Malavali <799b6491fce2c7a80b5fedcf9a728560cc9eb954@qlogic.com>
Signed-off-by: Himanshu Madhani <a1599b7f51f3890722b2125e7c07879c181c9399@qlogic.com>
Reviewed-by: Hannes Reinecke <b0d1e9e4a4e27620745ff49be9000da3174a4cc6@suse.de>
Signed-off-by: Jame... | C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
6db46e880792b7133aa6f55c2b90eaa430312ae2 | REMarkerClustererExample/REMarkerClustererExample/DemoViewController.h | REMarkerClustererExample/REMarkerClustererExample/DemoViewController.h | //
// DemoViewController.h
// REMarkerClustererExample
//
// Created by Roman Efimov on 7/9/12.
// Copyright (c) 2012 Roman Efimov. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "REMarkerClusterer.h"
@interface DemoViewController : UIViewController <MKMapViewDelegate>
@property (strong, readonly, nonat... | //
// DemoViewController.h
// REMarkerClustererExample
//
// Created by Roman Efimov on 7/9/12.
// Copyright (c) 2012 Roman Efimov. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "REMarkerClusterer.h"
@interface DemoViewController : UIViewController <REMarkerClusterDelegate>
@property (strong, readonly,... | Rename delegate from MKMapViewDelegate to REMarkerClusterDelegate | Rename delegate from MKMapViewDelegate to REMarkerClusterDelegate
| C | mit | romaonthego/REMarkerClusterer,sophallyyi/REMarkerClusterer,takeshineshiro/REMarkerClusterer |
c0fdd6bb7488ab9ea1ba2ae326e7e42072d6dc33 | sdk/iOS/src/WindowsAzureMobileServices.h | sdk/iOS/src/WindowsAzureMobileServices.h | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
#ifndef WindowsAzureMobileServices_WindowsAzureMobileServices_h
#define WindowsAzureMobileServices... | // ----------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ----------------------------------------------------------------------------
#ifndef WindowsAzureMobileServices_WindowsAzureMobileServices_h
#define WindowsAzureMobileServices... | Update iOS SDK Minor Version | Update iOS SDK Minor Version | C | apache-2.0 | cmatskas/azure-mobile-services,jeremy50dj/azure-mobile-services,phvannor/azure-mobile-services,daemun/azure-mobile-services,mauricionr/azure-mobile-services,intellitour/azure-mobile-services,Azure/azure-mobile-services,gb92/azure-mobile-services,marianosz/azure-mobile-services,Azure/azure-mobile-services,Redth/azure-mo... |
97c8ae2e5624cdd8576a9acc9b70a9cb7cb47927 | tests/strings_test.c | tests/strings_test.c | #include <stdio.h>
#include <stdlib.h> /* for free */
#include <string.h> /* for strcmp */
#include <strings.h>
#include <platform/cbassert.h>
static void test_asprintf(void) {
char *result = 0;
(void)asprintf(&result, "test 1");
cb_assert(strcmp(result, "test 1") == 0);
free(result);
(void)aspri... | #include <stdio.h>
#include <stdlib.h> /* for free */
#include <string.h> /* for strcmp */
#include <strings.h>
#include <platform/cbassert.h>
static void test_asprintf(void) {
char *result = 0;
cb_assert(asprintf(&result, "test 1") > 0);
cb_assert(strcmp(result, "test 1") == 0);
free(result);
cb... | Check for return value for asprintf | Check for return value for asprintf
Change-Id: Ib163468aac1a5e52cef28c59b55be2287dc4ba43
Reviewed-on: http://review.couchbase.org/43023
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
Tested-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
| C | apache-2.0 | vmx/platform,vmx/platform |
078841c923075f545c8933b7e957e3f8d5ca26e2 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 8
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 9
#define CLIENT_VERSION_BUILD ... | Mark Devcoin release version 0.8.9.0. | Mark Devcoin release version 0.8.9.0.
| C | mit | coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin |
656ff74c7d951712cba7d032c2d0a4d5119aa952 | src/lib/mac/mac.h | src/lib/mac/mac.h | /*
* Base class for message authentiction codes
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_MESSAGE_AUTH_CODE_BASE_H__
#define BOTAN_MESSAGE_AUTH_CODE_BASE_H__
#include <botan/buf_comp.h>
#include <botan/sym_algo.h>
#include <botan/scan_name.h>
... | /*
* Base class for message authentiction codes
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_MESSAGE_AUTH_CODE_BASE_H__
#define BOTAN_MESSAGE_AUTH_CODE_BASE_H__
#include <botan/buf_comp.h>
#include <botan/sym_algo.h>
#include <botan/scan_name.h>
... | Remove duplicate definition of MessageAuthenticationCode::name() | Remove duplicate definition of MessageAuthenticationCode::name()
The original definition is in the base class SymmetricAlgorithm.
| C | bsd-2-clause | randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecuri... |
87abaffc4ee3c5a694657821e55d66f7520e66cd | src/shake.h | src/shake.h | #ifndef _SHAKE_H_
#define _SHAKE_H_
#include "shake_private.h"
struct shakeDev;
/* libShake functions */
int shakeInit();
void shakeQuit();
void shakeListDevices();
int shakeNumOfDevices();
shakeDev *shakeOpen(unsigned int id);
void shakeClose(shakeDev *dev);
int shakeQuery(shakeDev *dev);
void shakeSetGain(shakeDev... | #ifndef _SHAKE_H_
#define _SHAKE_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "shake_private.h"
struct shakeDev;
/* libShake functions */
int shakeInit();
void shakeQuit();
void shakeListDevices();
int shakeNumOfDevices();
shakeDev *shakeOpen(unsigned int id);
void shakeClose(shakeDev *dev);
int shakeQuery(sh... | Use C calling convention when header is included by C++ code | Use C calling convention when header is included by C++ code
| C | mit | zear/libShake,ShadowApex/libShake,ShadowApex/libShake,zear/libShake |
1fe9573e58a5a3a49edb9dc051532ac98d7d36f4 | ADAL.c | ADAL.c | #! /usr/bin/tcc -run
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct slot
{
ssize_t size;
char *row;
} slot;
slot line;
slot *text;
char *ptr;
int main(void) {
ptr = "this is my story";
line.row = ptr;
line.size = strlen(ptr);
text = malloc(10*siz... | #! /usr/bin/tcc -run
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct slot
{
ssize_t size;
char *row;
} slot;
slot line;
slot *text;
slot *old;
slot *new;
char *ptr;
int main(void) {
text = malloc(10*sizeof(slot));
old = malloc(10*sizeof(slot));
... | Add replacement functionality following initialization segment | Add replacement functionality following initialization segment
| C | bsd-2-clause | eingaeph/pip.imbue.hood,eingaeph/pip.imbue.hood |
8666971da6aad40e2a668c4ce10fc44368f53702 | src/chemkit/point3.h | src/chemkit/point3.h | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the ... | /******************************************************************************
**
** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com>
**
** This file is part of chemkit. For more information see
** <http://www.chemkit.org>.
**
** chemkit is free software: you can redistribute it and/or modify
** it under the ... | Add documentation to Point3 typedefs | Add documentation to Point3 typedefs
This adds documentation for the Point3f and Point3d
typedefs.
| C | bsd-3-clause | kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit,kylelutz/chemkit |
b654d10d3289c45b1fb702378bd4b96afb11c998 | libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c | libpthread/nptl/sysdeps/unix/sysv/linux/or1k/createthread.c | /* Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Licen... | /* Copyright (C) 2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the Licen... | Fix tls value passed during clone | or1k: Fix tls value passed during clone
From or1k-glibc from blueCmd, his commit "Fix TLS, removed too much in
rebase".
Signed-off-by: Stafford Horne <799c89d5f62c643afb21c1a3622a07adef444e16@gmail.com>
| C | lgpl-2.1 | wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng |
fa36679e7d19880c54a222262e6cbd8a46b845cc | src/chicken-o-clock.c | src/chicken-o-clock.c | #include <pebble.h>
static void init(){
}
static void deinit(){
}
int main(void){
init();
app_event_loop();
deinit();
}
| #include <pebble.h>
static Window *main_window;
static void main_window_load(){
}
static void main_window_unload(){
}
static void init(){
main_window = window_create();
window_set_window_handlers(main_window, (WindowHandlers) {
.load = main_window_load,
.unload = main_window_unload
});
windo... | Create an initial blank window | Create an initial blank window
| C | mit | dvberkel/chicken-o-clock,dvberkel/chicken-o-clock |
4a3104b785f113778fd8d1dcade763b67235c4c9 | src/host/os_rmdir.c | src/host/os_rmdir.c | /**
* \file os_rmdir.c
* \brief Remove a subdirectory.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include <stdlib.h>
#include "premake.h"
int os_rmdir(lua_State* L)
{
int z;
const char* path = luaL_checkstring(L, 1);
#if PLATFORM_WINDOWS
z = RemoveDirectory(path);
#else
z... | /**
* \file os_rmdir.c
* \brief Remove a subdirectory.
* \author Copyright (c) 2002-2013 Jason Perkins and the Premake project
*/
#include <stdlib.h>
#include "premake.h"
int os_rmdir(lua_State* L)
{
int z;
const char* path = luaL_checkstring(L, 1);
#if PLATFORM_WINDOWS
z = RemoveDirectory(path);
#else
z... | Fix error result handling in os.rmdir() | Fix error result handling in os.rmdir()
| C | bsd-3-clause | Lusito/premake,annulen/premake,Lusito/premake,warrenseine/premake,Lusito/premake,annulen/premake,warrenseine/premake,warrenseine/premake,Lusito/premake,annulen/premake,annulen/premake |
bbda514efc294e9c1235f7dbd3f8aa246c711f87 | server/src/apache/analyzer/detail/session_length.h | server/src/apache/analyzer/detail/session_length.h | /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
#define SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH... | /*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#ifndef SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
#define SRC_APACHE_ANALYZER_DETAIL_SESSION_LENGTH_H
namespace apache
{
namespace analyzer
{
namespace detail
{
constexpr int SESSION_LENGTH... | Change session length to 60s | Change session length to 60s
| C | mit | chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/slas,chyla/slas,chyla/pat-lms,chyla/pat-lms,chyla/slas,chyla/pat-lms,chyla/slas,chyla/slas |
8a397aa96cb515c02e73e69fb30ffbe546f366d0 | main.c | main.c | #include <stdio.h>
#include <ncurses.h>
int main() {
// inicializa o ncurses
initscr();
// printa para o buffer do ncurses, note que nao foi "renderizado" ainda;
printw("Hello World!");
// manda para o console, "print real"
refresh();
// espera pelo input to usuario
getch();
// ... | Add hello world ncurses to augusto/c/trabalhos | Add hello world ncurses to augusto/c/trabalhos
| C | mit | MtMercer/ncurses-space-invaders | |
31c08cd7045eef9e07b47b95c5aad262a91c6a2d | test/testquazip.h | test/testquazip.h | #ifndef QUAZIP_TEST_QUAZIP_H
#define QUAZIP_TEST_QUAZIP_H
#include <QObject>
class TestQuaZip: public QObject {
Q_OBJECT
private slots:
void getFileList_data();
void getFileList();
void getZip();
};
#endif // QUAZIP_TEST_QUAZIP_H
| #ifndef QUAZIP_TEST_QUAZIP_H
#define QUAZIP_TEST_QUAZIP_H
#include <QObject>
class TestQuaZip: public QObject {
Q_OBJECT
private slots:
void getFileList_data();
void getFileList();
};
#endif // QUAZIP_TEST_QUAZIP_H
| Remove getZip() which got there by mistake | Remove getZip() which got there by mistake
git-svn-id: edbdc1cf2cca1c18f0f99391097ecab15c7e2ce6@113 099aeb50-083e-4d2c-9476-aff1b66fa4c7
| C | lgpl-2.1 | xhochy/quazip-qt5port,xhochy/quazip-qt5port,xhochy/quazip-qt5port |
be4ff378b65a1d61189adac411994f4db2819b4d | src/qt-ui/basicui.h | src/qt-ui/basicui.h |
#ifndef BASICUI_H_
#define BASICUI_H_
#include <QMainWindow>
class MainWidget;
class Workspace;
class BasicUi: public QMainWindow {
Q_OBJECT
public:
BasicUi(QWidget *parent = 0);
void setWorkspace(Workspace *);
private:
MainWidget *mainWidget;
// QGridLayout *layout;
... |
#ifndef BASICUI_H_
#define BASICUI_H_
#include <QMainWindow>
class MainWidget;
class Workspace;
class BasicUi: public QMainWindow {
Q_OBJECT
public:
BasicUi(QWidget *parent = 0);
void setWorkspace(Workspace *);
~BasicUi(){
if(NULL != mainWidget)
delete m... | Delete main widget in BasicUi | Delete main widget in BasicUi | C | apache-2.0 | jbruggem/jingles-impro,jbruggem/jingles-impro,jbruggem/jingles-impro |
622bfc8421b63660e392f8876470e71171fedb67 | test/Driver/hello.c | test/Driver/hello.c | // RUN: clang-driver -ccc-echo -o %t %s &> %t.log &&
// Make sure we used clang.
// RUN: grep 'clang" .*hello.c' %t.log &&
// RUN: %t > %t.out &&
// RUN: grep "I'm a little driver, short and stout." %t.out
#include <stdio.h>
int main() {
printf("I'm a little driver, short and stout.");
return 0;
}
| Add simple test case to make sure driver can generate executables. - Hopefully Chris can pardon one executable test. | Add simple test case to make sure driver can generate executables.
- Hopefully Chris can pardon one executable test.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@67251 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
fdedf259d183e523e0f4837cc6a8dd3b4e97a815 | core/metautils/src/complexLinkdef.h | core/metautils/src/complexLinkdef.h | #include <complex>
#ifndef __hpux
using namespace std;
#endif
#pragma create TClass std::complex<int>+;
#pragma create TClass std::complex<long>+;
#pragma create TClass std::complex<float>+;
#pragma create TClass std::complex<double>+;
#ifdef G__NATIVELONGLONG
#pragma create TClass std::complex<long long>+;
// #pragm... | Add missing new files for revision 32092 | Add missing new files for revision 32092
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@32093 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | Y--/root,evgeny-boger/root,Dr15Jones/root,gganis/root,cxx-hep/root-cern,Y--/root,smarinac/root,kirbyherm/root-r-tools,mkret2/root,georgtroska/root,tc3t/qoot,sirinath/root,root-mirror/root,Duraznos/root,pspe/root,davidlt/root,beniz/root,Dr15Jones/root,simonpf/root,sbinet/cxx-root,omazapa/root,thomaskeck/root,gganis/root... | |
429c93cfa5745a9a37cb453a5fabb3eabf0a99cb | lab1/digenv.c | lab1/digenv.c | #include "pipe.h"
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
/* Command argument vectors. */
char *more_argv[] = { "more", NULL };
char *less_argv[] = { "less", NULL };
char *pager_argv[] = { getenv("PAGER"), NULL };
char *sort_argv[] = { "sort", NUL... | #include "pipe.h"
#include <stdlib.h>
#include <unistd.h>
int main(int argc, char *argv[]) {
char *pager_env = getenv("PAGER");
/* Construct pipeline. */
/* file argv err next fallback */
command_t more = {"more", (char *[]){"more", NU... | Initialize argv vectors using compound literals. | Initialize argv vectors using compound literals.
| C | mit | estan/ID2200,estan/ID2200 |
44b70a9a88bb6a7ef70b4b6a7d011013c5930a0a | src/tests/test_see.c | src/tests/test_see.c | /* Make sure assert is not disabled */
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <stdio.h>
#include <assert.h>
#include "see.h"
#include "fen.h"
void test_see()
{
chess_state_t s;
int result;
int pos_from = D3;
int pos_to = E5;
int type = KNIGHT;
int capture_type = PAWN;
int special = MO... | /* Make sure assert is not disabled */
#ifdef NDEBUG
#undef NDEBUG
#endif
#include <stdio.h>
#include <assert.h>
#include "see.h"
#include "fen.h"
void test_see(const char *fen, short expected_result)
{
chess_state_t s;
int result;
int pos_from = D3;
int pos_to = E5;
int type = KNIGHT;
int cap... | Prepare for more SEE tests | Prepare for more SEE tests
| C | mit | gustafullberg/drosophila,gustafullberg/drosophila,gustafullberg/drosophila |
e14f51a4248fe3c4f031a011b483947bfb2f2f5d | libtock/tock.c | libtock/tock.c | #include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include "tock.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
void yield_for(bool *cond) {
while(!*cond) {
yield();
}
}
void yield() {
asm volatile("push {lr}\nsvc 0\npop {pc}" ::: "memory", "r0");
}
int subscribe(u... | #include <inttypes.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include "tock.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
void yield_for(bool *cond) {
while(!*cond) {
yield();
}
}
void yield() {
asm volatile("push {lr}\nsvc 0\npop {pc}" ::: "memory", "r0");
}
int subscribe(u... | Resolve 'control reaches end of non-void function' | Resolve 'control reaches end of non-void function'
Following http://stackoverflow.com/questions/15927583/
| C | apache-2.0 | tock/libtock-c,tock/libtock-c,tock/libtock-c |
aec97a07b46188ed7ec61600c6068045a18fe142 | content/browser/geofencing/geofencing_dispatcher_host.h | content/browser/geofencing/geofencing_dispatcher_host.h | // Copyright 2014 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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
#include "content/publi... | // Copyright 2014 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 CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
#define CONTENT_BROWSER_GEOFENCING_GEOFENCING_DISPATCHER_HOST_H_
#include "content/publi... | Replace OVERRIDE and FINAL with override and final in content/browser/geofencing/[a-s]* | Replace OVERRIDE and FINAL with override and final in content/browser/geofencing/[a-s]*
BUG=417463
Review URL: https://codereview.chromium.org/631873002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#298382}
| C | bsd-3-clause | PeterWangIntel/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,markYoungH/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,markYoungH/chromium.src,dushu1203/chromium.src,markYoungH/chromium.src,ltilve/chromium,krieger-od/nwjs_chromium.src,krieger-od/nwjs_chr... |
41d9897e9b98ca7a699a241fe35fee66a4c488da | tests/test_hsm.c | tests/test_hsm.c | #include "mbb/test.h"
#include "mbb/hsm.h"
#include "mbb/debug.h"
MHSM_DEFINE_STATE(state_a, NULL);
MHSM_DEFINE_STATE(state_a1, &state_a);
MHSM_DEFINE_STATE(state_a11, &state_a1);
mhsm_state_t *state_a_fun(mhsm_hsm_t *hsm, mhsm_event_t event)
{
switch (event.id) {
case MHSM_EVENT_INITIAL:
return &state_a1;
}
... | Add first stub for HSM unit test | Add first stub for HSM unit test
| C | mit | jawebada/libmbb,jawebada/libmbb,jawebada/libmbb,jawebada/libmbb | |
04eb41980945926927e8dd22b420182ab7a47bc2 | src/interfaces/libpq/pqsignal.c | src/interfaces/libpq/pqsignal.c | /*-------------------------------------------------------------------------
*
* pqsignal.c
* reliable BSD-style signal(2) routine stolen from RWW who stole it
* from Stevens...
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University o... | /*-------------------------------------------------------------------------
*
* pqsignal.c
* reliable BSD-style signal(2) routine stolen from RWW who stole it
* from Stevens...
*
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University o... | Fix inclusion order, per Andreas. | Fix inclusion order, per Andreas.
| C | apache-2.0 | ahachete/gpdb,lintzc/gpdb,janebeckman/gpdb,zaksoup/gpdb,CraigHarris/gpdb,Quikling/gpdb,kaknikhil/gpdb,kmjungersen/PostgresXL,jmcatamney/gpdb,rubikloud/gpdb,rvs/gpdb,ovr/postgres-xl,greenplum-db/gpdb,kaknikhil/gpdb,randomtask1155/gpdb,randomtask1155/gpdb,techdragon/Postgres-XL,rvs/gpdb,Quikling/gpdb,50wu/gpdb,ahachete/g... |
d51affbc2c78f4370fd73ba3d83b8f129289c9e8 | PerchRTC/PHCredentials.h | PerchRTC/PHCredentials.h | //
// PHCredentials.h
// PerchRTC
//
// Created by Sam Symons on 2015-05-08.
// Copyright (c) 2015 Perch Communications. All rights reserved.
//
#ifndef PerchRTC_PHCredentials_h
#define PerchRTC_PHCredentials_h
#error Please enter your XirSys credentials (http://xirsys.com/pricing/)
static NSString *kPHConnectio... | //
// PHCredentials.h
// PerchRTC
//
// Created by Sam Symons on 2015-05-08.
// Copyright (c) 2015 Perch Communications. All rights reserved.
//
#ifndef PerchRTC_PHCredentials_h
#define PerchRTC_PHCredentials_h
#error Please enter your XirSys credentials (http://xirsys.com/pricing/)
static NSString *kPHConnectio... | Use the XirSys defaults for room and application. | Use the XirSys defaults for room and application.
| C | mit | imton/perchrtc,duk42111/perchrtc,duk42111/perchrtc,perchco/perchrtc,imton/perchrtc,perchco/perchrtc,ikonst/perchrtc,ikonst/perchrtc,duk42111/perchrtc,ikonst/perchrtc,ikonst/perchrtc,perchco/perchrtc,duk42111/perchrtc,imton/perchrtc |
71a069a6ebdaea8a2881b5f2837a0e75dcd74351 | test/Index/missing_vfs.c | test/Index/missing_vfs.c | // RUN: c-index-test -test-load-source local %s -ivfsoverlay %t/does-not-exist.yaml &> %t.out
// RUN: FileCheck -check-prefix=STDERR %s < %t.out
// STDERR: fatal error: virtual filesystem overlay file '{{.*}}' not found
// RUN: FileCheck %s < %t.out
// CHECK: missing_vfs.c:[[@LINE+1]]:6: FunctionDecl=foo:[[@LINE+1]]:6
... | // RUN: c-index-test -test-load-source local %s -ivfsoverlay %t/does-not-exist.yaml > %t.stdout 2> %t.stderr
// RUN: FileCheck -check-prefix=STDERR %s < %t.stderr
// STDERR: fatal error: virtual filesystem overlay file '{{.*}}' not found
// RUN: FileCheck %s < %t.stdout
// CHECK: missing_vfs.c:[[@LINE+1]]:6: FunctionDe... | Make test more robust by writing stdout/stderr to different files. | Make test more robust by writing stdout/stderr to different files.
Our internal build bots were failing this test randomly as the stderr
output was emitted to the file in the middle of the stdout output
line that the test was checking.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@359512 91177308-0d34-0410-b5e... | C | apache-2.0 | 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,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
661cc5ce55d7eaed4d6b268ffb3be8a19c02fde3 | pypersonality.c | pypersonality.c | #include <Python.h>
#include <sys/personality.h>
int Cget_personality(void) {
unsigned long int persona = 0xffffffff;
return personality(persona);
}
static PyObject* get_personality(PyObject* self) {
return Py_BuildValue("i", Cget_personality);
}
int Cset_personality(void) {
unsigned long int persona = READ_IMPL... | #include <Python.h>
#include <sys/personality.h>
#include <stdint.h>
int Cget_personality(void) {
unsigned long persona = 0xffffffffUL;
return personality(persona);
}
static PyObject* get_personality(PyObject* self) {
return Py_BuildValue("i", Cget_personality());
}
int Cset_personality(unsigned long persona) {
... | Call the c functions instead of passing a pointer | Call the c functions instead of passing a pointer
| C | mit | PatrickLaban/PythonPersonality,PatrickLaban/PythonPersonality |
5082189fd353102daac5fa40779f91e8974ba8f8 | pg_query.h | pg_query.h | #ifndef PG_QUERY_H
#define PG_QUERY_H
typedef struct {
char* message; // exception message
char* filename; // source of exception (e.g. parse.l)
int lineno; // source of exception (e.g. 104)
int cursorpos; // char in query at which exception occurred
} PgQueryError;
typedef struct {
char* parse_tree;
char* st... | #ifndef PG_QUERY_H
#define PG_QUERY_H
typedef struct {
char* message; // exception message
char* filename; // source of exception (e.g. parse.l)
int lineno; // source of exception (e.g. 104)
int cursorpos; // char in query at which exception occurred
} PgQueryError;
typedef struct {
char* parse_tree;
char* st... | Make header file compatible with C++ | Make header file compatible with C++
| C | bsd-3-clause | lfittl/libpg_query,lfittl/libpg_query,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,ranxian/peloton-frontend,lfittl/libpg_query,ranxian/peloton-frontend |
a2fff26fae03cd46562d8d146dde1d6ebd7d9f8d | t/test_helper.h | t/test_helper.h |
#ifndef TEST_HELPER_C
#define TEST_HELPER_C (1)
#include "MMDB.h"
#define MMDB_DEFAULT_DATABASE "/usr/local/share/GeoIP/GeoIP2-City.mmdb"
typedef union {
struct in_addr v4;
struct in6_addr v6;
} in_addrX;
char *get_test_db_fname(void);
void ip_to_num(MMDB_s * mmdb, char *ipstr, in_addrX * dest_ipnum);
int ... |
#ifndef TEST_HELPER_C
#define TEST_HELPER_C (1)
#include "MMDB.h"
typedef union {
struct in_addr v4;
struct in6_addr v6;
} in_addrX;
char *get_test_db_fname(void);
void ip_to_num(MMDB_s * mmdb, char *ipstr, in_addrX * dest_ipnum);
int dbl_cmp(double a, double b);
#endif
| Remove superfluous default db definition | Remove superfluous default db definition
| C | apache-2.0 | maxmind/libmaxminddb,maxmind/libmaxminddb,maxmind/libmaxminddb |
457459df300b2c65084cac758b8dc28538da8c06 | include/cpr/timeout.h | include/cpr/timeout.h | #ifndef CPR_TIMEOUT_H
#define CPR_TIMEOUT_H
#include <cstdint>
#include <chrono>
namespace cpr {
class Timeout {
public:
Timeout(const std::chrono::milliseconds& timeout) : ms(timeout) {}
Timeout(const std::int32_t& timeout) : ms(timeout) {}
std::chrono::milliseconds ms;
};
} // namespace cpr
#endif... | #ifndef CPR_TIMEOUT_H
#define CPR_TIMEOUT_H
#include <cstdint>
#include <chrono>
#include <limits>
#include <stdexcept>
namespace cpr {
class Timeout {
public:
Timeout(const std::chrono::milliseconds& duration) : ms{duration} {
if(ms.count() > std::numeric_limits<long>::max()) {
throw std::... | Check for under/overflow in Timeout constructor. Codestyle fixes. | Check for under/overflow in Timeout constructor. Codestyle fixes.
| C | mit | msuvajac/cpr,msuvajac/cpr,whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,whoshuu/cpr |
1ceae27eddb5fd399e58930974638cb1bd367955 | mcrouter/lib/StatsReply.h | mcrouter/lib/StatsReply.h | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once... | /*
* Copyright (c) 2016, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once... | Fix printf format, remove unused variables | Fix printf format, remove unused variables
Summary: title
Differential Revision: D3188505
fb-gh-sync-id: 7f544319c247b8607e058d2ae0c02c272e3c5fe1
fbshipit-source-id: 7f544319c247b8607e058d2ae0c02c272e3c5fe1
| C | mit | yqzhang/mcrouter,facebook/mcrouter,facebook/mcrouter,yqzhang/mcrouter,yqzhang/mcrouter,facebook/mcrouter,yqzhang/mcrouter,facebook/mcrouter |
30f290dac339d621972043be70ae520de128a0d5 | test/FrontendC/2005-07-20-SqrtNoErrno.c | test/FrontendC/2005-07-20-SqrtNoErrno.c | // RUN: %llvmgcc %s -S -o - -fno-math-errno | grep llvm.sqrt
#include <math.h>
float foo(float X) {
// Check that this compiles to llvm.sqrt when errno is ignored.
return sqrtf(X);
}
| // RUN: %llvmgcc %s -S -o - -fno-math-errno | grep llvm.sqrt
// llvm.sqrt has undefined behavior on negative inputs, so it is
// inappropriate to translate C/C++ sqrt to this.
// XFAIL: *
#include <math.h>
float foo(float X) {
// Check that this compiles to llvm.sqrt when errno is ignored.
return sqrtf(X);
}
| Disable test; what it's testing for is wrong. | Disable test; what it's testing for is wrong.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@82658 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/l... |
1c2d7aaafef7a07c2b088142a57666ff51e5d5c5 | src/aravistest.c | src/aravistest.c | #include <arv.h>
#include <arvgvinterface.h>
int
main (int argc, char **argv)
{
ArvInterface *interface;
ArvDevice *device;
char buffer[1024];
g_type_init ();
interface = arv_gv_interface_get_instance ();
device = arv_interface_get_first_device (interface);
if (device != NULL) {
arv_device_read (device, 0... | #include <arv.h>
#include <arvgvinterface.h>
int
main (int argc, char **argv)
{
ArvInterface *interface;
ArvDevice *device;
char buffer[100000];
g_type_init ();
interface = arv_gv_interface_get_instance ();
device = arv_interface_get_first_device (interface);
if (device != NULL) {
arv_device_read (device,... | Save the genicam file in /tmp/genicam.xml | Save the genicam file in /tmp/genicam.xml
| C | lgpl-2.1 | AravisProject/aravis,AnilRamachandran/aravis,AnilRamachandran/aravis,lu-zero/aravis,AravisProject/aravis,AravisProject/aravis,AnilRamachandran/aravis,AravisProject/aravis,lu-zero/aravis,lu-zero/aravis,AravisProject/aravis,lu-zero/aravis,AnilRamachandran/aravis,lu-zero/aravis,AnilRamachandran/aravis |
901f0f8ffaf24f80a4a4a7ea3a2c64001861705b | src/cassert.h | src/cassert.h | /**
* Thanks to http://stackoverflow.com/users/68204/rberteig
* http://stackoverflow.com/questions/807244/c-compiler-asserts-how-to-implement
*/
/** A compile time assertion check.
*
* Validate at compile time that the predicate is true without
* generating code. This can be used at any point in a source file
... | Add compile time assert macro | Add compile time assert macro
Credit to Ross Berteig
| C | bsd-3-clause | rbruggem/mqlog,rbruggem/mqlog | |
937213da82f18318d5f0f0e252d19ce40c7c6498 | src/fdndapplication.h | src/fdndapplication.h | /**************************************************************************************
**
** Copyright (C) 2014 Files Drag & Drop
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; ei... | /**************************************************************************************
**
** Copyright (C) 2014 Files Drag & Drop
**
** This library is free software; you can redistribute it and/or
** modify it under the terms of the GNU Lesser General Public
** License as published by the Free Software Foundation; ei... | FIX case sensitive include name (qtsingleapplication) | FIX case sensitive include name (qtsingleapplication)
| C | lgpl-2.1 | filesdnd/filesdnd-qt,filesdnd/filesdnd-qt,filesdnd/filesdnd-qt,filesdnd/filesdnd-qt |
3fcf6ec1e94e43fb8d7df92627fe1963d724e07a | include/llvm/Support/Unique.h | include/llvm/Support/Unique.h | //***************************************************************************
// class Unique:
// Mixin class for classes that should never be copied.
//
// Purpose:
// This mixin disables both the copy constructor and the
// assignment operator. It also provides a default equality operator.
//
// History:
// 09... | //************************************************************-*- C++ -*-
// class Unique:
// Mixin class for classes that should never be copied.
//
// Purpose:
// This mixin disables both the copy constructor and the
// assignment operator. It also provides a default equality operator.
//
// History:
// 09/24/... | Add flag for emacs so it realizes it's C++ code | Add flag for emacs so it realizes it's C++ code
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@269 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llv... |
edcfd59b7b9e3e114ba66b552a1cca48b7365008 | host-shared/Labels.h | host-shared/Labels.h | /* Chrome Linux plugin
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*/
#ifndef LABELS... | /* Chrome Linux plugin
*
* This software is released under either the GNU Library General Public
* License (see LICENSE.LGPL).
*
* Note that the only valid version of the LGPL license as far as this
* project is concerned is the original GNU Library General Public License
* Version 2.1, February 1999
*/
#ifndef LABELS... | Fix GCC bug based code (allows to compile with clang) | Fix GCC bug based code (allows to compile with clang)
| C | lgpl-2.1 | metsma/chrome-token-signing,cristiano-andrade/chrome-token-signing,cristiano-andrade/chrome-token-signing,fabiorusso/chrome-token-signing,cristiano-andrade/chrome-token-signing,metsma/chrome-token-signing,metsma/chrome-token-signing,fabiorusso/chrome-token-signing,fabiorusso/chrome-token-signing,cristiano-andrade/chrom... |
7512beb75147e357dc4870f42d1088a27f65d1d2 | test/FrontendC/pr4349.c | test/FrontendC/pr4349.c | // RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {\\\[2 x \\\[2 x i8\\\]\\\]}
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars2 | grep {i32 1} | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep {\\\[2 x i16\\\]}
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep svars3 | grep... | Test for rev 73205 (PR 4349) | Test for rev 73205 (PR 4349)
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@73206 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,llvm-mirror/llv... | |
4130b5d7b733c94055c53056b43aa887dc163d99 | arch/powerpc/include/asm/abs_addr.h | arch/powerpc/include/asm/abs_addr.h | #ifndef _ASM_POWERPC_ABS_ADDR_H
#define _ASM_POWERPC_ABS_ADDR_H
#ifdef __KERNEL__
/*
* c 2001 PPC 64 Team, IBM Corp
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 o... | #ifndef _ASM_POWERPC_ABS_ADDR_H
#define _ASM_POWERPC_ABS_ADDR_H
#ifdef __KERNEL__
/*
* c 2001 PPC 64 Team, IBM Corp
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 o... | Remove abs_to_virt() now all users have been fixed | powerpc: Remove abs_to_virt() now all users have been fixed
Signed-off-by: Michael Ellerman <17b9e1c64588c7fa6419b4d29dc1f4426279ba01@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <a7089bb6e7e92505d88aaff006cbdd60cc9120b6@kernel.crashing.org>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
396654016649d907ab791777e916745b1bf182ef | Source/Utils/include/Utils/Assert.h | Source/Utils/include/Utils/Assert.h | //
// Created by bentoo on 29.11.16.
//
#ifndef GAME_ASSERT_H
#define GAME_ASSERT_H
#include <assert.h>
#include <cstdio>
#include <cstdlib>
#include <utility>
#include "DebugSourceInfo.h"
#ifdef _MSC_VER
#define YAGE_BREAK __debugbreak()
#elif __MINGW32__
#define YAGE_BREAK __builtin_trap()
#else
#include <signal.... | //
// Created by bentoo on 29.11.16.
//
#ifndef GAME_ASSERT_H
#define GAME_ASSERT_H
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <utility>
#include "DebugSourceInfo.h"
#ifdef _MSC_VER
#define YAGE_BREAK __debugbreak()
#elif __MINGW32__
#define YAGE_BREAK __builtin_trap()
#else
#include <csignal>... | Include std headers instead of C ones | Include std headers instead of C ones
| C | mit | MrJaqbq/YAGE,MrJaqbq/Volkhvy,MrJaqbq/Volkhvy,MrJaqbq/YAGE |
c67d79bb09a7ae4a4704668a5d897ef6c160bf8a | PS_SDP-2xxx/sdp2xxx.h | PS_SDP-2xxx/sdp2xxx.h | #ifndef __SDP2XXX_H___
#define __SDP2XXX_H___
"SESS__\r"
"ENDS__\r"
"CCOM__??\r"
"GCOM__\r"
"GMAX__\r"
"GOVP__\r"
"GETD__\r"
"GETS__\r"
"GETM__\r"
"GETM__?\r"
"GETP__\r"
"GETP__?\r"
"GPAL__\r"
"VOLT__?\r"
"CURR__?\r"
"SOVP__?\r"
"SOUT__1\r"
"SOUT__0\r"
"POWW__?\r"
"POWW__?\r"
"PROM__?\r"
"PROP__?\r"
"RUNM__?\r"
"RUNP_... | Add list of functions for SDP power supply | Add list of functions for SDP power supply
Signed-off-by: Jiri Pinkava <ceb72a6f0e3f077f8f7e99199f4b556b3392348f@vscht.cz>
| C | apache-2.0 | pinkavaj/msdptool | |
a8069e5ae37a255c1f9a97918343728eb0344184 | src/arch/relic_arch_avr.c | src/arch/relic_arch_avr.c | /*
* RELIC is an Efficient LIbrary for Cryptography
* Copyright (C) 2007-2011 RELIC Authors
*
* This file is part of RELIC. RELIC is legal property of its developers,
* whose names are not listed here. Please refer to the COPYRIGHT file
* for contact information.
*
* RELIC is free software; you can redistribute... | Add missing file for ARCH = AVR. | Add missing file for ARCH = AVR. | C | lgpl-2.1 | rajeevakarv/relic-toolkit,rajeevakarv/relic-toolkit,tectronics/relic-toolkit,rajeevakarv/relic-toolkit,tectronics/relic-toolkit,tectronics/relic-toolkit | |
69379edfcf5414e6df4f9c12c06504ec2a151cab | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <cstdint>
#include <functional>
#include <unordered_map>
#include "pugixml.hpp"
namespace You {
namespace DataStore {
class DataStore {
public:
/// Test classes
friend class DataStoreAPITest;
/// typedefs
/// typedef fo... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <cstdint>
#include <functional>
#include <unordered_map>
#include "pugixml.hpp"
namespace You {
namespace DataStore {
class DataStore {
public:
/// Test classes
friend class DataStoreAPITest;
/// typedefs
/// typedef fo... | Remove commit and rollback method | Remove commit and rollback method
To be implemented on Transaction class
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.