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 |
|---|---|---|---|---|---|---|---|---|---|
467a9220714dbd8a03e7bd058c3ee062e2256ad3 | gp11/tests/gp11-test.h | gp11/tests/gp11-test.h | #ifndef TESTGP11HELPERS_H_
#define TESTGP11HELPERS_H_
#include "gp11.h"
#define FAIL_RES(res, e) do { \
g_assert ((res) ? FALSE : TRUE); \
g_assert ((e) && (e)->message && "error should be set"); \
g_clear_error (&e); \
} while (0)
#define SUCCESS_RES(res, err) do { \
if (!(res)) g_printerr ("error: %s\n", err ... | #ifndef TESTGP11HELPERS_H_
#define TESTGP11HELPERS_H_
#include "gp11.h"
#define FAIL_RES(res, e) do { \
g_assert ((res) ? FALSE : TRUE); \
g_assert ((e) && (e)->message && "error should be set"); \
g_clear_error (&e); \
} while (0)
#define SUCCESS_RES(res, err) do { \
if (!(res)) g_printerr ("error: %s\n", err ... | Remove usage of deprecated glib stuff. | Remove usage of deprecated glib stuff.
* configure.in:
* gp11/tests/gp11-test.h:
* common/gkr-location.c: Remove usage of deprecated glib stuff.
svn path=/trunk/; revision=1362
| C | lgpl-2.1 | Distrotech/gcr,Distrotech/gcr,stefwalter/gcr,stefwalter/gcr,stefwalter/gcr,Distrotech/gcr,stefwalter/gcr,Distrotech/gcr |
5e575839c8ac91262a171e51e3c188532d8802b9 | init/main.c | init/main.c | /*
* Common kernel entry point.
*/
#include <multiboot.h>
#include <types.h>
/*
* This function is called by the architecture-specific boot proceedure, and
* defines the entry to the euclid kernel.
*/
int k_main(struct multiboot *mboot, u32 stack);
int k_main(struct multiboot *mboot, u32 stack)
{
/* For now le... | Add a common kernel entry point | init: Add a common kernel entry point
| C | mit | ChrisCummins/euclid,ChrisCummins/euclid,ChrisCummins/euclid | |
a261efe40af92ed1548d50a9997469ce5b4eab14 | src/csapex_remote/include/csapex/io/session_client.h | src/csapex_remote/include/csapex/io/session_client.h | #ifndef SESSION_CLIENT_H
#define SESSION_CLIENT_H
/// PROJECT
#include <csapex/io/session.h>
/// SYSTEM
#include <boost/asio.hpp>
namespace csapex
{
class SessionClient : public Session
{
public:
SessionClient(const std::string& ip, int port);
~SessionClient() override;
std::string getDescription() cons... | #ifndef SESSION_CLIENT_H
#define SESSION_CLIENT_H
/// PROJECT
#include <csapex/io/session.h>
/// SYSTEM
#include <boost/asio.hpp>
#include <boost/version.hpp>
namespace csapex
{
class SessionClient : public Session
{
public:
SessionClient(const std::string& ip, int port);
~SessionClient() override;
std:... | Fix depracted boost asio types | Fix depracted boost asio types
| C | bsd-3-clause | cogsys-tuebingen/csapex,cogsys-tuebingen/csapex,cogsys-tuebingen/csapex,cogsys-tuebingen/csapex |
6e5e7e6aef66653731d79e23d3cf46f464216687 | src/engine/utils/include/halley/utils/type_traits.h | src/engine/utils/include/halley/utils/type_traits.h | #pragma once
#include <type_traits>
namespace Halley
{
// is_detected_v is based on https://en.cppreference.com/w/cpp/experimental/is_detected
namespace detail {
template<template<class...> class Expr, class... Args>
std::false_type is_detected_impl(...);
template<template<class...> class Expr, cla... | #pragma once
#include <type_traits>
namespace Halley
{
// is_detected_v is based on https://en.cppreference.com/w/cpp/experimental/is_detected
struct nonesuch {
~nonesuch() = delete;
nonesuch(nonesuch const&) = delete;
void operator=(nonesuch const&) = delete;
};
namespace detail {
template <cl... | Replace implementation of is_detected with one that works with gcc | Replace implementation of is_detected with one that works with gcc
| C | apache-2.0 | amzeratul/halley,amzeratul/halley,amzeratul/halley |
40042b55d410a8c0adfb7a5b1ee27c55a72a731d | 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 9
#define CLIENT_VERSION_REVISION 3
#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 9
#define CLIENT_VERSION_REVISION 5
#define CLIENT_VERSION_BUILD ... | Update client version to 0.9.5 | Update client version to 0.9.5
| C | mit | coinkeeper/2015-06-22_18-49_unobtanium,unobtanium-official/Unobtanium,unobtanium-official/Unobtanium,coinkeeper/2015-06-22_18-49_unobtanium,coinkeeper/2015-06-22_18-49_unobtanium,coinkeeper/2015-06-22_18-49_unobtanium,unobtanium-official/Unobtanium,coinkeeper/2015-06-22_18-49_unobtanium,unobtanium-official/Unobtanium,c... |
6fc8ed69f82ff21ee5e0d43971da884c2fb00e71 | tests/regression/36-octapron/17-traces-rpb-litmus.c | tests/regression/36-octapron/17-traces-rpb-litmus.c | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 42; // matches write in t_fun
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
g = 42;
pthread_mutex... | Add relational protection-based litmus test | Add relational protection-based litmus test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
68722936310358dbba2342366e72f0777c2d0ab5 | clacksd/src/transport-server/cl_discovery_thread.c | clacksd/src/transport-server/cl_discovery_thread.c | #include <syslog.h>
#include "cl_discovery.h"
#include "cl_discovery_thread.h"
void * start_discovery(void * args) {
syslog(LOG_INFO, "started discovery thread");
for (;;) {
continue;
}
}
| #include <stdlib.h>
#include <syslog.h>
#include "cl_discovery.h"
#include "cl_discovery_thread.h"
void * start_discovery(void * args) {
syslog(LOG_INFO, "started discovery thread");
for (;;) {
struct CL_Discovery_Transport *discovered_transport = malloc(sizeof(struct CL_Discovery_Transport));
wait_for_t... | Call into the discovery function and wait for someone to say hi | Call into the discovery function and wait for someone to say hi
| C | mit | jamessnee/clacks,jamessnee/clacks,jamessnee/clacks |
d7ff518be4c835e1af2fc80ae8c877460648ab71 | Code/BasicFilters/otbLocalGradientVectorImageFilter.h | Code/BasicFilters/otbLocalGradientVectorImageFilter.h | /*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WITHOUT ... | ADD Local Gardient (really high pass) | ADD Local Gardient (really high pass)
| C | apache-2.0 | orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB,orfeotoolbox/OTB | |
9dfc4f8efb20c07e111c556843f914376187ba13 | src/plugins/find/searchresultcolor.h | src/plugins/find/searchresultcolor.h | #ifndef SEARCHRESULTCOLOR_H
#define SEARCHRESULTCOLOR_H
#include <QColor>
namespace Find {
namespace Internal {
struct SearchResultColor{
QColor textBackground;
QColor textForeground;
QColor highlightBackground;
QColor highlightForeground;
};
} // namespace Internal
} // namespace Find
#endif // SE... | #ifndef SEARCHRESULTCOLOR_H
#define SEARCHRESULTCOLOR_H
#include <QColor>
namespace Find {
namespace Internal {
class SearchResultColor{
public:
QColor textBackground;
QColor textForeground;
QColor highlightBackground;
QColor highlightForeground;
};
} // namespace Internal
} // namespace Find
#endi... | Fix warning about struct/class mismatch | Fix warning about struct/class mismatch
Change-Id: I832ea6ebf078e533623fb748809dd71b5abfb645
Reviewed-by: Eike Ziller <c142da16c73a95a82d35191bcc55b22835617128@digia.com>
| C | lgpl-2.1 | danimo/qt-creator,darksylinc/qt-creator,kuba1/qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,xianian/qt-creator,amyvmiwei/qt-creator,maui-packages/qt-creator,darksylinc/qt-creator,xianian/qt-creator,richardmg/qtcreator,colede/qtcreator,danimo/qt-creator,duythanhphan/qt-creator,kuba1/qtcreator,duythanhphan/q... |
612ff9b7e8e738c3a1a267d477ad7a39488fc97e | src/ccutil/tprintf.h | src/ccutil/tprintf.h | /**********************************************************************
* File: tprintf.h
* Description: Trace version of printf - portable between UX and NT
* Author: Phil Cheatle
*
* (C) Copyright 1995, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you m... | /**********************************************************************
* File: tprintf.h
* Description: Trace version of printf - portable between UX and NT
* Author: Phil Cheatle
*
* (C) Copyright 1995, Hewlett-Packard Ltd.
** Licensed under the Apache License, Version 2.0 (the "License");
** you m... | Fix sw build error by using TESS_API for global variable log_level | Fix sw build error by using TESS_API for global variable log_level
Signed-off-by: Stefan Weil <8d4c780fcfdc41841e5070f4c43da8958ba6aec0@weilnetz.de>
| C | apache-2.0 | amitdo/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,stweil/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,stweil/tesseract,tesseract-ocr/tesseract,amitdo/tesseract,tesseract-ocr/tesseract,stweil/tesseract,tesseract-ocr/tesseract,UB-Mannheim/tesseract,amitdo/tesseract,stweil/tesseract,UB-Ma... |
02c6405e8736dbfcfbc8d2c8290fb4f3f7a063f1 | src/util/countdown_latch.h | src/util/countdown_latch.h | // Copyright (c) 2013, Cloudera, inc.
//
// This is a C++ implementation of the Java CountDownLatch
// class.
// See http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/CountDownLatch.html
#ifndef KUDU_UTIL_COUNTDOWN_LATCH_H
#define KUDU_UTIL_COUNTDOWN_LATCH_H
#include <boost/noncopyable.hpp>
#include <boost... | Add a CountDownLatch class like Java's | util: Add a CountDownLatch class like Java's
This is handy in multi-threaded tests.
| C | apache-2.0 | andrwng/kudu,helifu/kudu,EvilMcJerkface/kudu,cloudera/kudu,helifu/kudu,cloudera/kudu,InspurUSA/kudu,andrwng/kudu,cloudera/kudu,EvilMcJerkface/kudu,EvilMcJerkface/kudu,helifu/kudu,andrwng/kudu,helifu/kudu,cloudera/kudu,cloudera/kudu,InspurUSA/kudu,cloudera/kudu,InspurUSA/kudu,EvilMcJerkface/kudu,EvilMcJerkface/kudu,Insp... | |
9af81a685e627783b65a9346fa02270a5b59b304 | include/llvm/iOperators.h | include/llvm/iOperators.h | //===-- llvm/iBinary.h - Binary Operator node definitions --------*- C++ -*--=//
//
// This file contains the declarations of all of the Binary Operator classes.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_IBINARY_H
#define LLVM_IBINARY_H
#include "llvm/InstrTypes.... | //===-- llvm/iBinary.h - Binary Operator node definitions --------*- C++ -*--=//
//
// This file contains the declarations of all of the Binary Operator classes.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_IBINARY_H
#define LLVM_IBINARY_H
#include "llvm/InstrTypes.... | Make a new GenericBinaryInst class, instead of providing lots of silly little classes. | Make a new GenericBinaryInst class, instead of providing lots of silly
little classes.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@82 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | dslab-epfl/asap,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,chubbymagg... |
68b97b56e8c77a8010f181efcae3f41afa3d5002 | MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h | MatrixSDK/Crypto/SecretStorage/MXSecretStorage_Private.h | /*
Copyright 2020 The Matrix.org Foundation C.I.C
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... | /*
Copyright 2020 The Matrix.org Foundation C.I.C
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... | Make aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK | Make aes-hmac-sha2 encryption methods from `MXSecretStorage` available in SDK
| C | apache-2.0 | matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk,matrix-org/matrix-ios-sdk |
38f3323037de22bb0089d08be27be01196e7148b | include/asm-generic/page.h | include/asm-generic/page.h | #ifndef _ASM_GENERIC_PAGE_H
#define _ASM_GENERIC_PAGE_H
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
#include <linux/log2.h>
/*
* non-const pure 2^n version of get_order
* - the arch may override these in asm/bitops.h if they can be implemented
* more efficiently than using the arch log2 routines
* - we use the non-... | #ifndef _ASM_GENERIC_PAGE_H
#define _ASM_GENERIC_PAGE_H
#ifdef __KERNEL__
#ifndef __ASSEMBLY__
#include <linux/compiler.h>
/* Pure 2^n version of get_order */
static __inline__ __attribute_const__ int get_order(unsigned long size)
{
int order;
size = (size - 1) >> (PAGE_SHIFT - 1);
order = -1;
do {
size >>= 1... | Revert "[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant" | Revert "[PATCH] LOG2: Alter get_order() so that it can make use of ilog2() on a constant"
This reverts commit 39d61db0edb34d60b83c5e0d62d0e906578cc707.
The commit was buggy in multiple ways:
- the conversion to ilog2() was incorrect to begin with
- it tested the wrong #defines, so on all architectures but FRV you'd... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_k... |
712c6cef810aa3c6635a677bc9eef7dd8e7cc599 | tests/regression/02-base/93-ad-struct-offset.c | tests/regression/02-base/93-ad-struct-offset.c | // SKIP
#include <assert.h>
struct str{
int a;
char c;
};
int main(){
struct str a;
char* ca = (char*) &a;
void *ptr = &ca[4];
void *ptr2 = &a.c;
int z = 1;
// Alginment of struct fields, and thus result of the equality check here is implementation defined.
if(ptr == ptr2){
... | Add skipped regression test that exposes unsoundness when comparing addresses with integer and field offset. | Add skipped regression test that exposes unsoundness when comparing addresses with integer and field offset.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
237c88f631c428a2a6afa4927a02c2f84939025c | Source/NSManagedObject+HYPURI.h | Source/NSManagedObject+HYPURI.h | @import CoreData;
@interface NSManagedObject (HYPURI)
- (NSString *)hyp_URI;
@end
| @import CoreData;
@interface NSManagedObject (HYPURI)
- (NSString *)hyp_URI;
+ (NSManagedObject *)managedObjectWithURI:(NSString *)URI inContext:(NSManagedObjectContext *)context;
@end
| Add method to retrieve object using an URI | Add method to retrieve object using an URI | C | mit | hyperoslo/NSManagedObject-HYPURI |
6520b60844230204cf736f17b814d95b6c0e249b | webkit/glue/screen_info.h | webkit/glue/screen_info.h | // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this
// source code is governed by a BSD-style license that can be found in the
// LICENSE file.
#ifndef WEBKIT_GLUE_SCREEN_INFO_H_
#define WEBKIT_GLUE_SCREEN_INFO_H_
#include "base/gfx/rect.h"
namespace webkit_glue {
struct ScreenInfo {
int... | Add missing file. Oops :( | Add missing file. Oops :(
TBR=dglazkov
Review URL: http://codereview.chromium.org/8789
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@4338 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser | |
cc954580aab4e44ec294c878306060778fb29af1 | Source/UnrealEnginePython/Public/UnrealEnginePython.h | Source/UnrealEnginePython/Public/UnrealEnginePython.h | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void Start... | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "ModuleManager.h"
DECLARE_LOG_CATEGORY_EXTERN(LogPython, Log, All);
class UNREALENGINEPYTHON_API FUnrealEnginePythonModule : public IModuleInterface
{
public:
bool PythonGILAcquire();
void PythonGILRelease();
virtual void Start... | Revert "Revert "Add support for the Python Stdout Log"" | Revert "Revert "Add support for the Python Stdout Log""
This reverts commit 32671bbd7b2134d5d1912225eb47bb368ee3e7ab.
| C | mit | getnamo/UnrealEnginePython,Orav/UnrealEnginePython,20tab/UnrealEnginePython,getnamo/UnrealEnginePython,Orav/UnrealEnginePython,kitelightning/UnrealEnginePython,getnamo/UnrealEnginePython,kitelightning/UnrealEnginePython,20tab/UnrealEnginePython,20tab/UnrealEnginePython,kitelightning/UnrealEnginePython,kitelightning/Unr... |
798e1889b6743be7d18a944a46442468004c8ed5 | 2DXngine.Test/src/Integration_Tiled/TiledFixture.h | 2DXngine.Test/src/Integration_Tiled/TiledFixture.h | #pragma once
#include "gtest\gtest.h"
#include "../pugixml/src/pugixml.hpp"
#include <Integrations\Tiled\Parsers\TileMapParser.h>
#include <Integrations\Tiled\DataStructures\TiledMap.h>
class TiledFixture : public ::testing::Test
{
protected:
virtual void SetUp()
{
pugi::xml_document doc;
auto ... | #pragma once
#include "gtest\gtest.h"
#include "../pugixml/src/pugixml.hpp"
#include <Integrations\Tiled\Parsers\TileMapParser.h>
#include <Integrations\Tiled\DataStructures\TiledMap.h>
#include "../../../2DXngine.Core/src/ContentManagement/AssetPath.h"
class TiledFixture : public ::testing::Test
{
protected:
virt... | Fix path to map xml | EDIT: Fix path to map xml
| C | mit | Harunx9/2DXngine,Harunx9/2DXngine,Harunx9/2DXngine |
f5a38eb8883ac9a838b2db4a7bbffa244931da4e | ObjectiveRocks/RocksDBMergeOperator.h | ObjectiveRocks/RocksDBMergeOperator.h | //
// RocksDBMergeOperator.h
// ObjectiveRocks
//
// Created by Iska on 07/12/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface RocksDBMergeOperator : NSObject
+ (instancetype)operatorWithName:(NSString *)name
andBlock:(id (^)(id key, id existingVal... | //
// RocksDBMergeOperator.h
// ObjectiveRocks
//
// Created by Iska on 07/12/14.
// Copyright (c) 2014 BrainCookie. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
A Merge operator is an atomic Read-Modify-Write operation in RocksDB.
*/
@interface RocksDBMergeOperator : NSObject
/**
Initialize... | Add source code documentation for the Merge Operator class | Add source code documentation for the Merge Operator class
| C | mit | iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks,iabudiab/ObjectiveRocks |
1b1421b65b363e29db2d022f2bff39cef99efc5a | AppKit/DataViewController/AKTableViewCellAdapter.h | AppKit/DataViewController/AKTableViewCellAdapter.h | //
// AKTableViewCellAdapter.h
// AppKit
//
// Created by Zijiao Liu on 12/20/15.
// Copyright © 2015 Zijiao Liu. All rights reserved.
//
#import "AKTableViewConfiguration.h"
#import "AKTableViewCell.h"
@interface AKTableViewCellAdapter : NSObject <AKTableViewConfiguration>
- (CGFloat)dataViewController:(nonnull... | //
// AKTableViewCellAdapter.h
// AppKit
//
// Created by Zijiao Liu on 12/20/15.
// Copyright © 2015 Zijiao Liu. All rights reserved.
//
#import "AKTableViewConfiguration.h"
#import "AKTableViewCell.h"
@interface AKTableViewCellAdapter : NSObject <AKTableViewConfiguration>
- (CGFloat)dataViewController:(nonnull... | Disable a method in adapter | Disable a method in adapter
| C | apache-2.0 | lingguang1997/AppKit |
7b3e6a03279e775974dd43f7ff643f170fc08d1c | Stripe/STPLocalizationUtils.h | Stripe/STPLocalizationUtils.h | //
// STPLocalizedStringUtils.h
// Stripe
//
// Created by Brian Dorfman on 8/11/16.
// Copyright © 2016 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#define STPLocalizedString(key, comment) \
[STPLocalizationUtils localizedStripeStringForKey:(key)]
@interface STPLocalizationUtils : NSO... | //
// STPLocalizationUtils.h
// Stripe
//
// Created by Brian Dorfman on 8/11/16.
// Copyright © 2016 Stripe, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface STPLocalizationUtils : NSObject
/**
Acts like NSLocalizedString but tries to find the string in the Stripe
bundle first if poss... | Change to use inline function instead of macro. | Change to use inline function instead of macro.
This makes FauxPas's localization checks work properly.
| C | mit | stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,stripe/stripe-ios,fbernardo/stripe-ios,fbernardo/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,fbernardo/stripe-ios,NewAmsterdamLabs/stripe-ios,stripe/stripe-ios,NewAmsterdamLabs/stripe-ios,fbernardo/stripe-ios |
db053d481db41887771dccc52a61b7123f5011a2 | BRScroller/BRScrollerUtilities.c | BRScroller/BRScrollerUtilities.c | //
// BRScrollerUtilities.c
// BRScroller
//
// Created by Matt on 7/11/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#include "BRScrollerUtilities.h"
#if !defined(MIN)
#define MIN(A,B) ((A) < (B) ? (A) : (B))
#endif
inline bool BRFloatsAreEqual(CGFl... | //
// BRScrollerUtilities.c
// BRScroller
//
// Created by Matt on 7/11/13.
// Copyright (c) 2013 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#include "BRScrollerUtilities.h"
#include <math.h>
#include <sys/param.h>
inline bool BRFloatsAreEqual(CGFloat a, CGFloat b) {
const... | Fix includes to just what is needed. | Fix includes to just what is needed.
| C | apache-2.0 | Blue-Rocket/BRScroller,Blue-Rocket/BRScroller |
b912fb63cd043f653cdba9abe0b5a1c4b5ebb9c0 | RxHyperdrive/RxHyperdrive.h | RxHyperdrive/RxHyperdrive.h | //
// RxHyperdrive.h
// RxHyperdrive
//
// Created by Kyle Fuller on 13/09/2015.
// Copyright © 2015 Cocode. All rights reserved.
//
#import <Cocoa/Cocoa.h>
//! Project version number for RxHyperdrive.
FOUNDATION_EXPORT double RxHyperdriveVersionNumber;
//! Project version string for RxHyperdrive.
FOUNDATION_EXP... | //
// RxHyperdrive.h
// RxHyperdrive
//
// Created by Kyle Fuller on 13/09/2015.
// Copyright © 2015 Cocode. All rights reserved.
//
@import Foundation;
//! Project version number for RxHyperdrive.
FOUNDATION_EXPORT double RxHyperdriveVersionNumber;
//! Project version string for RxHyperdrive.
FOUNDATION_EXPORT ... | Use Foundation in the umbrella header | Use Foundation in the umbrella header | C | mit | kylef/RxHyperdrive,kylef/RxHyperdrive |
bbc8175c39f85465475c9f96048d8107848e3e6f | include/clang/Serialization/ASTSerializationListener.h | include/clang/Serialization/ASTSerializationListener.h | //===- ASTSerializationListener.h - Decl/Type PCH Write Events -*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------... | Add missing file from last commit | Add missing file from last commit
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@120397 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
9451ae2576903f202a8fe6a065eb83a3aaa24de8 | seccure/test/test_gcrypt.c | seccure/test/test_gcrypt.c | /*
* test_gcrypt - Copyright 2009 Slide, 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 License, or (at your option) any later version.
*
*... | Add a simple test to play with libgcrypt | Add a simple test to play with libgcrypt
| C | lgpl-2.1 | rtyler/PyECC,rtyler/PyECC,slideinc/PyECC,slideinc/PyECC | |
eda89b4fcfe6a529d2194cf54546a814731b67bc | bindings/muen/muen-yield.c | bindings/muen/muen-yield.c | /*
* Copyright (c) 2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a sandboxed execution environment.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose with or without fee is hereby granted, provided
* that the above copyright notice and this pe... | /*
* Copyright (c) 2017 Contributors as noted in the AUTHORS file
*
* This file is part of Solo5, a sandboxed execution environment.
*
* Permission to use, copy, modify, and/or distribute this software
* for any purpose with or without fee is hereby granted, provided
* that the above copyright notice and this pe... | Rework solo5_yield to support multiple devices | muen: Rework solo5_yield to support multiple devices
| C | isc | mato/solo5,mato/solo5,Solo5/solo5,Solo5/solo5,mato/solo5 |
0c4431765bbcdc19826068ce34c2de2b2fca22d5 | src/items.h | src/items.h | /*------------------------------------------------------------------------------
| NuCTex | items.h
| Author | Benjamin A - Nullsrc
| Created | 17 January, 2016
| Changed | 17 January, 2016
|-------------------------------------------------------------------------------
| Overview | Declare item structures used in the ... | Add definition for item structs | Add definition for item structs
| C | mit | Nullsrc/nuctex,Nullsrc/nuctex | |
e1829b05d441cd768a52ceb81af3a906ee6c219c | src/payload/setup-object.h | src/payload/setup-object.h | #ifndef RCR_LEVEL1PAYLOAD_SETUP_H_
#define RCR_LEVEL1PAYLOAD_SETUP_H_
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
namespace rcr {
namespace level1payload {
// Setup the object. Swallow any errors.
template<typename T>
inline void setup_object(T& obj, const char* e... | #ifndef RCR_LEVEL1PAYLOAD_SETUP_H_
#define RCR_LEVEL1PAYLOAD_SETUP_H_
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
namespace rcr {
namespace level1payload {
// Setup the object. Swallow any errors.
template<typename T, typename TArg>
inline void setup_object(T& obj... | Add template overload for begin() arguments | Add template overload for begin() arguments
| C | mit | nolanholden/payload-level1-rocket,nolanholden/geovis,nolanholden/geovis,nolanholden/geovis |
cb808fbb23fbfcac41b9436a92d4a223b4d01fda | views/view_constants.h | views/view_constants.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 VIEWS_VIEW_CONSTANTS_H_
#define VIEWS_VIEW_CONSTANTS_H_
#pragma once
#include "views/views_export.h"
namespace views {
// Size (width or he... | // 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 VIEWS_VIEW_CONSTANTS_H_
#define VIEWS_VIEW_CONSTANTS_H_
#pragma once
#include "views/views_export.h"
namespace views {
// Size (width or he... | Add VIEWS_EXPORT to autoscroll constants. | Add VIEWS_EXPORT to autoscroll constants.
Referenced by browser/bookmarks/bookmark_drop_info.cc, fixes link when in
component and incremental linking on Windows.
BUG=
TEST=Links in Component build mode
Review URL: http://codereview.chromium.org/7741017
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@98281 00... | C | bsd-3-clause | yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,gavinp/chromium,ropik/c... |
cc7b316872403c586627bd909bb596801e4a67cf | test/clear-similar-keys.c | test/clear-similar-keys.c |
#include "sphia-test.h"
// See #51
static void
test_clear_similar_keys() {
sphia_set(sphia, "key-1", "hello world");
sphia_set(sphia, "key-10", "hello world");
assert(2 == sphia_count(sphia));
assert(0 == sphia_clear(sphia));
assert(0 == sphia_count(sphia));
}
TEST(test_clear_similar_keys);
|
#include "sphia-test.h"
// See #51
static void
test_clear_similar_keys() {
sphia_set(sphia, "key-1", "hello world");
sphia_set(sphia, "key-10", "hello world");
sphia_set(sphia, "00000000", "hello world");
sphia_set(sphia, "000000000", "hello world");
assert(4 == sphia_count(sphia));
assert(0 == sphia_clea... | Update clear test to use keys longer than 8 chars | Update clear test to use keys longer than 8 chars
| C | mit | sphia/sphia,sphia/sphia,sphia/sphia |
b2a14a335095b42f02edabdf96bdf6480da2c9f7 | tests/regression/13-privatized/67-pthread_cond_wait.c | tests/regression/13-privatized/67-pthread_cond_wait.c | #include<pthread.h>
#include<stdio.h>
#include<unistd.h>
#include <assert.h>
int g;
pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void* f1(void* ptr) {
pthread_mutex_lock(&mut);
g = 1;
pthread_cond_wait(&cond,&mut);
assert(g == 0); // TODO (no cond-f... | #include<pthread.h>
#include<stdio.h>
#include<unistd.h>
#include <assert.h>
int g;
pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
void* f1(void* ptr) {
pthread_mutex_lock(&mut);
g = 1;
pthread_cond_wait(&cond,&mut);
assert(g == 0); // TODO (no cond-f... | Add missing return to 13/67 | Add missing return to 13/67
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
40559fbb000bece563eb4b8c0fba875990ddf083 | libcef_dll/cef_macros.h | libcef_dll/cef_macros.h | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | // Copyright (c) 2014 The Chromium Embedded Framework 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 CEF_LIBCEF_DLL_CEF_MACROS_H_
#define CEF_LIBCEF_DLL_CEF_MACROS_H_
#pragma once
#ifdef BUILDING_CEF_SHARED
#include "base/m... | Remove duplicate content in file. | Remove duplicate content in file. | C | bsd-3-clause | amikey/chromium,amikey/chromium,amikey/chromium,amikey/chromium,amikey/chromium |
62c8c410b0c5063bed0ea598a89387854667e14c | Variable.h | Variable.h | using namespace std;
vector<int> Int;
vector<string> Name;
int CheckForInt(string ProcessInput)
{
if (ProcessInput.substr(0, 3) == "int")
{
int EqualLocation;
int SemicolonLocation;
stringstream Number;
stringstream StringName;
int FinalNumber;
string FinalName;
EqualLocation = ProcessInput... | Add integer interpret and register algorithm. | Add integer interpret and register algorithm.
This algorithm uses vectors and standard C++ functions to register
integers into the program with name and value corresponding in order.
There's another algorithm that will make the program be able to retrieve
the results using the console out function. Which that algorith... | C | mit | Project-CPP/CPP-Interpreter | |
5041a2011a8f68aaf252f634ba5bd2bd198229b3 | src/epollinterface.c | src/epollinterface.c | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include "epollinterface.h"
#define MAX_EPOLL_EVENTS 10
void add_epoll_handler(int epoll_fd, struct epoll_event_handler* handler, uint32_t event_mask)
{
struct epoll_event event;
event.data.ptr = handler;
event.events = e... | #include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/epoll.h>
#include "epollinterface.h"
#define MAX_EPOLL_EVENTS 1
void add_epoll_handler(int epoll_fd, struct epoll_event_handler* handler, uint32_t event_mask)
{
struct epoll_event event;
event.data.ptr = handler;
event.events = ev... | Handle epoll events one at a time. Doesn't seem to make things slower, and eliminates (I think) risk of freed backends getting events. | Handle epoll events one at a time. Doesn't seem to make things slower, and eliminates (I think) risk of freed backends getting events.
| C | mit | gpjt/rsp,gpjt/rsp,gpjt/rsp |
b1d45cb3b9f9ad2089d57de0ec3fa75ea1cf7fc4 | include/ygo/data/CardData.h | include/ygo/data/CardData.h | #ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
std::string name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | #ifndef YGO_DATA_CARDDATA_H
#define YGO_DATA_CARDDATA_H
#include <string>
#include "CardType.h"
namespace ygo
{
namespace data
{
struct StaticCardData
{
const char* name;
CardType cardType;
// monster only
Attribute attribute;
MonsterType monsterType;
Type type;
MonsterType monsterAbilit... | Change name to const char * | Change name to const char *
Allow for trivially constructable type
| C | mit | DeonPoncini/ygodata |
2d70b362127449ee79dc7fe236a7b20d75689fd3 | libraries/ESP8266WebServer/src/detail/RequestHandler.h | libraries/ESP8266WebServer/src/detail/RequestHandler.h | #ifndef REQUESTHANDLER_H
#define REQUESTHANDLER_H
class RequestHandler {
public:
virtual bool canHandle(HTTPMethod method, String uri) { return false; }
virtual bool canUpload(String uri) { return false; }
virtual bool handle(ESP8266WebServer& server, HTTPMethod requestMethod, String requestUri) { return f... | #ifndef REQUESTHANDLER_H
#define REQUESTHANDLER_H
class RequestHandler {
public:
virtual ~RequestHandler() { }
virtual bool canHandle(HTTPMethod method, String uri) { return false; }
virtual bool canUpload(String uri) { return false; }
virtual bool handle(ESP8266WebServer& server, HTTPMethod requestMet... | Fix warning due to lack of virtual destructor | Fix warning due to lack of virtual destructor
| C | lgpl-2.1 | lrmoreno007/Arduino,KaloNK/Arduino,hallard/Arduino,KaloNK/Arduino,quertenmont/Arduino,jes/Arduino,toastedcode/esp8266-Arduino,martinayotte/ESP8266-Arduino,sticilface/Arduino,jes/Arduino,me-no-dev/Arduino,esp8266/Arduino,martinayotte/ESP8266-Arduino,lrmoreno007/Arduino,KaloNK/Arduino,Links2004/Arduino,wemos/Arduino,esp8... |
a615fa83959896f8eac76c235953fb164cd1a9b9 | include/linux/kmalloc_sizes.h | include/linux/kmalloc_sizes.h | #if (PAGE_SIZE == 4096)
CACHE(32)
#endif
CACHE(64)
#if L1_CACHE_BYTES < 64
CACHE(96)
#endif
CACHE(128)
#if L1_CACHE_BYTES < 128
CACHE(192)
#endif
CACHE(256)
CACHE(512)
CACHE(1024)
CACHE(2048)
CACHE(4096)
CACHE(8192)
CACHE(16384)
CACHE(32768)
CACHE(65536)
CACHE(131072)
#ifndef CONFIG_MMU
CACHE(262144)
C... | #if (PAGE_SIZE == 4096)
CACHE(32)
#endif
CACHE(64)
#if L1_CACHE_BYTES < 64
CACHE(96)
#endif
CACHE(128)
#if L1_CACHE_BYTES < 128
CACHE(192)
#endif
CACHE(256)
CACHE(512)
CACHE(1024)
CACHE(2048)
CACHE(4096)
CACHE(8192)
CACHE(16384)
CACHE(32768)
CACHE(65536)
CACHE(131072)
#if (NR_CPUS > 512) || (MAX_NUMNODES... | Increase max kmalloc size for very large systems | [PATCH] Increase max kmalloc size for very large systems
Systems with extemely large numbers of nodes or cpus need to kmalloc
structures larger than is currently supported. This patch increases the
maximum supported size for very large systems.
This patch should have no effect on current systems.
(akpm: why not jus... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,Krist... |
c6e3881888e2f39b24d5381ce01876f30cfb9482 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 88
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 89
#endif
| Update Skia milestone to 89 | Update Skia milestone to 89
Change-Id: I9de827fe1902a9a91898fcf70d82153a821500ee
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/334418
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,google/skia,google/skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,google/skia,aosp-mirror/platform_external_skia,google/skia,google/skia,aosp-mirror/pl... |
f0b2388d22e1002a70e80643500434b19723a8cc | include/samplog/LogLevel.h | include/samplog/LogLevel.h | #pragma once
#ifndef INC_SAMPLOG_LOGLEVEL_H
#define INC_SAMPLOG_LOGLEVEL_H
#ifdef ERROR //because Microsoft
#undef ERROR
#endif
enum samplog_LogLevel
{
NONE = 0,
DEBUG = 1,
INFO = 2,
WARNING = 4,
ERROR = 8,
FATAL = 16,
VERBOSE = 32,
};
inline samplog_LogLevel operator|(samplog_LogLevel a, samplog_LogLevel b)... | #pragma once
#ifndef INC_SAMPLOG_LOGLEVEL_H
#define INC_SAMPLOG_LOGLEVEL_H
#ifdef ERROR //because Microsoft
#undef ERROR
#endif
enum samplog_LogLevel
{
NONE = 0,
DEBUG = 1,
INFO = 2,
WARNING = 4,
ERROR = 8,
FATAL = 16,
VERBOSE = 32,
};
#ifdef __cplusplus
inline samplog_LogLevel operator|(samplog_LogLevel a, ... | Put enum OR declaration in `__cplusplus` | Put enum OR declaration in `__cplusplus`
| C | mit | maddinat0r/samp-log-core,maddinat0r/samp-log-core |
f928e7a707a09d471881dc77e46992a774ae5b44 | features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h | features/mbedtls/targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F439xI/mbedtls_device.h | /*
* mbedtls_device.h
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the Li... | /*
* mbedtls_device.h
*******************************************************************************
* Copyright (c) 2017, STMicroelectronics
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the Li... | Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI | mbedtls: Disable MD5, SHA1, SHA256 HW ACC for STM32F439xI
STM32F439xI-family MD5, SHA1 and SHA256 hardware acceleration
occasionally produces incorrect output (#5079).
Don't enable MD5, SHA1 and SHA256 HW acceleration on STM32F439xI-family
targets by default until issue #5079 is fixed.
| C | apache-2.0 | mazimkhan/mbed-os,mbedmicro/mbed,infinnovation/mbed-os,betzw/mbed-os,ryankurte/mbed-os,karsev/mbed-os,ryankurte/mbed-os,mbedmicro/mbed,infinnovation/mbed-os,karsev/mbed-os,nRFMesh/mbed-os,karsev/mbed-os,c1728p9/mbed-os,catiedev/mbed-os,c1728p9/mbed-os,karsev/mbed-os,karsev/mbed-os,Archcady/mbed-os,andcor02/mbed-os,betz... |
ee396e6fa028184cf715351311ba3c41e7b8228e | src/lib/utils/openssl/openssl.h | src/lib/utils/openssl/openssl.h | /*
* Utils for calling OpenSSL
* (C) 2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_OPENSSL_H__
#define BOTAN_OPENSSL_H__
#include <botan/secmem.h>
#include <botan/exceptn.h>
#include <memory>
#include <openssl/err.h>
namespace Botan {
class OpenSSL_Error ... | /*
* Utils for calling OpenSSL
* (C) 2015 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_OPENSSL_H__
#define BOTAN_OPENSSL_H__
#include <botan/secmem.h>
#include <botan/exceptn.h>
#include <memory>
#include <openssl/err.h>
namespace Botan {
class OpenSSL_Error ... | Make OpenSSL ECDSA and RSA request only until they can be tested | Make OpenSSL ECDSA and RSA request only until they can be tested
| C | bsd-2-clause | randombit/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schw... |
10687f69c018875f5180e93aeff5bdc3d6b828d1 | include/bold/Support/Slab.h | include/bold/Support/Slab.h | //===- Slab.h -------------------------------------------------------------===//
//
// The Bold Project
//
// This file is distributed under the New BSD License.
// See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#ifndef BOLD_SUPP... | //===- Slab.h -------------------------------------------------------------===//
//
// The Bold Project
//
// This file is distributed under the New BSD License.
// See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#ifndef BOLD_SUPP... | Fix bug - obviously, recursive template type is impossible. | Fix bug - obviously, recursive template type is impossible.
| C | bsd-3-clause | astrotycoon/bold-utils,hjmeric/bold-utils,hjmeric/bold-utils,astrotycoon/bold-utils |
1acc1d642a43ed98b59e42bd2ace0204f862719f | lib/c_impl/n_hamming_window.c | lib/c_impl/n_hamming_window.c | #include "ruby.h"
#include "noyes.h"
HammingWindow * new_hamming_window(int window_size) {
HammingWindow *hw = malloc(sizeof(HammingWindow));
hw->buf = malloc(window_size * sizeof(double));
hw->buflen = window_size;
return hw;
}
void free_hamming_window(HammingWindow *hw) {
free(hw->buf);
free(hw);
}
NDa... | Implement allocation and deallocation for c hamming window. | Implement allocation and deallocation for c hamming window.
| C | bsd-2-clause | talkhouse/noyes,talkhouse/noyes,talkhouse/noyes | |
b71d9d2e421652ca60b67b9ce37d7e6988e40e0e | src/miners/fs/tracker-writeback.h | src/miners/fs/tracker-writeback.h | /*
* Copyright (C) 2008, Nokia <ivan.frade@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
... | /*
* Copyright (C) 2008, Nokia <ivan.frade@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This... | Fix licensing errors in files | tracker-miner-fs: Fix licensing errors in files
Some were changed from GPL to LGPL for some reason. Now they're all GPL as
they should be.
| C | lgpl-2.1 | hoheinzollern/tracker,hoheinzollern/tracker,hoheinzollern/tracker,outofbits/tracker,hoheinzollern/tracker,hoheinzollern/tracker,hoheinzollern/tracker,outofbits/tracker,hoheinzollern/tracker,outofbits/tracker,outofbits/tracker,outofbits/tracker,outofbits/tracker,outofbits/tracker |
2672954aebf325f7c73f0539fd5e6aa53f4bb1e9 | Parse-RACExtensions/PFQuery+RACExtensions.h | Parse-RACExtensions/PFQuery+RACExtensions.h | //
// PFQuery+RACExtensions.h
// Parse-RACExtensions
//
// Created by Dave Lee on 2013-06-28.
// Copyright (c) 2013 Dave Lee. All rights reserved.
//
#import <Parse/PFQuery.h>
@class RACSignal;
@interface PFQuery (RACExtensions)
/// Gets a PFObject with the given id.
///
/// @warning This mutates the PFQuery.
/... | //
// PFQuery+RACExtensions.h
// Parse-RACExtensions
//
// Created by Dave Lee on 2013-06-28.
// Copyright (c) 2013 Dave Lee. All rights reserved.
//
#import <Parse/PFQuery.h>
@class RACSignal;
@interface PFQuery (RACExtensions)
/// Gets a PFObject with the given id.
///
/// Disposing subscription will also can... | Document PFQuery disposal side effects | Document PFQuery disposal side effects
| C | mit | kastiglione/Parse-RACExtensions,chrrasmussen/Parse-RACExtensions,kastiglione/Parse-RACExtensions,chrrasmussen/Parse-RACExtensions |
2df653a9db16b6359b5abd80e7ffa30e832fed9a | src/StdAfx.h | src/StdAfx.h |
/* StdAfx.h
*
* Copyright (C) 2013 Michael Imamura
*
* 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 ... |
/* StdAfx.h
*
* Copyright (C) 2013 Michael Imamura
*
* 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 ... | Set API ver and disable CRT warnings on Win32. | Set API ver and disable CRT warnings on Win32.
| C | apache-2.0 | ZoogieZork/Adventures-in-SDL2,ZoogieZork/Adventures-in-SDL2 |
6f6926c373cf829cb8043f1a81595c0388d8009f | src/btcwif.h | src/btcwif.h | #ifndef __BTC_WIF_H__
#define __BTC_WIF_H__
#include <string>
#include <vector>
namespace btc {
namespace wif {
std::string PrivateKeyToWif(const std::vector<uint8_t> &priv_key);
std::vector<uint8_t> WifToPrivateKey(const std::string &priv_key_str);
} // namespace wif
} // namespace btc
#endif
| #ifndef __BTC_WIF_H__
#define __BTC_WIF_H__
#include <string>
#include <vector>
namespace btc {
namespace wif {
/**
* Convert private key to string in WIF
*
* @param priv_key Private key data.
*
* @return WIF string.
*/
std::string PrivateKeyToWif(const std::vector<uint8_t> &priv_key);
/**
* Parse WIF privat... | Add comment for WIF functions. | Add comment for WIF functions.
| C | mit | gladosconn/btcaddrgen |
19533431a5b879a40b706b7ce2c64a1456acb8bb | src/icmpv4.c | src/icmpv4.c | #include "ethernet.h"
#include "icmpv4.h"
#include "ip.h"
#include "utils.h"
void icmpv4_incoming(struct sk_buff *skb)
{
struct iphdr *iphdr = ip_hdr(skb);
struct icmp_v4 *icmp = (struct icmp_v4 *) iphdr->data;
//TODO: Check csum
switch (icmp->type) {
case ICMP_V4_ECHO:
icmpv4_re... | #include "ethernet.h"
#include "icmpv4.h"
#include "ip.h"
#include "utils.h"
void icmpv4_incoming(struct sk_buff *skb)
{
struct iphdr *iphdr = ip_hdr(skb);
struct icmp_v4 *icmp = (struct icmp_v4 *) iphdr->data;
//TODO: Check csum
switch (icmp->type) {
case ICMP_V4_ECHO:
icmpv4_re... | Fix ICMPv4 dest addr set | Fix ICMPv4 dest addr set
| C | mit | saminiir/level-ip,saminiir/level-ip |
38c0c6b517013f885e9c465e6f481d3828b355ea | bst.h | bst.h | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
#endif | #include <stdlib.h>
#ifndef __BST_H__
#define __BST_H__
struct BSTNode;
struct BST;
#endif | Add BSTNode & BST struct declaration | Add BSTNode & BST struct declaration
| C | mit | MaxLikelihood/CADT |
d8d34b0ebf0af05fd03af936ea0e08ec32972ff8 | prj1/include/geometry/geometry.h | prj1/include/geometry/geometry.h | #ifndef GEOMETRY_H
#define GEOMETRY_H
#include <vector>
#include <string>
#include <memory>
#include "linalg/ray.h"
#include "linalg/transform.h"
class Geometry {
public:
virtual bool intersect(Ray &r) = 0;
};
class Node {
std::vector<std::shared_ptr<Node>> children;
std::shared_ptr<Geometry> geometry;
Transform... | #ifndef GEOMETRY_H
#define GEOMETRY_H
#include <vector>
#include <string>
#include <memory>
#include "linalg/ray.h"
#include "linalg/transform.h"
class Geometry {
public:
/*
* Test a ray for intersection with the geometry.
* The ray should have been previously transformed into object space
*/
virtual bool int... | Add comment on what space the incoming ray should be in | Add comment on what space the incoming ray should be in
| C | mit | Twinklebear/tray,Twinklebear/tray |
11cc5dbfd26c345e51ec7aa402417ae5faa0c71d | src/distributed.h | src/distributed.h | #ifndef DISTRIBUTED_H_
#define DISTRIBUTED_H_
#include <pthread.h>
#include "synch.h"
#define N_WORKERS 2
/* The Nahanni device */
#define SHM_DEV "/dev/uio0"
/* The size of the shared memory, in bytes */
#define SHM_SIZE (1024L * 1024L * 1024L)
/* Where we should map the memory */
#define SHM_LOC ... | #ifndef DISTRIBUTED_H_
#define DISTRIBUTED_H_
#include <pthread.h>
#include "synch.h"
/* This is a misnomer - it's actually the number of processes (master + workers) */
#define N_WORKERS 3
/* The Nahanni device */
#define SHM_DEV "/dev/uio0"
/* The size of the shared memory, in bytes */
#define SHM_SIZE ... | Increase node count to 3 | Increase node count to 3
| C | bsd-3-clause | adamwg/elastic-phoenix,adamwg/elastic-phoenix,adamwg/elastic-phoenix |
bce9205e430e94918476ae62579f9e3c811294d7 | test/Parser/ms-inline-asm.c | test/Parser/ms-inline-asm.c | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 %s -verify -fasm-blocks
#define M __asm int 0x2c
#define M2 int
void t1(void) { M }
void t2(void) { __asm int 0x2c }
void t3(void) { __asm M2 0x2c }
void t4(void) { __asm mov eax, fs:[0x10] }
void t5() {
__asm {
int 0x2c ; } asm comments are fun! }{
}
__... | // RUN: %clang_cc1 %s -triple i386-apple-darwin10 -verify -fasm-blocks
#define M __asm int 0x2c
#define M2 int
void t1(void) { M }
void t2(void) { __asm int 0x2c }
void t3(void) { __asm M2 0x2c }
void t4(void) { __asm mov eax, fs:[0x10] }
void t5() {
__asm {
int 0x2c ; } asm comments are fun! }{
}
__asm {}
... | Add a triple, per Ben's suggestion. | Add a triple, per Ben's suggestion.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@173198 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
f03fd7f1afa93f73f156c82e9541d11e1519ec31 | test/Sema/typo-correction.c | test/Sema/typo-correction.c | // RUN: %clang_cc1 -fsyntax-only -verify %s
//
// This file contains typo correction tests which hit different code paths in C
// than in C++ and may exhibit different behavior as a result.
__typeof__(struct F*) var[invalid]; // expected-error-re {{use of undeclared identifier 'invalid'{{$}}}}
void PR21656() {
flo... | // RUN: %clang_cc1 -fsyntax-only -verify %s
//
// This file contains typo correction tests which hit different code paths in C
// than in C++ and may exhibit different behavior as a result.
__typeof__(struct F*) var[invalid]; // expected-error-re {{use of undeclared identifier 'invalid'{{$}}}}
void PR21656() {
flo... | Fix test from my previous commit | Fix test from my previous commit
(I should have re-run the test after running clang-format)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@225515 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-cl... |
29cc413e4a179535fc7003b6e7f3cc67424cca13 | UTAPIObjCAdapter/UTAPIObjCAdapter.h | UTAPIObjCAdapter/UTAPIObjCAdapter.h | //
// UTAPIObjCAdapter-iOS.h
// UTAPIObjCAdapter-iOS
//
// Created by Mark Woollard on 15/05/2016.
// Copyright © 2016 UrbanThings. All rights reserved.
//
#import <UIKit/UIKit.h>
//! Project version number for UTAPIObjCAdapter-iOS.
FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber;
//! Project version ... | //
// UTAPIObjCAdapter-iOS.h
// UTAPIObjCAdapter-iOS
//
// Created by Mark Woollard on 15/05/2016.
// Copyright © 2016 UrbanThings. All rights reserved.
//
//! Project version number for UTAPIObjCAdapter-iOS.
FOUNDATION_EXPORT double UTAPIObjCAdapter_iOSVersionNumber;
//! Project version string for UTAPIObjCAdapt... | Make master header platform neutral | Make master header platform neutral
| C | apache-2.0 | urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple,urbanthings/urbanthings-sdk-apple |
b7a1776530b202dc15387dae8a688e07e956c529 | c/unique_characters.c | c/unique_characters.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int is_unique(char *str)
{
int c;
int table[128];
for (int i = 0; i < 128; i++) {
table[i] = 0;
}
for (int i = 0; i < strlen(str); i++) {
if (str[i] != ' ') {
c = (int) str[i];
table[c]++;
... | Solve c problem to validate a string contains no repeated characters | Solve c problem to validate a string contains no repeated characters
| C | mit | gusortiz/code_challenges,codingpains/code_challenges,codingpains/code_challenges,gusortiz/code_challenges,codingpains/code_challenges | |
cfcd9bc4de42fe201a4d54a6b50144ad87fc6f9f | src/IK.h | src/IK.h | // This file is part of RBDyn.
//
// RBDyn 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 3 of the License, or
// (at your option) any later version.
//
// RBDyn is distributed in the ... | Update documentation for modification of mbc and new properties | Update documentation for modification of mbc and new properties
| C | bsd-2-clause | gergondet/RBDyn,jrl-umi3218/RBDyn,jrl-umi3218/RBDyn,jrl-umi3218/RBDyn,jrl-umi3218/RBDyn,gergondet/RBDyn,gergondet/RBDyn,gergondet/RBDyn,gergondet/RBDyn | |
783ab6c29e2c372ca395cec7683656f593fcd4e2 | tests/regression/37-congruence/03-interval-overflow.c | tests/regression/37-congruence/03-interval-overflow.c | // PARAM: --enable ana.int.interval --enable ana.int.congruence --disable ana.int.def_exc
// Overflow information should be passed from the interval domain to congruences
#include <assert.h>
#include <stdio.h>
int main(){
char r;
if (r) {
r = -68;
} else {
r = -63;
}
char k = r - 80;
assert (k ==... | // PARAM: --enable ana.int.interval --enable ana.int.congruence --disable ana.int.def_exc
// Overflow information should be passed from the interval domain to congruences
#include <assert.h>
#include <stdio.h>
int main(){
signed char r;
if (r) {
r = -68;
} else {
r = -63;
}
signed char k = r - 80;
... | Change UNKNOWN to UNKNOWN! in 37/03 + chars to signed chars | Change UNKNOWN to UNKNOWN! in 37/03 + chars to signed chars
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
1884e824eac4bd2f6210e13fb20708da0b9b4482 | polygonmain.c | polygonmain.c | #include <polygon.h>
int main(int argc, char* argv[]) {
Polygon lol;
lol=createPolygon();
lol=addPoint(lol, createPoint(12.6,-5.3));
lol=addPoint(lol, createPoint(-4.1,456.123));
printf("\n\ntaille : %d", lol.size);
printf("\n\nx premier point : %f", lol.head->value.x);
printf("\ny premier point : %f\n\n",... | #include <polygon.h>
int main(int argc, char* argv[]) {
Polygon lol;
lol=createPolygon();
lol=addPoint(lol, createPoint(12.6,-5.3));
lol=addPoint(lol, createPoint(-4.1,456.123));
lol=addPoint(lol, createPoint(23.7,1));
printf("\n\ntaille : %d", lol.size);
printf("\n\nx premier point : %f", lol.head->value.... | Add a section which test if the removePoint function work | Add a section which test if the removePoint function work
And it work !
| C | mit | UTBroM/GeometricLib |
0f4cfc0a19d5225ffe18695b81dc28bb2ee664d9 | kernel/stdnoreturn.h | kernel/stdnoreturn.h | /*
* Copyright (c) 2011-2013 Graham Edgecombe <graham@grahamedgecombe.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS ... | /*
* Copyright (c) 2011-2013 Graham Edgecombe <graham@grahamedgecombe.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS ... | Fix lack of _Noreturn support in Clang 3.0. | Fix lack of _Noreturn support in Clang 3.0.
| C | isc | grahamedgecombe/arc,grahamedgecombe/arc,grahamedgecombe/arc |
28726b93b0b9ae221f54ab7cc297d09a9af6843a | src/lib/pubkey/rfc6979/rfc6979.h | src/lib/pubkey/rfc6979/rfc6979.h | /*
* RFC 6979 Deterministic Nonce Generator
* (C) 2014 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_RFC6979_GENERATOR__
#define BOTAN_RFC6979_GENERATOR__
#include <botan/bigint.h>
#include <string>
namespace Botan {
/**
* @param x the secret (EC)DSA key
* @param q the group order... | /*
* RFC 6979 Deterministic Nonce Generator
* (C) 2014 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_RFC6979_GENERATOR_H__
#define BOTAN_RFC6979_GENERATOR_H__
#include <botan/bigint.h>
#include <string>
namespace Botan {
/**
* @param x the secret (EC)DSA key
* @param q the group o... | Fix header guard for amalgamation | Fix header guard for amalgamation
| C | bsd-2-clause | randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/bota... |
ea154d7d98f4c6d1ded69031ff583b4f4c47118b | src/core/internal/kms-utils.h | src/core/internal/kms-utils.h | #ifndef __KMS_UTILS_H__
#define __KMS_UTILS_H__
#include <gst/gst.h>
GstElement* kms_get_pipeline();
void kms_dynamic_connection(GstElement *orig, GstElement *dest, const gchar *name);
GstElement* kms_utils_get_element_for_caps(GstElementFactoryListType type,
GstRank rank, const GstCaps *caps,
GstPadDirecti... | #ifndef __KMS_UTILS_H__
#define __KMS_UTILS_H__
#include <gst/gst.h>
#define KMS_DEBUG_PIPE(name) GST_DEBUG_BIN_TO_DOT_FILE_WITH_TS( \
GST_BIN(kms_get_pipeline()), \
GST_DEBUG_GRAPH_SHOW_ALL, name); \
GstElement* kms_get_pipeline();
void kms_dynamic_connection(GstElement *orig, GstElement *dest, const gch... | Create a macro for pipeline debugging | Create a macro for pipeline debugging
| C | lgpl-2.1 | lulufei/kurento-media-server,shelsonjava/kurento-media-server,shelsonjava/kurento-media-server,mparis/kurento-media-server,todotobe1/kurento-media-server,Kurento/kurento-media-server,Kurento/kurento-media-server,mparis/kurento-media-server,TribeMedia/kurento-media-server,TribeMedia/kurento-media-server,lulufei/kurento-... |
ec313ebc744efcab09f2782aa86067cbeec8a424 | [42]_Bleichenbacher_s_e3_RSA_Attack/rsa_sign_constants.h | [42]_Bleichenbacher_s_e3_RSA_Attack/rsa_sign_constants.h | #ifndef _RSA_SIGN_CONSTANTS_H_
#define _RSA_SIGN_CONSTANTS_H_
/*
* RSA Block length. Used to determine the modulo's size.
*/
#define RSA_SIGN_BLOCK_LEN (1024)
#define RSA_SIGN_HASH_METHOD_SHA_1 ("sha1")
#define RSA_SIGN_HASH_METHOD_SHA_256 ("sha256")
/*
* Supported Hashing methods for RSA signature validation
*... | #ifndef _RSA_SIGN_CONSTANTS_H_
#define _RSA_SIGN_CONSTANTS_H_
/*
* RSA Block length. Used to determine the modulo's size.
*/
#define RSA_SIGN_BLOCK_LEN (RSA_SIGN_KEY_BITSIZE/8)
#define RSA_SIGN_KEY_BITSIZE (1024)
#define RSA_SIGN_HASH_METHOD_SHA_1 ("sha1")
#define RSA_SIGN_HASH_METHOD_SHA_256 ("sha256")
/*
* Sup... | Add RSA byte length constant | Add RSA byte length constant
A RSA byte length define was added to disambiguate RSA_KEY_BITLENGTH
(typically 1024 here) from the RSA byte block length.
| C | mit | lucasg/Cryptopals,lucasg/Cryptopals,lucasg/Cryptopals,lucasg/Cryptopals |
55af85fb1da9a202d6ca6f437c30b927d4153c39 | Include/KAI/Platform/GameController.h | Include/KAI/Platform/GameController.h |
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif // SHATTER_PLATFORM_GAME_CONTROLLER_H
//EOF
|
#ifndef KAI_PLATFORM_GAME_CONTROLLER_H
#define KAI_PLATFORM_GAME_CONTROLLER_H
#include KAI_PLATFORM_INCLUDE(GameController.h)
#endif
//EOF
| Add some color for console output | Add some color for console output
Former-commit-id: 315cc71afe5d5245e60ce4564328619c49310b6a
Former-commit-id: 4afa9ab712a2bdbef25bee286ff0bdcf2a8da2b2 | C | mit | cschladetsch/KAI,cschladetsch/KAI,cschladetsch/KAI |
296a1a19d14a6bf5d97e66370d89f0b64da87175 | iree/compiler/Translation/SPIRV/LinalgToSPIRV/Passes.h | iree/compiler/Translation/SPIRV/LinalgToSPIRV/Passes.h | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | // Copyright 2020 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | Fix mismatch in function signature and implementation. | Fix mismatch in function signature and implementation.
PiperOrigin-RevId: 299956663
| C | apache-2.0 | google/iree,iree-org/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree,iree-org/iree,iree-org/iree,iree-org/iree,google/iree,google/iree,google/iree |
63240613241e0de9b977cc2986ef801a40102ddc | PerfCounter.h | PerfCounter.h | #ifndef TUVOK_PERF_COUNTER_H
#define TUVOK_PERF_COUNTER_H
/// Valid performance counters the system should track.
/// When adding a new counter, please add a (units) clause so we know how to
/// interpret the value!
enum PerfCounter {
PERF_DISK_READ=0, // reading bricks from disk (seconds)
PERF_DECOMPRESSION, ... | Add generic perf counter definitions. | Add generic perf counter definitions.
git-svn-id: 0a20d38d1bcdb3210d244a647211d61b0aabf366@284 5b8196f7-c1c0-4be6-8b13-4feed349168d
| C | mit | BlueBrain/Tuvok,BlueBrain/Tuvok,BlueBrain/Tuvok | |
af6f4f4b27bc1d2e6200dbeff38a8f2f21d3dc4a | PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h | PcAtChipsetPkg/Include/Guid/PcAtChipsetTokenSpace.h | /** @file
GUID for PcAtChipsetPkg PCD Token Space
Copyright (c) 2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license ... | Add declaration header file for token space. | Add declaration header file for token space.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8781 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 | |
2307eb88c7452b5a83f7a7931bdf2a0a0435f5f8 | test/input/replace_minus.c | test/input/replace_minus.c | #include <string.h>
#include "../../input.h"
int main(void)
{
char before[64] = "-2+1";
char after[64] = "(0-2.000000)+1";
replace_minus(before);
if (strcmp(before, after) == 0){
return (0);
}
else {
return (-1);
}
}
| #include <string.h>
#include "../../input.h"
int main(void)
{
// a case removable
char before1[64] = "-2+1";
char after1[64] = "(0-2.000000)+1";
replace_minus(before1);
if (strcmp(before1, after1) != 0){
return (-1);
}
// a case not removable
char before2[64] = "3-2";
char ... | Add new test to remove_minus | Add new test to remove_minus
| C | mit | Roadagain/Calculator,Roadagain/Calculator |
40225798d32b3b36bf03583865fe88bfee2f31bc | lib/Common/Memory/MarkContextWrapper.h | lib/Common/Memory/MarkContextWrapper.h | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | Fix casing for relatively included header to fix Linux builds | Fix casing for relatively included header to fix Linux builds
| C | mit | mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore,Microsoft/ChakraCore,mrkmarron/ChakraCore |
5284cde440e54c6a841efb6a5864afdf3a0aa78e | sdl2cubes/tests/test_mesh.c | sdl2cubes/tests/test_mesh.c | #include "../src/mesh_obj.h"
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *args[]) {
if(argc < 2) {
printf("test_mesh test-mesh-name.obj\n");
return 0;
}
// read mesh from standard input, push into obj parser
Mesh *mesh = meshReadOBJ(args[1]);
if(!mesh) {
r... | #include "../src/mesh_obj.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *args[]) {
if(argc < 2) {
printf("usage: test_mesh filename.obj\n");
printf(" pass - (a dash character) as filename to read from stdin\n");
return 0;
}
Mesh *mesh;
//... | Make mesh loader actually read stdin | tests: Make mesh loader actually read stdin
| C | unlicense | teistiz/instanssi-samples |
adcbe2a70a34603eba67d5048b37132804472cda | src/libidaten/cuda/cudainit.h | src/libidaten/cuda/cudainit.h | #pragma once
#include <cuda.h>
#include "cuda/cudautil.h"
namespace idaten {
void initCuda()
{
checkCudaErrors(cuInit(0));
}
} | #pragma once
#include <cuda.h>
#include "cuda/cudautil.h"
namespace idaten {
inline void initCuda()
{
checkCudaErrors(cuInit(0));
}
} | Fix a bug that not inlined. | Fix a bug that not inlined.
| C | mit | nakdai/aten,nakdai/aten |
8f81b4e9d5c0bb8cd34da1d62d670cfa26446e43 | src/google/protobuf/stubs/atomicops_internals_pnacl.h | src/google/protobuf/stubs/atomicops_internals_pnacl.h | // Protocol Buffers - Google's data interchange format
// Copyright 2012 Google Inc. All rights reserved.
// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistri... | Add the missing PNaCl atomicops support. | Add the missing PNaCl atomicops support.
| C | bsd-3-clause | malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf,malthe/google-protobuf | |
fa458a1f7c574c0fe8d40dff4c1af418c365b8ad | src/main.c | src/main.c | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "basic.h"
#include "tuntap_if.h"
#include "utils.h"
int main(int argc, char** argv) {
int tun_fd;
char buf[100];
char *dev = calloc(10, 1);
CLEAR(buf);
tun_fd = tun_alloc(dev);
if (set_i... | #include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
#include "basic.h"
#include "tuntap_if.h"
#include "utils.h"
int main(int argc, char** argv) {
int tun_fd;
char buf[100];
char *dev = calloc(10, 1);
CLEAR(buf);
tun_fd = tun_alloc(dev);
if (set_i... | Read from tun buffer and print hexdump in loop | Read from tun buffer and print hexdump in loop
| C | mit | saminiir/level-ip,saminiir/level-ip |
d222c00f6c4fe1aea3bf4afe45582af8977d6d59 | Sensorama/Sensorama/SRDataModel.h | Sensorama/Sensorama/SRDataModel.h | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | //
// SRDataModel.h
// Sensorama
//
// Created by Wojciech Adam Koszek (h) on 19/04/2016.
// Copyright © 2016 Wojciech Adam Koszek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Realm/Realm.h"
@interface SRDataPoint : RLMObject
@property NSNumber<RLMInt> *accX;
@property NSNumber<RLMInt> *ac... | Add the timezone to the data model. | Add the timezone to the data model.
| C | bsd-2-clause | wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios,wkoszek/sensorama-ios |
f6392137118661add2ab7fc98be42a0c8748bb1d | lib/enable_execute_stack.c | lib/enable_execute_stack.c | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- enable_execute_stack.c - Implement __enable_execute_stack ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add missing include for getpagesize, and fix a typo. | Add missing include for getpagesize, and fix a typo.
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@74588 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 |
a683ed193b85656e90ca7ee54298106fa6a313e4 | tests/regression/36-octapron/17-traces-rpb-litmus.c | tests/regression/36-octapron/17-traces-rpb-litmus.c | // SKIP PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 42; // matches write in t_fun
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
// pthread_mutex_lock(&A);
// pthread_mutex_lock(&B);
// g = 42;
... | // SKIP PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 42; // matches write in t_fun
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t B = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
pthread_mutex_lock(&B);
g = 42;
pthread_... | Remove debugging changes from 36/17 | Remove debugging changes from 36/17
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
4e1124d7c68bc85cc6b6f1adceb63034d4bfe812 | src/REvent.h | src/REvent.h | #ifndef __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#define __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#include <RTypes.h>
class REvent
{
public:
REvent();
virtual
~REvent();
void
accept();
void
ignore();
bool
isAccepted() const;
void
setAccepted(bool accepted);
virtual rcount
type() ... | #ifndef __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#define __INCLUDED_6FCA43F2953F11E6AA6EA088B4D1658C
#include <RTypes.h>
class REvent
{
public:
REvent();
virtual
~REvent();
void
accept();
void
ignore();
bool
isAccepted() const;
void
setAccepted(bool accepted);
virtual rcount
type() ... | Support inhert constructors from BaseType | Support inhert constructors from BaseType
| C | mit | starofrainnight/ArduinoRabirdTookit,starofrainnight/ArduinoRabirdToolkit,starofrainnight/ArduinoRabirdToolkit |
6f24c8ade6012005ceb41b4a2cc70a021d7f1d64 | src/trusted/service_runtime/linux/arm/sel_segments.c | src/trusted/service_runtime/linux/arm/sel_segments.c | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdint.h>
#include "native_client/src/trusted/service_runtime/sel_util.h"
uint32_t NaClGetStackPtr(void) {
uint32_t sp;
as... | /*
* Copyright (c) 2012 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdint.h>
#include "native_client/src/trusted/service_runtime/sel_util.h"
uint32_t NaClGetStackPtr(void) {
uint32_t sp;
as... | Make sel build with clang's built-in assembler. | arm: Make sel build with clang's built-in assembler.
clang's integrated assembler only supports UAL, where sp is spelled
sp and not %sp. Fixes the following error when building with clang's
integrated assembler enabled:
../../native_client/src/trusted/service_runtime/linux/arm/sel_segments.c:13:7: error: unexpected t... | C | bsd-3-clause | sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client,sbc100/native_client |
0f00cf915c8c590d1b00e89ac5e883fe3bfd1213 | main.c | main.c | #include <stdio.h>
#include <stdlib.h>
#include "src/headers.h"
int main()
{
char* taskfilepath = "D:\\zz_exp\\testinggrounds\\tasks.txt";
task_list* list = gettasks(taskfilepath);
task_list* traveller = list;
while ( traveller != NULL ) {
task_t* task = traveller -> task;
result_t* r... | #include <stdio.h>
#include <stdlib.h>
#include "src/headers.h"
int main(int argc, char** argv)
{
for ( int x = 0; x < argc; x++ ) {
char* taskfilepath = argv[x];
task_list* list = gettasks(taskfilepath);
task_list* traveller = list;
while ( traveller != NULL ) {
task_... | Allow user to indicate filepaths of taskfiles | v2.0.1: Allow user to indicate filepaths of taskfiles
User can now usee multiple taskfiles and specify via arguments the
location of taskfiles to be used
| C | mit | DanerJimenez/File-Delivery-Truck |
ab1766cc27f548384b400de3b2417c598da3b503 | src/hello_zproto_selftest.c | src/hello_zproto_selftest.c | /* =========================================================================
hello_zproto_selftest - run self tests
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restric... | /* =========================================================================
hello_zproto_selftest - run self tests
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restric... | Add citizen_server self test to overall self test | Add citizen_server self test to overall self test
| C | mit | jemc/hello_zproto,jemc/hello_zproto,jemc/hello_zproto,jemc/hello_zproto |
18cee717a922876b67f94000db165a875033fb9e | mudlib/mud/home/Text/sys/verb/wiz/ooc/system/borphans.c | mudlib/mud/home/Text/sys/verb/wiz/ooc/system/borphans.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add command to clean up orphaned bigstruct objects | Add command to clean up orphaned bigstruct objects
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka | |
7b4b64768e913c527b4011fd8423037051e8b2b3 | src/ufrn_bti_itp/recursividade_e_modularizacao/q6_achar_menor.c | src/ufrn_bti_itp/recursividade_e_modularizacao/q6_achar_menor.c | #include <stdio.h>
int _findLower(int *vector, int lastIndex, int lowerUntilNow){
if (lastIndex == 0) {
return lowerUntilNow;
} else{
int current = vector[--lastIndex];
lowerUntilNow = (lowerUntilNow < current) ? lowerUntilNow : current;
return _findLower(vector, lastIndex, lowerUntilNow);
}
}
int findLo... | Create q6: lower by recursion | Create q6: lower by recursion
| C | unknown | Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs | |
d786eea17f6d55643ba7df12859d1e60e0c6cb39 | textdocument/lib/grantlee_gui_export.h | textdocument/lib/grantlee_gui_export.h | /*
This file is part of the Grantlee template system.
Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License version 3 only, as published by the Free Software Foundation.
This l... | /*
This file is part of the Grantlee template system.
Copyright (c) 2010 Stephen Kelly <steveire@gmail.com>
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 t... | Fix license header in the export header. | Fix license header in the export header.
| C | lgpl-2.1 | simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,simonwagner/grantlee,cutelyst/grantlee,cutelyst/grantlee,cutelyst/grantlee |
0c5c3b93d8b9b1821c3e128c731ff7788eaf1238 | lib/Target/R600/MCTargetDesc/AMDGPUMCCodeEmitter.h | lib/Target/R600/MCTargetDesc/AMDGPUMCCodeEmitter.h | //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... | //===-- AMDGPUCodeEmitter.h - AMDGPU Code Emitter interface -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix missing C++ mode comment | Fix missing C++ mode comment
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@203133 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymagg... |
f1d4393eb8cedeec0214c497c73a528806ae2118 | src/protocols/rdp/compat/winpr-stream.c | src/protocols/rdp/compat/winpr-stream.c | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | Implement buffer attachment in Stream_New() and Stream_Free() compatibility functions. | GUACAMOLE-25: Implement buffer attachment in Stream_New() and Stream_Free() compatibility functions.
| C | apache-2.0 | mike-jumper/incubator-guacamole-server,apache/guacamole-server,mike-jumper/incubator-guacamole-server,mike-jumper/incubator-guacamole-server,glyptodon/guacamole-server,apache/guacamole-server,glyptodon/guacamole-server,glyptodon/guacamole-server,mike-jumper/incubator-guacamole-server,apache/guacamole-server |
5d55abcfb068c87366329eae8f0502781145b57d | library/context.c | library/context.c | #include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | #include <stdlib.h>
#include <mqtt3.h>
mqtt3_context *mqtt3_context_init(int sock)
{
mqtt3_context *context;
context = malloc(sizeof(mqtt3_context));
if(!context) return NULL;
context->next = NULL;
context->sock = sock;
context->last_msg_in = time(NULL);
context->last_msg_out = time(NULL);
context->keepali... | Delete client info / subscription info on disconnect for clean_start == true. | Delete client info / subscription info on disconnect for clean_start == true.
| C | bsd-3-clause | zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto |
7e04b8a57e4ce2ac54140657e759edd165558cb7 | tests/regression/02-base/69-ipmi-struct-blob-fixpoint.c | tests/regression/02-base/69-ipmi-struct-blob-fixpoint.c | // PARAM: --enable kernel
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/init.h>
#include <linux/device.h>
#include <linux/compat.h>
struct ipmi_file_private
{
struct file *file;
};
static DEFINE_MUTEX(ipmi_mutex);
static int ipmi_open(struct inode *inode, struct file *file)
{
struct ipmi... | Add minimized bench ipmi_devintf fixpoint error test | Add minimized bench ipmi_devintf fixpoint error test
Incomparability between struct and blob in side effect.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
b17244b8aaacaa4bdd06d076f16831ad76b6fb9f | src/new/autonomous.c | src/new/autonomous.c | /* ======================================================================================================
___________________________________________________________________________________________________
| __ __ ________ __ __ __ ______ __ __ _________ ________ |
| \ ... | /* ======================================================================================================
___________________________________________________________________________________________________
| __ __ ________ __ __ __ ______ __ __ _________ ________ |
| \ ... | Reset motor encoders in pre_auton | Reset motor encoders in pre_auton
| C | mit | qsctr/vex-4194b-2016 |
30b0db38ab47bbfcf3c12ec6c8907931ee33b247 | src/engine/render/RenderSystem.h | src/engine/render/RenderSystem.h | #ifndef ENGINE_RENDER_RENDERSYSTEM_H
#define ENGINE_RENDER_RENDERSYSTEM_H
#include "engine/scene/SceneSystem.h"
#include "engine/UI/UISystem.h"
#include "engine/math/vec3.h"
namespace engine {
namespace render {
/**
* RenderSystem is a parent class for the actual rendering systems.
*
* RenderSystem gets poin... | #ifndef ENGINE_RENDER_RENDERSYSTEM_H
#define ENGINE_RENDER_RENDERSYSTEM_H
#include "engine/scene/SceneSystem.h"
#include "engine/UI/UISystem.h"
#include "engine/math/vec3.h"
namespace engine {
namespace render {
/**
* RenderSystem is a parent class for the actual rendering systems.
*
* RenderSystem gets poin... | Update is an abstract base function. | Update is an abstract base function.
| C | bsd-2-clause | LauriM/ProjectIce,LauriM/ProjectIce |
9d9c1caaee69f3f00743f5a2da14e9f2a7a57ede | core/alsp_src/generic/dfltsys.h | core/alsp_src/generic/dfltsys.h | /*==================================================================*
| dfltsys.h
| Copyright (c) 1995, Applied Logic Systems, Inc.
|
| -- Default system settings for property tags
|
| Author: Ken Bowen
| Date: 04/10/95
*==================================================================*/
#define BCINTER 1
... | /*==================================================================*
| dfltsys.h
| Copyright (c) 1995, Applied Logic Systems, Inc.
|
| -- Default system settings for property tags
|
| Author: Ken Bowen
| Date: 04/10/95
*==================================================================*/
#define BCINTER 1
... | Reset FREEZE to 1 to avoid confusion | Reset FREEZE to 1 to avoid confusion
Back in 1998, there was clearly confusion about #if vs #ifdef when FREEZE got set to 0, which is a no-op because FREEZE is always used with #ifdef. Offending commit: 62f68f19fc8f64b7e3003001ee2710d0c90e2554 | C | mit | AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog,AppliedLogicSystems/ALSProlog |
72b8f788149de5d667a0f76b674685bbd82dfc46 | test/Sema/c11-typedef-redef.c | test/Sema/c11-typedef-redef.c | // RUN: %clang_cc1 -std=c11 %s -verify
typedef int type;
typedef type type;
typedef int type;
void f(int N) {
typedef int type2;
typedef type type2;
typedef int type2;
typedef int vla[N]; // expected-note{{previous definition is here}}
typedef int vla[N]; // expected-error{{redefinition of typedef for vari... | // RUN: %clang_cc1 -std=c11 %s -verify
typedef int type;
typedef type type;
typedef int type;
void f(int N) {
typedef int type2;
typedef type type2;
typedef int type2;
typedef int vla[N]; // expected-note{{previous definition is here}}
typedef int vla[N]; // expected-error{{redefinition of typedef for vari... | Extend test-case as requested by Eli | Extend test-case as requested by Eli
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@147974 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
32906dc26611ed18710c338b93136c2a487ada3b | testsuite/tests/unboxed-primitive-args/test_common.c | testsuite/tests/unboxed-primitive-args/test_common.c | /**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | /**************************************************************************/
/* */
/* OCaml */
/* */
/* ... | Update tests/unboxed-primitive-args: bigarray.h is now in caml/ | Update tests/unboxed-primitive-args: bigarray.h is now in caml/
| C | lgpl-2.1 | gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml,gerdstolpmann/ocaml |
0315072ff2ad7dc4707504901c9bcbf2dd77f75e | apps/Mcp9700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c | apps/Mcp9700aTemperatureSensor/Mcp9700aAppComponent/mcp9700aOnWp.c | #include "legato.h"
#include "interfaces.h"
#include "mcp970x.h"
static int WpAdcFunction(int32_t *valueUv)
{
return le_adc_ReadValue("EXT_ADC0", valueUv);
}
le_result_t mangOH_ambientTemperature_Read(double *temperature)
{
int32_t tempInt;
int res = mcp970x_read_temperature(MCP970X_CHIP_9700A, WpAdcFunct... | #include "legato.h"
#include "interfaces.h"
#include "mcp970x.h"
static int WpAdcFunction(int32_t *valueUv)
{
int32_t valueMv;
le_result_t res = le_adc_ReadValue("EXT_ADC0", &valueMv);
if (res == LE_OK)
{
*valueUv = valueMv * 1000;
}
LE_DEBUG("Read %d uV from the ADC during ambient tem... | Add in some logs for the MCP9700A | Add in some logs for the MCP9700A
The temperatures being read back are higher than expected. Add some
logs until the issue is resolved.
| C | mpl-2.0 | mangOH/mangOH,mangOH/mangOH,mangOH/mangOH,mangOH/mangOH |
eb6f229e66a6d86499b00a806297a8610620f9cb | tests/check-gibber-xmpp-node.c | tests/check-gibber-xmpp-node.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gibber/gibber-xmpp-node.h>
#include <check.h>
START_TEST (test_instantiation)
{
GibberXmppNode *node;
node = gibber_xmpp_node_new ("test");
fail_unless (node != NULL);
}
END_TEST
TCase *
make_gibber_xmpp_node_tcase (void)
{
TCase *tc = t... | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <gibber/gibber-xmpp-node.h>
#include <check.h>
START_TEST (test_instantiation)
{
GibberXmppNode *node;
node = gibber_xmpp_node_new ("test");
fail_unless (node != NULL);
node = gibber_xmpp_node_new (NULL);
fail_unless (node != NULL);
}
END... | Test gibber_xmpp_node_[gs]et_language() and node creation with a NULL name | Test gibber_xmpp_node_[gs]et_language() and node creation with a NULL name
20070609084741-f974e-602d6f3a4ba28432895c80518d5ea7daa5c85389.gz
| C | lgpl-2.1 | freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut |
9222b15d2617fda968085abd5b081cb093b76b65 | WebCore/platform/graphics/FontSmoothingMode.h | WebCore/platform/graphics/FontSmoothingMode.h | /*
* Copyright (C) 2009 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions a... | Add file that was missing from the last change | Add file that was missing from the last change
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@48475 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C | bsd-3-clause | primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs,primiano/blink-gitcs | |
d71e81285378e9b1d6a902d970d28730156868d4 | japlay.h | japlay.h | #ifndef _JAPLAY_H_
#define _JAPLAY_H_
#include <stdbool.h> /* bool */
struct song;
struct playlist_entry;
struct playlist;
struct playlist_entry *get_cursor(void);
extern struct playlist *japlay_queue, *japlay_history;
int get_song_info(struct song *song);
struct playlist_entry *add_file_playlist(struct playlist ... | #ifndef _JAPLAY_H_
#define _JAPLAY_H_
#include <stdbool.h> /* bool */
struct song;
struct playlist_entry;
struct playlist;
struct playlist_entry *get_cursor(void);
extern struct playlist *japlay_queue, *japlay_history;
int get_song_info(struct song *song);
struct playlist_entry *add_file_playlist(struct playlist ... | Add missing declaration for start_playlist_scan() | Add missing declaration for start_playlist_scan() [CORRECTIVE]
| C | bsd-3-clause | japeq/japlay |
63f811c3a90072f8c71d6cb0ef4890f5e66b04f6 | os/atOSDefs.h | os/atOSDefs.h |
#ifndef AT_OS_DEFS_H
#define AT_OS_DEFS_H
// Include the window files if this is the windows version.
#ifdef _MSC_VER
#include <windows.h>
#endif
// Include other files to give OS-independent interfaces
#include "atSleep.h"
#include "atStrCaseCmp.h"
#include "atSymbols.h"
#include "atTime.h"
#endif
|
#ifndef AT_OS_DEFS_H
#define AT_OS_DEFS_H
// Include the window files if this is the windows version.
#ifdef _MSC_VER
#include <windows.h>
#endif
// Include other files to give OS-independent interfaces
#include "atSleep.h"
#include "atStr.h"
#include "atSymbols.h"
#include "atTime.h"
#endif
| Change to new name atStr.h. | Change to new name atStr.h.
| C | apache-2.0 | ucfistirl/atlas,ucfistirl/atlas |
77be7b4696b2dca4ea562f4b273d4ed4e5175df2 | doc/tutorial_src/side_effect.c | doc/tutorial_src/side_effect.c | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
static int reader(void *stream) {
return (int)mock(stream);
}
static void writer(void *stream, char *paragraph) {
mock(stream, paragraph);
}
char *read_paragraph(int (*read)(void *), void *stream);
void by_paragraph(int (*read)(void *), void *in, void (*w... | #include <cgreen/cgreen.h>
#include <cgreen/mocks.h>
static int reader(void *stream) {
return (int)mock(stream);
}
static void writer(void *stream, char *paragraph) {
mock(stream, paragraph);
}
char *read_paragraph(int (*read)(void *), void *stream);
void by_paragraph(int (*read)(void *), void *in, void (*w... | Update expect_never -> never_expect in doc | [doc] Update expect_never -> never_expect in doc
The file of side_effect.c in the tutorial used the old version of
`never_expect` function. This commit updates the side-effect file to
have the new version of the function.
| C | isc | cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen,cgreen-devs/cgreen |
3afe5ce3b656cc41fe116c3d2c455d2131fba2b3 | include/perfetto/protozero/contiguous_memory_range.h | include/perfetto/protozero/contiguous_memory_range.h | /*
* Copyright (C) 2017 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 app... | /*
* Copyright (C) 2017 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 app... | Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 am: b0149a850e | Mark ContiguousMemoryRange::size as const. am: f2c28cd765 am: 1b5ab79b0b am: 69614c4761 am: e447d8a1c2 am: b0149a850e
Change-Id: If4c99f80ffc05a66167073f15cf83e73e7329f4b
| C | apache-2.0 | google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto |
462cf17a56979aafaead2e19ea8bc0e82df66a3d | src/OI.h | src/OI.h | #ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "RobotMap.h"
#include <math.h>
class OI
{
private:
Joystick Joystick;
public:
OI();
inline float GetStickX(){ return FractionOmitted(Joystick.GetX()); }
inline float GetStickY(){ return FractionOmitted(Joystick.GetY()); }
inline float GetStickZ(){ return Fr... | #ifndef OI_H
#define OI_H
#include "WPILib.h"
#include "RobotMap.h"
#include <math.h>
class OI
{
private:
Joystick Joystick;
public:
OI();
inline float GetXplusY(){
float val;
val = FractionOmitted(Joystick.GetY() + Joystick.GetX());
if(val > 1.2) val = 1.2;
if(val < -1.2) val = -1.2;
return val;
}
in... | Create GetXplusY function and GetXminusY function | Create GetXplusY function and GetXminusY function | C | epl-1.0 | tokyotechnicalsamurai/shougun |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.