commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
068460e74885378bade28d1c8184b8867128fd39 | test/Driver/XRay/xray-instrument-cpu.c | test/Driver/XRay/xray-instrument-cpu.c | // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: amd64-, x86_64-, x86_64h-, arm, aarch64, arm64
// REQUIRES: linux
typedef int a;
| // RUN: not %clang -o /dev/null -v -fxray-instrument -c %s
// XFAIL: amd64-, x86_64-, x86_64h-, arm, aarch64, arm64, powerpc64le-
// REQUIRES: linux
typedef int a;
| Update XFAIL line after r294781. | Update XFAIL line after r294781.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@294820 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
a0b806ff87bf32930f6713f256068a650d0a8ce5 | ui/views/controls/button/menu_button_delegate.h | ui/views/controls/button/menu_button_delegate.h | // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#pragma once
namespace gfx {
class ... | // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_DELEGATE_H_
#pragma once
#include "ui/views/vie... | Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT. | views: Fix win builder by tagging MenuButtonDelegate with VIEWS_EXPORT.
BUG=117092
TBR=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/9647003
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@125656 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | yitian134/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,adobe/chromium,gav... |
cf0e1ef6f2cde1d075141ded1b12395475fee83a | Archs/Architecture.h | Archs/Architecture.h | #pragma once
class IElfRelocator;
enum class Endianness { Big, Little };
class CArchitecture
{
public:
virtual void AssembleOpcode(const std::wstring& name, const std::wstring& args) = 0;
virtual bool AssembleDirective(const std::wstring& name, const std::wstring& args) = 0;
virtual void NextSection() = 0;
virtu... | #pragma once
class IElfRelocator;
class CAssemblerCommand;
class Tokenizer;
enum class Endianness { Big, Little };
class CArchitecture
{
public:
virtual void AssembleOpcode(const std::wstring& name, const std::wstring& args) = 0;
virtual bool AssembleDirective(const std::wstring& name, const std::wstring& args) = ... | Extend interfaces with new parsing functions | Extend interfaces with new parsing functions
| C | mit | Kingcom/armips,sp1187/armips,sp1187/armips,Kingcom/armips,hrydgard/armips,sp1187/armips,Kingcom/armips,hrydgard/armips,hrydgard/armips |
892f9a9a7049bee59f4e64ee8245fcf5430ec128 | vespalib/src/vespa/vespalib/tensor/default_tensor.h | vespalib/src/vespa/vespalib/tensor/default_tensor.h | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "compact/compact_tensor.h"
#include "compact/compact_tensor_builder.h"
namespace vespalib {
namespace tensor {
struct DefaultTensor {
using type = CompactTensor;
using buil... | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "compact/compact_tensor_v2.h"
#include "compact/compact_tensor_v2_builder.h"
namespace vespalib {
namespace tensor {
struct DefaultTensor {
using type = CompactTensorV2;
us... | Change to using CompactTensorV2 as default impl for sparse tensors. | Change to using CompactTensorV2 as default impl for sparse tensors.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
d65adf9603243c66f9c7f4b5adc2a850c40a146c | tmpgb.c | tmpgb.c | #include <stdio.h>
#include <stdlib.h>
#include "error.h"
#include "memory.h"
#define READ_SIZE 0x4000
static void usage(void)
{
fprintf(stderr, "usage: tmpgb <file>");
exit(EXIT_FAILURE);
}
static void load_rom(const char *rom)
{
FILE *fp;
unsigned char *buffer[READ_SIZE];
size_t nread;
int i = -1;
fp = fo... | #include <stdio.h>
#include <stdlib.h>
#include "error.h"
#include "memory.h"
#define READ_SIZE 0x4000
static void usage(void)
{
fprintf(stderr, "usage: tmpgb <file>");
exit(EXIT_FAILURE);
}
static void load_rom(const char *rom)
{
FILE *fp;
unsigned char buffer[READ_SIZE];
size_t nread;
int i = -1;
fp = fop... | Fix error with char pointer | Fix error with char pointer
| C | mit | hoferm/tmpgb,hoferm/tmpgb |
f0dce4e4ff0dad5a12a2178caa6ddccc4b72debd | tests/simple.h | tests/simple.h | #pragma once
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <check.h>
#include <pal.h>
#include "../../src/base/pal_base_private.h"
#include <common.h>
/* Max allowed diff against expected value */
#define EPSILON_MAX 0.001f
#define EPSILON_RELMAX 0.00001f
struct gold {
f... | #pragma once
#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include <stdbool.h>
#include <check.h>
#include <pal.h>
#include "../../src/base/pal_base_private.h"
#include <common.h>
/* Max allowed diff against expected value */
#ifndef EPSILON_MAX
#define EPSILON_MAX 0.001f
#endif
#ifndef EPSILON_RELMAX
#d... | Allow tests to override error tolerance | tests: Allow tests to override error tolerance
Signed-off-by: Ola Jeppsson <793f970c52ded1276b9264c742f19d1888cbaf73@adapteva.com>
| C | apache-2.0 | Adamszk/pal3,olajep/pal,eliteraspberries/pal,8l/pal,debug-de-su-ka/pal,eliteraspberries/pal,Adamszk/pal3,eliteraspberries/pal,parallella/pal,aolofsson/pal,olajep/pal,Adamszk/pal3,aolofsson/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,parallella/pal,aolofsson/pal,olajep/pal,olajep/pal,8l/pal,eliteraspberries/pal,mat... |
07eda65a17fbf97ef7b1a5da06fde0817d0dc7ef | test2/initialisation/struct/empty/init.c | test2/initialisation/struct/empty/init.c | // RUN: %layout_check %s
// RUN: %check %s
struct A
{
}; // CHEKC: /warning: empty struct/
struct Containter
{
struct A a;
};
struct Pre
{
int i;
struct A a;
int j;
};
struct Pre p = { 1, /* warn */ 2 }; // CHECK: /warning: missing {} initialiser for empty struct/
struct Pre q = { 1, {}, 2 };
main()
{
struct ... | // RUN: %layout_check %s
// RUN: %check %s
struct A
{
}; // CHECK: /warning: empty struct/
struct Container
{
struct A a;
};
struct Pre
{
int i;
struct A a;
int j;
};
struct Pre p = { 1, /* warn */ 2 }; // CHECK: /warning: missing {} initialiser for empty struct/
struct Pre q = { 1, {}, 2 };
main()
{
struct A... | Fix typo in empty struct test check | Fix typo in empty struct test check
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
d8474b64fa65283e503821475ac6d13c28e51b41 | lib/common/globals.c | lib/common/globals.c | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | Make sure fdp global parameters are statically initialized. This avoids making the algorithm independent of processing argv[]. | Make sure fdp global parameters are statically initialized.
This avoids making the algorithm independent of processing argv[].
| C | epl-1.0 | BMJHayward/graphviz,jho1965us/graphviz,jho1965us/graphviz,jho1965us/graphviz,BMJHayward/graphviz,tkelman/graphviz,tkelman/graphviz,BMJHayward/graphviz,kbrock/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,tkelman/graphviz,BMJHayward/graphviz,pixelglow/graphviz,ellson/graphviz,BMJHayward/graphviz,tkelman/g... |
ac6241f2f5f470d14938510c5cd04d1b8f2cb4af | Solutions/01/include/validator.h | Solutions/01/include/validator.h | #ifndef LPSLCD_VALIDATOR_H
#define LPSLCD_VALIDATOR_H
#include "generator.h"
class Validator
{
public:
static bool Validate (const Code & code)
{
// | N - k |
// | ____ |
// | \ a + a | < L
// | /___ i i + k |
... | #ifndef LPSLCD_VALIDATOR_H
#define LPSLCD_VALIDATOR_H
#include "generator.h"
#include <cmath>
class Validator
{
public:
static bool Validate (const Code & code)
{
// | N - k |
// | ____ |
// | \ a + a | < L
// | /___... | Fix compile error on gcc 6.3.0. | Fix compile error on gcc 6.3.0.
| C | mit | Gluttton/PslRK,Gluttton/PslRK,Gluttton/PslRK |
8144596da658cd3854610f51094b7b3407c0d4b4 | solutions/uri/1039/1039.c | solutions/uri/1039/1039.c | #include <math.h>
#include <stdio.h>
int main() {
double r1, x1, y1, r2, x2, y2;
double distance;
while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2) != EOF) {
distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
if (r1 >= distance + r2) {
puts("RI... | #include <math.h>
#include <stdio.h>
int main() {
double r1, x1, y1, r2, x2, y2;
double distance;
while (scanf("%lf %lf %lf %lf %lf %lf", &r1, &x1, &y1, &r2, &x2, &y2)
!= EOF) {
distance = sqrt((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2));
if (r1 >= distance + r2) {
... | Solve Fire Flowers in c | Solve Fire Flowers in c
| C | mit | deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playground,deniscostadsc/playgr... |
3ed71339b1bb80eec219c142aca03a0cf0be0ffa | src/condor_includes/_condor_fix_types.h | src/condor_includes/_condor_fix_types.h | #ifndef FIX_TYPES_H
#define FIX_TYPES_H
#include <sys/types.h>
/*
The system include file defines this in terms of bzero(), but ANSI says
we should use memset().
*/
#if defined(OSF1)
#undef FD_ZERO
#define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p)))
#endif
/*
Various non-POSIX conforming files which depend o... | #ifndef FIX_TYPES_H
#define FIX_TYPES_H
#include <sys/types.h>
/*
The system include file defines this in terms of bzero(), but ANSI says
we should use memset().
*/
#if defined(OSF1)
#undef FD_ZERO
#define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p)))
#endif
/*
Various non-POSIX conforming files which depend o... | Add types "ushort" and "rlim_t" for AIX. | Add types "ushort" and "rlim_t" for AIX.
| C | apache-2.0 | bbockelm/condor-network-accounting,zhangzhehust/htcondor,djw8605/condor,neurodebian/htcondor,clalancette/condor-dcloud,djw8605/htcondor,mambelli/osg-bosco-marco,neurodebian/htcondor,zhangzhehust/htcondor,zhangzhehust/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,clalancette/condor-dcloud,bbockelm... |
6bb6c383a5acfcd734a4453d4f7f20caa727c744 | Josh_Zane_Sebastian/src/interpreter/interpreter.c | Josh_Zane_Sebastian/src/interpreter/interpreter.c | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
void runStep(struct stack_node node, struct stack_node *top) {
switch( node.data.type ) {
case 0:
struct stack_node push;
push.cdr = top;
push.data = node.data;
*top = push;
break;
}
}
| #include <stdlib.h>
#include <stdio.h>
#include <string.h>
void runStep(struct stack_node node, struct stack_node *top) {
switch( node.data.type ) {
case T_INT: push(node, top);
break;
case T_SBRTN:
push(node, top);
break;
case T_char 1:
switch( nonde.data.numval ) {
case '+':
int x =... | Implement interpretation of basic arithmetic and comparatory functions. | Implement interpretation of basic arithmetic and comparatory functions.
| C | mit | aacoppa/final,aacoppa/final |
a70643b3c43dccc4cf855ad3d793044eaf959553 | Wangscape/noise/module/codecs/NoiseSourcesCodec.h | Wangscape/noise/module/codecs/NoiseSourcesCodec.h | #pragma once
#include <spotify/json.hpp>
#include <spotify/json/codec/boost.hpp>
#include "noise/module/NoiseSources.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::NoiseSources>
{
typedef noise::module::NoiseSources NoiseSources;
static codec::object_t<NoiseSources... | #pragma once
#include <spotify/json.hpp>
#include <spotify/json/codec/boost.hpp>
#include "noise/module/NoiseSources.h"
namespace spotify
{
namespace json
{
template<>
struct default_codec_t<noise::module::NoiseSources>
{
typedef noise::module::NoiseSources NoiseSources;
static codec::object_t<NoiseSources... | Correct name of "DisplaceModules" field | Correct name of "DisplaceModules" field
| C | mit | serin-delaunay/Wangscape,Wangscape/Wangscape,Wangscape/Wangscape,serin-delaunay/Wangscape,Wangscape/Wangscape |
1da49b17817fdfb4709976c462cc4a9ca943d989 | scripts/start.c | scripts/start.c | start
Go to Layout [ “budget” (budget) ]
Set Window Title [ Current Window; New Title: "Budget Research" ]
Set Zoom Level
[ 100% ]
#
#Report version number to Memory Switch Table.
Set Field [ MemorySwitch::versionBudget; Reference::version ]
#
#Show regular menus if Admin logs in only.
Show/Hide Text Ruler
[ Hide ]
If ... | start
Go to Layout [ “budget” (budget) ]
Set Window Title [ Current Window; New Title: "Budget Planner" ]
Set Zoom Level
[ 100% ]
#
#Report version number to Memory Switch Table.
Set Field [ MemorySwitch::versionBudget; Reference::version ]
#
#Show regular menus if Admin logs in only.
Show/Hide Text Ruler
[ Hide ]
If [... | Change solution name to Budget Planner | Change solution name to Budget Planner
| C | apache-2.0 | HelpGiveThanks/Budget |
8bb57148432a0aea834343b0c5bfae98d28131b7 | src/buffer.c | src/buffer.c | /*
* buffer.c
*
* Created on: 06.02.2015.
* Author: ichiro
*/
/* Includes ------------------------------------------------------------------*/
#include "buffer.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ---------------------------------------------... | /*
* buffer.c
*
* Created on: 06.02.2015.
* Author: ichiro
*/
/* Includes ------------------------------------------------------------------*/
#include "buffer.h"
/* Private typedef -----------------------------------------------------------*/
/* Private define ---------------------------------------------... | Add a new feature, lol | Add a new feature, lol
| C | mit | futoke/cnc,futoke/cnc,futoke/cnc |
b1d73df29598cb3df43425377a395c1e4cafc1db | src/canard.c | src/canard.c | #include "canard.h"
#include "canard_internals.h"
void canardInitPoolAllocator(CanardPoolAllocator* allocator, CanardPoolAllocatorBlock* buf, unsigned int buf_len)
{
unsigned int current_index = 0;
CanardPoolAllocatorBlock** current_block = &(allocator->free_list);
while (current_index < buf_len)
{
... | #include "canard.h"
#include "canard_internals.h"
CANARD_INTERNAL void canardInitPoolAllocator(CanardPoolAllocator* allocator, CanardPoolAllocatorBlock* buf, unsigned int buf_len)
{
unsigned int current_index = 0;
CanardPoolAllocatorBlock** current_block = &(allocator->free_list);
while (current_index < bu... | Apply internal API marker to declarations too | Apply internal API marker to declarations too
| C | mit | UAVCAN/libcanard,UAVCAN/libcanard,antoinealb/libcanard,UAVCAN/libcanard,antoinealb/libcanard |
1fdc33b04d25fee097eab8b8614569992a0a4bf4 | staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h | staging_vespalib/src/vespa/vespalib/util/scheduledexecutor.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/util/executor.h>
#include <vespa/vespalib/util/time.h>
#include <vector>
class FNET_Transport;
namespace vespalib {
class TimerTask;
/**
* ScheduledExecutor is a class cap... | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vespalib/util/executor.h>
#include <vespa/vespalib/util/time.h>
#include <mutex>
#include <vector>
class FNET_Transport;
namespace vespalib {
class TimerTask;
/**
* ScheduledExecut... | Add include to get declaration for std::mutex (staging_vespalib). | Add include to get declaration for std::mutex (staging_vespalib).
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
7434edc3b555319df75e77ed644f875a3d6f6ed6 | Menu/Code/UI/BRMenuOrderingGroupViewController.h | Menu/Code/UI/BRMenuOrderingGroupViewController.h | //
// BRMenuOrderingGroupViewController.h
// MenuKit
//
// Created by Matt on 29/07/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import <UIKit/UIKit.h>
#import "BRMenuOrderingDelegate.h"
#import <BRStyle/BRUIStylish.h>
@class BRMenuOrderingFlowContr... | //
// BRMenuOrderingGroupViewController.h
// MenuKit
//
// Created by Matt on 29/07/15.
// Copyright (c) 2015 Blue Rocket. Distributable under the terms of the Apache License, Version 2.0.
//
#import <UIKit/UIKit.h>
#import "BRMenuOrderingDelegate.h"
#import <BRStyle/BRUIStylish.h>
@class BRMenuOrderingFlowContr... | Move some action methods into header for subclasses to support. | Move some action methods into header for subclasses to support.
| C | apache-2.0 | Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu |
2b5a62f4d20141c1e94523a5727c5dea3b33f134 | simd/nonnumber.h | simd/nonnumber.h | #if defined (__GNUC__) || defined (__INTEL_COMPILER) || defined (__clang__)
#ifdef INFINITY
#undef INFINITY
#endif
#ifdef NAN
#undef NAN
#endif
#define NAN __builtin_nan("")
#define NANf __builtin_nanf("")
#define INFINITY __builtin_inf()
#define INFINITYf __builtin_inff()
#else
#include <bits/nan.h>
#include <bits/... | #if defined (__GNUC__) || defined (__INTEL_COMPILER) || defined (__clang__)
#ifdef INFINITY
#undef INFINITY
#endif
#ifdef NAN
#undef NAN
#endif
#define NAN __builtin_nan("")
#define NANf __builtin_nanf("")
#define INFINITY __builtin_inf()
#define INFINITYf __builtin_inff()
#else
#include <math.h>
#endif
| Include math.h instead of bits headers. | Include math.h instead of bits headers.
| C | mit | gwiazdorrr/sleef,gwiazdorrr/sleef |
cc73100b98d4ac28318346e4a5d3e303ccadc05a | include/flatcc/flatcc_portable.h | include/flatcc/flatcc_portable.h | #ifndef FLATCC_PORTABLE_H
#define FLATCC_PORTABLE_H
#include "flatcc/portable/portable.h"
#endif /* FLATCC_PORTABLE_H */
| #ifndef FLATCC_PORTABLE_H
#define FLATCC_PORTABLE_H
#include "flatcc/portable/portable_basic.h"
#endif /* FLATCC_PORTABLE_H */
| Reduce chance of include guard conflicts | Reduce chance of include guard conflicts
| C | apache-2.0 | dvidelabs/flatcc,dvidelabs/flatcc,dvidelabs/flatcc |
da663dd03d71768b4b58c0ac2c1ec7b7513b3ef8 | test/NotifierTest.h | test/NotifierTest.h | #pragma once
#include <gtest/gtest.h>
#include <FileIO.h>
#include <czmq.h>
class NotifierTest : public ::testing::Test {
public:
NotifierTest() {
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFileAsRoot(notifierIPCPath);
FileI... | #pragma once
#include <gtest/gtest.h>
#include <FileIO.h>
#include <czmq.h>
class NotifierTest : public ::testing::Test {
public:
NotifierTest() {
};
~NotifierTest() {
}
protected:
virtual void SetUp() {
};
virtual void TearDown() {
FileIO::RemoveFile(notifierIPCPath);
FileIO::Rem... | Change RemoveFileAsRoot to RemoveFile per change in FileIO. | Change RemoveFileAsRoot to RemoveFile per change in FileIO.
| C | mit | LogRhythm/QueueNado,LogRhythm/QueueNado,weberr13/QueueNado,weberr13/QueueNado,john-gress/QueueNado,john-gress/QueueNado |
7777019a00df754e5e61f8d26af86014a02f8f92 | src/pbkdf/pbkdf2/pbkdf2.h | src/pbkdf/pbkdf2/pbkdf2.h | /*
* PBKDF2
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_PBKDF2_H__
#define BOTAN_PBKDF2_H__
#include <botan/pbkdf.h>
#include <botan/mac.h>
namespace Botan {
/**
* PKCS #5 PBKDF2
*/
class BOTAN_DLL PKCS5_PBKDF2 : public PBKDF
{
public:
std::string nam... | /*
* PBKDF2
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_PBKDF2_H__
#define BOTAN_PBKDF2_H__
#include <botan/pbkdf.h>
#include <botan/mac.h>
namespace Botan {
/**
* PKCS #5 PBKDF2
*/
class BOTAN_DLL PKCS5_PBKDF2 : public PBKDF
{
public:
std::string nam... | Fix Doxygen comment in PBKDF2 constructor | Fix Doxygen comment in PBKDF2 constructor
| C | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,randombit/botan,webmaster128/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecuri... |
6c91c7386f846f420cc3130af08d7c07fb1ec637 | src/lang-dutch.c | src/lang-dutch.c | #include "num2words.h"
// Language strings for Dutch
const Language LANG_DUTCH = {
.hours = {
"een",
"twee",
"drie",
"vier",
"vijf",
"zes",
"zeven",
"acht",
"negen",
"tien",
"elf",
"twaalf"
},
.phrases = {
"*$1 uur ",
"vijf over *$1 ",
"tien over *$1 ",
"kwart over *$1 ",
"tien vo... | #include "num2words.h"
// Language strings for Dutch
const Language LANG_DUTCH = {
.hours = {
"een",
"twee",
"drie",
"vier",
"vijf",
"zes",
"zeven",
"acht",
"negen",
"tien",
"elf",
"twaalf"
},
.phrases = {
"*$1 uur ",
"vijf over *$1 ",
"tien over *$1 ",
"kwart over *$1 ",
"tien vo... | Adjust dutch connection lost message. | Adjust dutch connection lost message.
| C | mit | Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Fuzzy-Text-Watch-Plus,Sarastro72/Swedish-Fuzzy-Text-watch,Sarastro72/Fuzzy-Text-Watch-Plus |
559c89fcbf5560c5d72ef1824abe1322bf894dc8 | StarFlight/Classes/SCStarFlightPushClient.h | StarFlight/Classes/SCStarFlightPushClient.h | //
// StarFlightPushClient.h
//
// Created by Starcut Software on 4/30/13.
// Copyright (c) Starcut. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const SCStarFlightClientUUIDNotification;
@interface SCStarFlightPushClient : NSObject <NSURLConnectionDelegate>
... | //
// StarFlightPushClient.h
//
// Created by Starcut Software on 4/30/13.
// Copyright (c) Starcut. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
extern NSString *const SCStarFlightClientUUIDNotification;
@interface SCStarFlightPushClient : NSObject <NSURLConnectionDelegate>
... | Allow optional(nullable) parameters to register starflight-client | Allow optional(nullable) parameters to register starflight-client
| C | mit | StarcutFinland/StarFlight |
01a9aca10d7b2995eae06645ccef2a8487a06137 | src/age/entity/TransformComponent.h | src/age/entity/TransformComponent.h | #pragma once
#include <age/core/MetaEnum.h>
#include <age/entity/Component.h>
#include <age/entity/Export.h>
#include <age/math/Vector.h>
namespace age
{
namespace entity
{
///
/// \struct TransformComponent
///
/// \brief This component is given to entities that hold a position within the scene.
///
//... | #pragma once
#include <age/entity/Component.h>
#include <age/entity/Export.h>
#include <age/math/Vector.h>
namespace age
{
namespace entity
{
///
/// \struct TransformComponent
///
/// \brief This component is given to entities that hold a position within the scene.
///
/// \date June 11, 2017
///
/... | Fix compilation error due to Meta Enum header that no longer exists. | Fix compilation error due to Meta Enum header that no longer exists.
| C | mit | ASxa86/AGE,ASxa86/AGE |
6a32e5daf12ec452f00dcb2c93ef3ea4b5bd99f2 | src/types.h | src/types.h | #ifndef TYPES_H
#define TYPES_H
struct elf_header
{
};
#endif
| #ifndef TYPES_H
#define TYPES_H
#define unsigned char ubyte_t
#define unsigned int uint_t
#define unsigned short int uword_t
#define ELF_FORM 1
#define ELF_32 0
#define ELF_64 1
#define ELF_ORG 1
#define END_BIG 0
#define END_LTL 1
struct el... | Add first version of elf header struct | Add first version of elf header struct
| C | mit | Raiona-IT/ELFReader |
5e00c825d43914ce6ae0d859f72ffbef07794a6c | tests/regression/02-base/66-no-eval-on-write-multi.c | tests/regression/02-base/66-no-eval-on-write-multi.c | //PARAM: --enable ana.int.interval --enable ana.int.enums --exp.privatization "write" -v
#include<pthread.h>
// Test case that shows how avoiding reading integral globals can reduce the number of solver evaluations.
// Avoiding to evaluate integral globals when setting them reduced the number of necessary evaluations... | //PARAM: --enable ana.int.interval --enable ana.int.enums --exp.privatization "write" -v
#include<pthread.h>
// Test case that shows how avoiding reading integral globals can reduce the number of solver evaluations.
// Avoiding to evaluate integral globals when setting them reduced the number of necessary evaluations... | Remove confusing assert from test case | Remove confusing assert from test case
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
790173fc23a95d2fad35adb32a1906cf8af047ad | tests/test_float_macros.c | tests/test_float_macros.c | /*
* Copyright 2019 Arnaud Gelas <arnaud.gelas@sensefly.com>
*
* 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 2019 Arnaud Gelas <arnaud.gelas@sensefly.com>
*
* 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 state unused in float test | tests: Mark state unused in float test
Signed-off-by: Andreas Schneider <5be00ddc76278cf6077f5047ca3384a88460c671@cryptomilk.org>
| C | apache-2.0 | clibs/cmocka,clibs/cmocka |
445f12dca8f06113caa775315bff574dee72b27d | arch/arm/mach-orion5x/include/mach/system.h | arch/arm/mach-orion5x/include/mach/system.h | /*
* arch/arm/mach-orion5x/include/mach/system.h
*
* Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef __ASM_ARCH_SYSTEM_H
#... | /*
* arch/arm/mach-orion5x/include/mach/system.h
*
* Tzachi Perelstein <tzachi@marvell.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef __ASM_ARCH_SYSTEM_H
#... | Fix soft-reset for some platforms | [ARM] orion5x: Fix soft-reset for some platforms
Some platforms, such as the DNS-323 rev C requires the soft reset line
to be toggled on and back off for the reset to work.
Note: The choice of 200ms delay comes from the 2.6.12 based vendor kernel.
It seems to be a -lot- though and I had my device working fine with mu... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_k... |
f258b02abed915e2fadb2af2a4341486e403d104 | test/FrontendC/2004-02-13-Memset.c | test/FrontendC/2004-02-13-Memset.c | // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | count 3
void *memset(void*, int, long);
void bzero(void*, int);
void test(int* X, char *Y) {
memset(X, 4, 1000);
bzero(Y, 100);
}
| // RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | count 3
void *memset(void*, int, long);
void bzero(void*, long);
void test(int* X, char *Y) {
memset(X, 4, 1000);
bzero(Y, 100);
}
| Make the declaration of bzero match size_t on x86-64-linux. | Make the declaration of bzero match size_t on
x86-64-linux.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@58383 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llv... |
6b6a544be44a930942bfce48211329bdca6cd5cf | hab/arduino/usage.c | hab/arduino/usage.c | #include "sim-hab.h"
//
// display usage
//
void usage(void)
{
fprintf(stderr,
"\nsim-hab must be ran with two options. -p and -a both followed\n"
"by a file location. To determine the file locations run the\n"
"findPort program.\n"
"\n"
"usage: sim-hab... | #include "sim-hab.h"
//
// display usage
//
void usage(void)
{
fprintf(stderr,
"\ncgba-sim-arduino-hab must be ran with one option. -a followed\n"
"by a file location.\n"
"\n"
"usage: cgba-sim-arduino-hab [OPTIONS]\n"
" -?, --help Show this ... | Modify arduino hab help menu. | Modify arduino hab help menu.
| C | lgpl-2.1 | ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead,ldm5180/hammerhead |
7c3180c7c705795684dd54b3fa98c647c7599732 | gfx/gl_common.h | gfx/gl_common.h | #ifndef _GL_COMMON_H
#define _GL_COMMON_H
#if defined(USING_GLES2)
#ifdef IOS
// I guess we can soon add ES 3.0 here too
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#else
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#ifndef MAEMO
#include <EGL/egl.h>
#endif // !MAEMO
#endif // IOS
#if defined(ANDR... | #ifndef _GL_COMMON_H
#define _GL_COMMON_H
#if defined(USING_GLES2)
#ifdef IOS
#include <OpenGLES/ES3/gl.h>
#include <OpenGLES/ES3/glext.h>
#include <OpenGLES/ES2/gl.h>
#include <OpenGLES/ES2/glext.h>
#else
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#ifndef MAEMO
#include <EGL/egl.h>
#endif // !MAEMO
#endif // IO... | Add ES 3.0 support for iPhone | Add ES 3.0 support for iPhone | C | mit | unknownbrackets/native,zhykzhykzhyk/ppsspp-native,zhykzhykzhyk/ppsspp-native,unknownbrackets/native,hrydgard/native,zhykzhykzhyk/ppsspp-native,hrydgard/native,libretro/ppsspp-native,hrydgard/native,unknownbrackets/native,libretro/ppsspp-native,zhykzhykzhyk/ppsspp-native,hrydgard/native,libretro/ppsspp-native,libretro/p... |
c968cf224a77473fd0670ec9d52a64ac6e153c7e | _cdblib.c | _cdblib.c | #include "Python.h"
/* Return a Python long instance containing the value of the DJB hash function
* for the given string or array. */
static PyObject *
djb_hash(PyObject *self, PyObject *args)
{
const unsigned char *s;
unsigned int h = 5381;
Py_ssize_t len;
if(! PyArg_ParseTuple(args, "t#", &s, &len... | #define PY_SSIZE_T_CLEAN
#include "Python.h"
/* Return a Python long instance containing the value of the DJB hash function
* for the given string or array. */
static PyObject *
djb_hash(PyObject *self, PyObject *args)
{
const unsigned char *s;
unsigned int h = 5381;
Py_ssize_t len;
if(! PyArg_ParseT... | Fix 64-bit breakage introduced in rev 04f373b0e015 | Fix 64-bit breakage introduced in rev 04f373b0e015
According to PEP-353:
"The conversion codes 's#' and 't#' will output Py_ssize_t if
the macro PY_SSIZE_T_CLEAN is defined before Python.h is included,
and continue to output int if that macro isn't defined."
| C | mit | dw/python-pure-cdb,douglasbagnall/python-pure-cdb,douglasbagnall/python-pure-cdb,pombredanne/python-pure-cdb,douglasbagnall/python-pure-cdb,pombredanne/python-pure-cdb,dw/python-pure-cdb |
0594623991b24dc37c7a9934cbd87d486f564608 | SSPSolution/SSPSolution/GameStateHandler.h | SSPSolution/SSPSolution/GameStateHandler.h | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Game... | #ifndef SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#define SSPAPPLICATION_GAMESTATES_GAMESTATEHANDLER_H
#include "GameState.h"
#include "StartState.h"
#include "LevelSelectState.h"
#include <vector>
//#define START_WITHOUT_MENU
class GameStateHandler
{
private:
std::vector<GameState*> m_stateStack;
std::vector<Ga... | ADD commented out skip menu | ADD commented out skip menu
| C | apache-2.0 | Chringo/SSP,Chringo/SSP |
2fefbbf03dbacb0ac6f5da487dad19bbe0958074 | source/daplink/interface/tasks.h | source/daplink/interface/tasks.h | /**
* @file tasks.h
* @brief Macros for configuring the run time tasks
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2020, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in ... | /**
* @file tasks.h
* @brief Macros for configuring the run time tasks
*
* DAPLink Interface Firmware
* Copyright (c) 2009-2020, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may
* not use this file except in ... | Fix k64f stack overflow during WebUSB flashing | Fix k64f stack overflow during WebUSB flashing
When flashing via the WebUSB interface (CMSIS v2) the K64F hangs and
USB eventually times out. This is because the main stack overflows
during this operation casuing RTX to trap and loop forever in
osRtxErrorNotify.
This patch prevents a stack overflow by by increasing t... | C | apache-2.0 | google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port |
860c40fee51dd87814b949a967ea77fd34e9fb1c | 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 103
#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 104
#endif
| Update Skia milestone to 104 | Update Skia milestone to 104
Change-Id: Iafd9cf15ac3c42bda7fa6b6857a82dc2eae6d234
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/540296
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Eric Boren <0e499112533c8544f0505ea0d08394fb5ad7d8fa@google.com>
Commit-Que... | C | bsd-3-clause | google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia,google/skia |
e09d9db1a20d9e93bdb568975f26687b94ba7f7e | include/hl7parser/config.h | include/hl7parser/config.h | #ifndef HL7PARSER_CONFIG_H
#define HL7PARSER_CONFIG_H
/**
* \file config.h
*
* Generic configuration directives and macros used by the HL7 parser.
*
* \internal
* Copyright (c) 2003-2011 \b Erlar (http://erlar.com)
*/
/* ------------------------------------------------------------------------
Headers
----------... | #ifndef HL7PARSER_CONFIG_H
#define HL7PARSER_CONFIG_H
/**
* \file config.h
*
* Generic configuration directives and macros used by the HL7 parser.
*
* \internal
* Copyright (c) 2003-2011 \b Erlar (http://erlar.com)
*/
/* ------------------------------------------------------------------------
Headers
----------... | Add attribute for unused arguments | Add attribute for unused arguments
| C | apache-2.0 | jcomellas/hl7parser,jcomellas/hl7parser,jcomellas/hl7parser |
4e6c43c4fc864ae932243ee23cb5f104d0e342b3 | kernel/kabort.c | kernel/kabort.c | #if defined(__linux__)
#include <stdio.h>
#else
#include "../tlibc/stdio/stdio.h"
#endif
void abort(void)
{
// TODO: Add proper kernel panic.
printf("Kernel Panic! abort()\n");
while ( 1 ) { }
}
| #include "kputs.c"
void abort(void)
{
// TODO: Add proper kernel panic.
kputs("Kernel Panic! abort()\n");
while ( 1 ) { }
}
| Replace include stdio with include terminal | Replace include stdio with include terminal
| C | mit | awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth |
08d54e91deb4163df649161abadd5de89852c474 | APLifecycleHooks/APLifecycleHooks.h | APLifecycleHooks/APLifecycleHooks.h | //
// APLifecycleHooks.h
// LoyaltyRtr
//
// Created by David Benko on 7/22/14.
// Copyright (c) 2014 David Benko. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface APLifecycleHooks : NSObject
+(void)setSDKLogging:(BOOL)shouldLog;
+(void)synchronousConnectionFinished:(void (^)(NSData *downloade... | //
// APLifecycleHooks.h
// LoyaltyRtr
//
// Created by David Benko on 7/22/14.
// Copyright (c) 2014 David Benko. All rights reserved.
//
#import <Foundation/Foundation.h>
#define __VERBOSE
@interface APLifecycleHooks : NSObject
+ (void)connectionWillStart:(NSURLRequest * (^)(NSURLRequest * req))connectionWill... | Update method defs for v7 | Update method defs for v7 | C | mit | AnyPresence/APLifecycleHooks |
a83c10d6ea79771eb898a72ca7768b17fe23835f | Menu/Code/UI/BRMenuPlusMinusButton.h | Menu/Code/UI/BRMenuPlusMinusButton.h | //
// BRMenuPlusMinusButton.h
// Menu
//
// Created by Matt on 4/17/13.
// Copyright (c) 2013 Pervasent Consulting, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class BRMenuUIStyle;
IB_DESIGNABLE
@interface BRMenuPlusMinusButton : UIControl
@property (nonatomic, strong) BRMenuUIStyle *uiStyle;
@propert... | //
// BRMenuPlusMinusButton.h
// Menu
//
// Created by Matt on 4/17/13.
// Copyright (c) 2013 Pervasent Consulting, Inc. All rights reserved.
//
#import <UIKit/UIKit.h>
@class BRMenuUIStyle;
IB_DESIGNABLE
@interface BRMenuPlusMinusButton : UIControl
@property (nonatomic, strong) IBOutlet BRMenuUIStyle *uiStyle;... | Add some IB support for uiStyle. | Add some IB support for uiStyle.
| C | apache-2.0 | Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu,Blue-Rocket/BRMenu |
a9787a770a80293b0b709a49403460c9a380c9ed | lib/ReaderWriter/ELF/ARM/ARMDynamicLibraryWriter.h | lib/ReaderWriter/ELF/ARM/ARMDynamicLibraryWriter.h | //===- lib/ReaderWriter/ELF/ARM/ARMDynamicLibraryWriter.h -----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | //===- lib/ReaderWriter/ELF/ARM/ARMDynamicLibraryWriter.h -----------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... | Remove unused fields in dynamic library writer | [ARM] Remove unused fields in dynamic library writer
git-svn-id: f6089bf0e6284f307027cef4f64114ee9ebb0424@237883 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/lld,llvm-mirror/lld |
a26f752285f822a3651bb75f78090bdbcbb7f9e5 | src/omv/xalloc.c | src/omv/xalloc.c | /*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Memory allocation functions.
*
*/
#include <mp.h>
#include "mdefs.h"
#include "xalloc.h"
void *xalloc_fail()
{
... | /*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Memory allocation functions.
*
*/
#include <mp.h>
#include "mdefs.h"
#include "xalloc.h"
void *xalloc_fail()
{
... | Change memory exception to MemoryError | Change memory exception to MemoryError
| C | mit | kwagyeman/openmv,kwagyeman/openmv,SmartArduino/openmv,openmv/openmv,SmartArduino/openmv,iabdalkader/openmv,tianzhihen/openmv,iabdalkader/openmv,tianzhihen/openmv,openmv/openmv,openmv/openmv,iabdalkader/openmv,SmartArduino/openmv,tianzhihen/openmv,openmv/openmv,iabdalkader/openmv,SmartArduino/openmv,kwagyeman/openmv,kwa... |
2720b5a73de4f2bcac26affa08b5e1303b5301ea | components/TARGET_PSA/services/attestation/tfm_client.h | components/TARGET_PSA/services/attestation/tfm_client.h | /*
* Copyright (c) 2018-2019 ARM Limited. All rights reserved.
*
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | /*
* Copyright (c) 2018-2019 ARM Limited. All rights reserved.
*
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... | Update include psa_defs -> psa/client | Update include psa_defs -> psa/client
| C | apache-2.0 | mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed |
c75706f29ac0844cc480f6333415830f5983d6f7 | src/lib/str-sanitize.c | src/lib/str-sanitize.c | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if ((unsigned char)*p < 32)
break;
}
str_append_n(dest, src, (size_t)(p - src));
fo... | /* Copyright (c) 2004 Timo Sirainen */
#include "lib.h"
#include "str.h"
#include "str-sanitize.h"
void str_sanitize_append(string_t *dest, const char *src, size_t max_len)
{
const char *p;
for (p = src; *p != '\0'; p++) {
if (((unsigned char)*p & 0x7f) < 32)
break;
}
str_append_n(dest, src, (size_t)(p - s... | Convert also 0x80..0x9f characters to '?' | Convert also 0x80..0x9f characters to '?'
| C | mit | Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot,Distrotech/dovecot |
f73128a5e940256d42bdb0efcb62ab2653910614 | src/matchers/EXPMatchers+beIdenticalTo.h | src/matchers/EXPMatchers+beIdenticalTo.h | #import "Expecta.h"
EXPMatcherInterface(_beIdenticalTo, (void *expected));
#if __has_feature(objc_arc)
#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected)
#else
#define beIdenticalTo _beIdenticalTo
#endif
| #import "Expecta.h"
EXPMatcherInterface(_beIdenticalTo, (void *expected));
EXPMatcherInterface(beIdenticalTo, (void *expected)); // to aid code completion
#if __has_feature(objc_arc)
#define beIdenticalTo(expected) _beIdenticalTo((__bridge void*)expected)
#else
#define beIdenticalTo _beIdenticalTo
#endif
| Add code completion helper for beIdenticalTo() | Add code completion helper for beIdenticalTo()
Like for equal() this helps discovering the matcher using code completion in Xcode. | C | mit | specta/expecta,iosdev-republicofapps/expecta,tonyarnold/expecta,jmoody/expecta,Bogon/expecta,suxinde2009/expecta,jmburges/expecta,wessmith/expecta,udemy/expecta,PatrykKaczmarek/expecta,iosdev-republicofapps/expecta,ashfurrow/expecta,PatrykKaczmarek/expecta,tonyarnold/expecta,ashfurrow/expecta,jmoody/expecta,tonyarnold/... |
ba8f2bf8ca42a4150dce14ee87e0b2c69ae58ad2 | testmud/mud/include/game/paths.h | testmud/mud/include/game/paths.h | #include <config.h>
#define LIB_VERB (USR_DIR + "/Game/lib/verb")
#define LIB_SIGHANDLER (USR_DIR + "/Game/lib/sighandler")
#define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object")
#define ALIASD (USR_DIR + "/Game/sys/aliasd")
#define ACCOUNTD (USR_DIR + "/Game/sys/accountd")
#define ROOT (USR_DIR + "/Game/sys/... | #include <config.h>
#define LIB_VERB (USR_DIR + "/Game/lib/verb")
#define LIB_SIGHANDLER (USR_DIR + "/Game/lib/sighandler")
#define GAME_LIB_OBJECT (USR_DIR + "/Game/lib/object")
#define ALIASD (USR_DIR + "/Game/sys/aliasd")
#define BAND (USR_DIR + "/Game/sys/band")
#define ACCOUNTD (USR_DIR + "/Game/sys/acco... | Add ban manager to game object list | Add ban manager to game object list
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
2070f194f2fe399158cbc43a7379ef5572761950 | include/cpp-sort/detail/functional.h | include/cpp-sort/detail/functional.h | /*
* Copyright (c) 2021 Morwenn
* SPDX-License-Identifier: MIT
*/
#ifndef CPPSORT_DETAIL_FUNCTIONAL_H_
#define CPPSORT_DETAIL_FUNCTIONAL_H_
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <type_traits>
#include <utility>
#... | /*
* Copyright (c) 2021-2022 Morwenn
* SPDX-License-Identifier: MIT
*/
#ifndef CPPSORT_DETAIL_FUNCTIONAL_H_
#define CPPSORT_DETAIL_FUNCTIONAL_H_
////////////////////////////////////////////////////////////
// Headers
////////////////////////////////////////////////////////////
#include <type_traits>
#include <utili... | Make indirect_t inherit from projection_base | Make indirect_t inherit from projection_base
| C | mit | Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort,Morwenn/cpp-sort |
0dac68d485c739947ea064b63dd4312ffc42a96c | You-DataStore/internal/operations/erase_operation.h | You-DataStore/internal/operations/erase_operation.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_
#include "../operation.h"
namespace You {
namespace DataStore {
namespace Internal {
class EraseOperation : public IOperation {
public:
EraseOperation(TaskId);
bool run();
};
} // ... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_
#define YOU_DATASTORE_INTERNAL_OPERATIONS_ERASE_OPERATION_H_
#include "../operation.h"
namespace You {
namespace DataStore {
namespace Internal {
class EraseOperation : public IOperation {
public:
explicit EraseOperation(TaskId);
bool run();
... | Add explicit modifier to EraseOperation ctor | Add explicit modifier to EraseOperation ctor
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
ce8c68c164436fbd394bac5c2287cfebe06e8f7c | example-AllComponentsGui/src/ofApp.h | example-AllComponentsGui/src/ofApp.h | #pragma once
#include "ofMain.h"
#include "ofxDatGui.h"
class ofApp : public ofBaseApp{
public:
void setup();
void draw();
void update();
ofxDatGui* gui;
bool mFullscreen;
void refreshWindow();
void toggleFullscreen();
void keyPressed(int key);
... | #pragma once
#include "ofMain.h"
#include "ofxDatGui.h"
class ofApp : public ofBaseApp{
public:
void setup();
void draw();
void update();
ofxDatGui* gui;
bool mFullscreen;
void refreshWindow();
void toggleFullscreen();
void keyPressed(int key);
... | Fix for AllComponentsGui example under Visual Studio | Fix for AllComponentsGui example under Visual Studio
| C | mit | mrbichel/ofxDatGui |
730835bec1656c455fb759ebb4d22dcfc595f933 | LCDManager.h | LCDManager.h | #ifndef LCDManager_h
#define LCDManager_h
#include "Arduino.h"
#include <LiquidCrystalSPI.h>
class LCDManager{
public :
LCDManager(int line, int cols, int pin);
LiquidCrystalSPI screen();
void clearLine(int line);
void backlight(bool status);
void setBacklightPin(int pin);
void message(String message);
... | #ifndef LCDManager_h
#define LCDManager_h
#include "Arduino.h"
#include <LiquidCrystalSPI.h>
#include <SPI.h>
class LCDManager{
public :
LCDManager(int line, int cols, int pin);
LiquidCrystalSPI screen();
void clearLine(int line);
void backlight(bool status);
void setBacklightPin(int pin);
void message(S... | Add the import for SPI in the library directly | Add the import for SPI in the library directly
| C | apache-2.0 | thibautrey/ArduinoScreenMessage |
9a909d3e6778fd655397f304bf42cdce163e43a0 | php_phpiredis.h | php_phpiredis.h | #ifndef PHP_PHPIREDIS_H
#define PHP_PHPIREDIS_H 1
#define PHP_PHPIREDIS_VERSION "1.0"
#define PHP_PHPIREDIS_EXTNAME "phpiredis"
PHP_MINIT_FUNCTION(phpiredis);
PHP_FUNCTION(phpiredis_connect);
PHP_FUNCTION(phpiredis_pconnect);
PHP_FUNCTION(phpiredis_disconnect);
PHP_FUNCTION(phpiredis_command_bs);
PHP_FUNCTION(phpired... | #ifndef PHP_PHPIREDIS_H
#define PHP_PHPIREDIS_H 1
#define PHP_PHPIREDIS_VERSION "1.0.0"
#define PHP_PHPIREDIS_EXTNAME "phpiredis"
PHP_MINIT_FUNCTION(phpiredis);
PHP_FUNCTION(phpiredis_connect);
PHP_FUNCTION(phpiredis_pconnect);
PHP_FUNCTION(phpiredis_disconnect);
PHP_FUNCTION(phpiredis_command_bs);
PHP_FUNCTION(phpir... | Add patch release in PHP_PHPIREDIS_VERSION. | Add patch release in PHP_PHPIREDIS_VERSION.
| C | bsd-2-clause | jymsy/phpiredis,nrk/phpiredis,RustJason/phpiredis,Danack/phpiredis,RustJason/phpiredis,Danack/phpiredis,jymsy/phpiredis,RustJason/phpiredis,nrk/phpiredis,Danack/phpiredis,nrk/phpiredis |
ae193c0aadeaa9be7e65afa87268436ee582fdb3 | src/thsh.c | src/thsh.c | /*
============================================================================
Name : thsh.c
Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey
Version :
Copyright : Copyright 2009 Jon Stacey. All rights reserved.
Description : Hello World in C, Ansi-style
=================... | /*
============================================================================
Name : thsh.c
Authors : Collin Kruger, Denton Underwood, John Christensen, Jon Stacey
Version :
Copyright : Copyright 2009 Jon Stacey. All rights reserved.
Description : Hello World in C, Ansi-style
=================... | Disable buffering to overcome apparent Eclipse bug | Disable buffering to overcome apparent Eclipse bug
| C | mit | jmstacey/thsh |
13b3021a24f7801a340a4974da3a79cfca95efb8 | common/common.h | common/common.h | #ifndef PS2AUTOTESTS_COMMON_H
#define PS2AUTOTESTS_COMMON_H
#include <stdio.h>
#include <tamtypes.h>
// Defines for MSVC highlighting. Not intended to actually compile with msc.
#ifdef _MSC_VER
void printf(const char *s, ...);
#define __attribute__(x)
#endif
#endif
| #ifndef PS2AUTOTESTS_COMMON_H
#define PS2AUTOTESTS_COMMON_H
// Defines for MSVC highlighting. Not intended to actually compile with msc.
#ifdef _MSC_VER
#define __STDC__
#define _EE
#define __attribute__(x)
#endif
#include <stdio.h>
#include <tamtypes.h>
#endif
| Adjust MSVC highlighting defines a bit. | Adjust MSVC highlighting defines a bit.
| C | isc | jpd002/ps2autotests,jpd002/ps2autotests,unknownbrackets/ps2autotests,unknownbrackets/ps2autotests,unknownbrackets/ps2autotests,jpd002/ps2autotests |
66dc55d4af2bb508965b87745fa1201298105650 | gui/profiledialog.h | gui/profiledialog.h | #ifndef PROFILEDIALOG_H
#define PROFILEDIALOG_H
#include "ui_profiledialog.h"
#include <QDialog>
namespace trace { class Profile; }
class ProfileDialog : public QDialog, public Ui_ProfileDialog
{
Q_OBJECT
public:
ProfileDialog(QWidget *parent = 0);
~ProfileDialog();
void setProfile(trace::Profi... | #ifndef PROFILEDIALOG_H
#define PROFILEDIALOG_H
#include "ui_profiledialog.h"
#include <QDialog>
namespace trace { struct Profile; }
class ProfileDialog : public QDialog, public Ui_ProfileDialog
{
Q_OBJECT
public:
ProfileDialog(QWidget *parent = 0);
~ProfileDialog();
void setProfile(trace::Prof... | Fix erroneous class Profile forward declaration to struct Profile. | Fix erroneous class Profile forward declaration to struct Profile.
| C | mit | joshua5201/apitrace,apitrace/apitrace,swq0553/apitrace,tuanthng/apitrace,apitrace/apitrace,EoD/apitrace,surround-io/apitrace,joshua5201/apitrace,surround-io/apitrace,PeterLValve/apitrace,surround-io/apitrace,joshua5201/apitrace,apitrace/apitrace,trtt/apitrace,EoD/apitrace,EoD/apitrace,trtt/apitrace,surround-io/apitrace... |
6054ffdeccfc50bfe49f83c60b8a2a7fb35ee10d | control.c | control.c | #include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
... | #include "hardware/packet.h"
#include "serial.h"
void btoa(int num, char *buf, int digits) {
int shift = digits - 1;
int current = pow(2, shift);
char digit[2];
while (current > 0) {
sprintf(digit, "%d", ((num & current) >> shift) & 1);
strncat(buf, digit, 1);
shift--;
... | Add function to convert a string to an integer | Add function to convert a string to an integer
| C | agpl-3.0 | jackwilsdon/lightcontrol,jackwilsdon/lightcontrol |
6f791eabab8ee5bfa1567e87cb9dd851e6d99c71 | include/ola/math/Random.h | include/ola/math/Random.h | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | /*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it wi... | Fix the deliberate error, Travis should go green now | Fix the deliberate error, Travis should go green now
| C | lgpl-2.1 | nightrune/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola,ld3300/ola,ld3300/ola,nightrune/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola,nightrune/ola,ld3300/ola |
a356bd07150e558e19cead5eaa9d11e78b7842cb | test/ClangModules/Inputs/resolve-cross-language/BaseUser.framework/Headers/BaseUser.h | test/ClangModules/Inputs/resolve-cross-language/BaseUser.framework/Headers/BaseUser.h | @import Base;
@import ObjectiveC;
BaseClass *getBaseClassObjC();
void useBaseClassObjC(BaseClass *);
@interface UserClass : NSObject <BaseProto>
@end
id <BaseProto> getBaseProtoObjC();
void useBaseProtoObjC(id <BaseProto>);
| @import Base;
@import ObjectiveC;
BaseClass *getBaseClassObjC();
void useBaseClassObjC(BaseClass *);
@interface UserClass : NSObject <BaseProto>
@end
id <BaseProto> getBaseProtoObjC();
void useBaseProtoObjC(id <BaseProto>);
@interface BaseClass (ObjCExtensions)
- (void)categoryMethod;
@end
| Add a test for ObjC categories on Swift classes. | [ClangImporter] Add a test for ObjC categories on Swift classes.
...that get unified by the importer.
Swift SVN r15083
| C | apache-2.0 | ken0nek/swift,JGiola/swift,deyton/swift,austinzheng/swift,bitjammer/swift,stephentyrone/swift,airspeedswift/swift,bitjammer/swift,JGiola/swift,glessard/swift,therealbnut/swift,ahoppen/swift,mightydeveloper/swift,allevato/swift,sdulal/swift,ben-ng/swift,codestergit/swift,mightydeveloper/swift,calebd/swift,nathawes/swift... |
15b9e2c5ff7ba51288932b095f3f9949104143d6 | src/interfaces/ecpg/pgtypeslib/common.c | src/interfaces/ecpg/pgtypeslib/common.c | #include <errno.h>
#include "extern.h"
char *
pgtypes_alloc(long size)
{
char *new = (char *) calloc(1L, size);
if (!new)
{
errno = ENOMEM;
return NULL;
}
memset(new, '\0', size);
return (new);
}
char *
pgtypes_strdup(char *str)
{
char *new = (char *) strdup(str);
if (!new)
errno = ENOMEM;
return ... | #include <errno.h>
#include <stdlib.h>
#include "extern.h"
char *
pgtypes_alloc(long size)
{
char *new = (char *) calloc(1L, size);
if (!new)
{
errno = ENOMEM;
return NULL;
}
memset(new, '\0', size);
return (new);
}
char *
pgtypes_strdup(char *str)
{
char *new = (char *) strdup(str);
if (!new)
errn... | Add <stdlib> to add calloc() prototype. | Add <stdlib> to add calloc() prototype.
| C | apache-2.0 | kaknikhil/gpdb,lisakowen/gpdb,yuanzhao/gpdb,cjcjameson/gpdb,yazun/postgres-xl,chrishajas/gpdb,tangp3/gpdb,janebeckman/gpdb,edespino/gpdb,zaksoup/gpdb,arcivanov/postgres-xl,adam8157/gpdb,50wu/gpdb,ovr/postgres-xl,tpostgres-projects/tPostgres,greenplum-db/gpdb,zaksoup/gpdb,oberstet/postgres-xl,adam8157/gpdb,atris/gpdb,ta... |
97a660828160b390186d06e607eeb9d0c1af8bc1 | MBContactPicker/MBContactModel.h | MBContactPicker/MBContactModel.h | //
// MBContactModel.h
// MBContactPicker
//
// Created by Matt Bowman on 12/13/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MBContactPickerModelProtocol <NSObject>
@required
@property (nonatomic, copy) NSString *contactTitle;
@optional
@property ... | //
// MBContactModel.h
// MBContactPicker
//
// Created by Matt Bowman on 12/13/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@protocol MBContactPickerModelProtocol <NSObject>
@required
@property (readonly, nonatomic, copy) NSString *contactTitle;
@optional
... | Make MBContactPickerModelProtocol properties read-only, since that is all that the picker implementation requires, and avoids implementors having to either provide setters, or ignore the Xcode warnings about them not being auto-generated. | Make MBContactPickerModelProtocol properties read-only, since that is all
that the picker implementation requires, and avoids implementors having to
either provide setters, or ignore the Xcode warnings about them not being
auto-generated.
| C | mit | Citrrus/MBContactPicker,xuzhiming/MBContactPicker,octanner/MBContactPicker |
c6aa7012fa24998872f6350a32ff8b3a13add21a | lepton/renderer.h | lepton/renderer.h | /****************************************************************************
*
* Copyright (c) 2008 by Casey Duncan and contributors
* All Rights Reserved.
*
* This software is subject to the provisions of the MIT License
* A copy of the license should accompany this distribution.
* THE SOFTWARE IS PROVIDED "AS IS", W... | /****************************************************************************
*
* Copyright (c) 2008 by Casey Duncan and contributors
* All Rights Reserved.
*
* This software is subject to the provisions of the MIT License
* A copy of the license should accompany this distribution.
* THE SOFTWARE IS PROVIDED "AS IS", W... | Define fminf for platforms that lack it | Define fminf for platforms that lack it
| C | mit | Alwnikrotikz/py-lepton,jmichelsen/py-lepton,tectronics/py-lepton,AlanZatarain/py-lepton,tectronics/py-lepton,AlanZatarain/py-lepton,jmichelsen/py-lepton,Alwnikrotikz/py-lepton |
436c216d0e372f08a8a0a1eab84fb569001c42fa | libsel4/include/sel4/macros.h | libsel4/include/sel4/macros.h | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef __LIBSEL4_MACROS_H
#define __LIBSEL4_MACROS_H
/*
* Some compilers attempt ... | /*
* Copyright 2014, NICTA
*
* This software may be distributed and modified according to the terms of
* the BSD 2-Clause license. Note that NO WARRANTY is provided.
* See "LICENSE_BSD2.txt" for details.
*
* @TAG(NICTA_BSD)
*/
#ifndef __LIBSEL4_MACROS_H
#define __LIBSEL4_MACROS_H
/*
* Some compilers attempt ... | Make enum padding types one less in value so that they are INT_MAX | libsel4: Make enum padding types one less in value so that they are INT_MAX
Having the padding types as INT_MAX + 1 means C++ compilers will end up using
a signed 64 bit integer, as that is the only type that can have a value that
large, as well as the negative values our enums typically contain
| C | bsd-2-clause | DavidVorick/seL4,lukw00/seL4,lukw00/seL4,rzhw/seL4,rzhw/seL4,sutt0n/seL4,sigma-random/seL4,DavidVorick/seL4,codeneomatrix/seL4,CarterTsai/seL4,haitao52198/seL4,rzhw/seL4,gpbonillas/seL4,sutt0n/seL4,gpbonillas/seL4,dailypips/seL4,rzhw/seL4,dailypips/seL4,zhicheng/seL4,watbe/seL4,CarterTsai/seL4,sutt0n/seL4,CarterTsai/se... |
31d22c03b365cd06de6b040deb8ca49d30202205 | Demo/Shared/MASPreferencesWindowController.h | Demo/Shared/MASPreferencesWindowController.h | //
// Created by Vadim Shpakovski on 4/22/11.
// Copyright 2011 Shpakovski. All rights reserved.
//
extern NSString *const kMASPreferencesWindowControllerDidChangeViewNotification;
@interface MASPreferencesWindowController : NSWindowController <NSToolbarDelegate, NSWindowDelegate>
{
@private
NSArray *_viewContr... | //
// Created by Vadim Shpakovski on 4/22/11.
// Copyright 2011 Shpakovski. All rights reserved.
//
extern NSString *const kMASPreferencesWindowControllerDidChangeViewNotification;
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_5
@interface MASPreferencesWindowController : NSWindowController <NSToolbarDeleg... | Allow building with the 10.5 SDK. | Allow building with the 10.5 SDK.
| C | bsd-2-clause | robrix/MASPreferences,konstantinpavlikhin/MASPreferences |
8797e7b4b961988983c92666dc6321a55a737e43 | ktexteditor/ktexteditor_export.h | ktexteditor/ktexteditor_export.h | /* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... | /* This file is part of the KDE project
Copyright (C) 2007 David Faure <faure@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 of the License, or... | Fix up the FOO_EXPORT stuff, per our discussion on k-c-d. CCMAIL: Ch.Ehrlicher@gmx.de,thiago@kde.org | Fix up the FOO_EXPORT stuff, per our discussion on k-c-d.
CCMAIL: Ch.Ehrlicher@gmx.de,thiago@kde.org
(fingers crossed)
svn path=/trunk/KDE/kdelibs/interfaces/ktexteditor/; revision=662070
| C | lgpl-2.1 | DickJ/kate,cmacq2/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,sandsmark/kate,hlamer/kate,jfmcarreira/kate,cmacq2/kate,hlamer/kate,DickJ/kate,DickJ/kate,sandsmark/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate |
6bcbbabb47dd982641859a3b98905f5bda671ded | src/pic32/power.c | src/pic32/power.c | #include "power.h"
#define SLEEP_MODE_ENABLE_BIT 4
void initializePower() {
}
void updatePower() {
}
void enterLowPowerMode() {
// When WAIT instruction is executed, go into SLEEP mode
OSCCONSET = (1 << SLEEP_MODE_ENABLE_BIT);
asm("wait");
// TODO if we wake up, do we resume with the PC right here? ... | #include "power.h"
void initializePower() {
}
void updatePower() {
}
void enterLowPowerMode() {
}
| Remove "in progress" sleep mode code for PIC32 for now. | Remove "in progress" sleep mode code for PIC32 for now.
| C | bsd-3-clause | openxc/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware |
e9144ad771ae3bae8672c4d5492e3901b68a13cf | features/mbedtls/platform/inc/platform_mbed.h | features/mbedtls/platform/inc/platform_mbed.h | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | /**
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* 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 License.
* You may obtain a copy of the License at
*
* http://www.apache.org/l... | Apply new naming convention to mbed TLS macros | Apply new naming convention to mbed TLS macros
| C | apache-2.0 | nRFMesh/mbed-os,netzimme/mbed-os,YarivCol/mbed-os,arostm/mbed-os,infinnovation/mbed-os,nRFMesh/mbed-os,pradeep-gr/mbed-os5-onsemi,adustm/mbed,bcostm/mbed-os,catiedev/mbed-os,fanghuaqi/mbed,maximmbed/mbed,c1728p9/mbed-os,pradeep-gr/mbed-os5-onsemi,CalSol/mbed,netzimme/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,adustm/mbed... |
70917a464535e3a559f6256c721c8ab7626b67e3 | vm/include/capi/ruby/defines.h | vm/include/capi/ruby/defines.h | #ifndef RBX_CAPI_RUBY_DEFINES_H
#define RBX_CAPI_RUBY_DEFINES_H
/* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY 1
#define RUBINIUS 1
#define HAVE_STDARG_PROTOTYPES 1
/* The... | #ifndef RBX_CAPI_RUBY_DEFINES_H
#define RBX_CAPI_RUBY_DEFINES_H
/* Stub file provided for C extensions that expect it. All regular
* defines and prototypes are in ruby.h
*/
#define RUBY 1
#define RUBINIUS 1
#define HAVE_STDARG_PROTOTYPES 1
/* The... | Add explicit define for rb_ary_subseq | Add explicit define for rb_ary_subseq
| C | mpl-2.0 | mlarraz/rubinius,jemc/rubinius,kachick/rubinius,heftig/rubinius,kachick/rubinius,Azizou/rubinius,jsyeo/rubinius,digitalextremist/rubinius,heftig/rubinius,kachick/rubinius,digitalextremist/rubinius,jemc/rubinius,dblock/rubinius,benlovell/rubinius,ngpestelos/rubinius,ruipserra/rubinius,jemc/rubinius,jsyeo/rubinius,sferik... |
ff102fa64bffe1a7facad5256cb474329c931acc | support/hololens/ServoApp/DefaultUrl.h | support/hololens/ServoApp/DefaultUrl.h | #pragma once
#define DEFAULT_URL L"http://paulrouget.com/test/bbjs/basic/";
| #pragma once
#define DEFAULT_URL L"https://servo.org/hl-home/";
| Load hololens demo page by default | Load hololens demo page by default
| C | mpl-2.0 | splav/servo,KiChjang/servo,splav/servo,KiChjang/servo,splav/servo,splav/servo,KiChjang/servo,saneyuki/servo,saneyuki/servo,KiChjang/servo,DominoTree/servo,splav/servo,saneyuki/servo,splav/servo,KiChjang/servo,saneyuki/servo,DominoTree/servo,splav/servo,DominoTree/servo,KiChjang/servo,DominoTree/servo,splav/servo,saneyu... |
406ba05b707496dd83beba008385596df6a094e4 | base/inc/TVersionCheck.h | base/inc/TVersionCheck.h | // @(#)root/base:$Name: $:$Id: TVersionCheck.h,v 1.2 2007/05/10 16:04:32 rdm Exp $
// Author: Fons Rademakers 9/5/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/base:$Name: $:$Id: TVersionCheck.h,v 1.3 2007/05/10 18:16:58 rdm Exp $
// Author: Fons Rademakers 9/5/2007
/*************************************************************************
* Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Hide a static function to CINT. With this fix g4root compiles OK. | Hide a static function to CINT. With this fix g4root compiles OK.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@18737 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT |
2b34779ae26edabbb46f4cdaa32375b6166ced66 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD 0
// Set to ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD 99
// Set to... | Switch version numbers to 0.8.1.99 | Switch version numbers to 0.8.1.99
| C | mit | prark/bitcoinxt,Friedbaumer/litecoin,torresalyssa/bitcoin,pinkevich/dash,magacoin/magacoin,bitbrazilcoin-project/bitbrazilcoin,bcpki/nonce2,phelix/namecore,magacoin/magacoin,rsdevgun16e/energi,emc2foundation/einsteinium,irvingruan/bitcoin,webdesignll/coin,elliotolds/bitcoin,simonmulser/bitcoin,5mil/Tradecoin,ZiftrCOIN/... |
0687192cb8e4a5e89cddc0c8c7c49acf6d604cf7 | UsbDk/RedirectorStrategy.h | UsbDk/RedirectorStrategy.h | #pragma once
#include "FilterStrategy.h"
class CUsbDkRedirectorStrategy : public CUsbDkFilterStrategy
{
public:
virtual NTSTATUS Create(CUsbDkFilterDevice *Owner) override
{ return CUsbDkFilterStrategy::Create(Owner); }
virtual void Delete() override
{}
virtual NTSTATUS MakeAvailable() override;... | #pragma once
#include "FilterStrategy.h"
class CUsbDkRedirectorStrategy : public CUsbDkFilterStrategy
{
public:
virtual NTSTATUS MakeAvailable() override;
virtual NTSTATUS PNPPreProcess(PIRP Irp) override;
private:
static void PatchDeviceID(PIRP Irp);
};
| Drop uneeded members of redirector strategy | UsbDk: Drop uneeded members of redirector strategy
Signed-off-by: Pavel Gurvich <2375fa63e2908bb2df59f606483a3aa92321db7a@daynix.com>
Signed-off-by: Dmitry Fleytman <f50f56ffad4b379c2a89812e98b14900ef87e9ea@redhat.com>
| C | apache-2.0 | SPICE/win32-usbdk,freedesktop-unofficial-mirror/spice__win32__usbdk,daynix/UsbDk,freedesktop-unofficial-mirror/spice__win32__usbdk,daynix/UsbDk,freedesktop-unofficial-mirror/spice__win32__usbdk,SPICE/win32-usbdk |
41de829555f2a17fddd0acae5307bb169be40897 | test/ClangModules/MixedSource/Inputs/mixed-framework/Mixed.framework/Headers/Mixed.h | test/ClangModules/MixedSource/Inputs/mixed-framework/Mixed.framework/Headers/Mixed.h | struct PureClangType {
int x;
int y;
};
#ifndef SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_EXTRA
#endif
#ifndef SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_CLASS_EXTRA
#endif
SWIFT_CLASS("SwiftClass")
__attribute__((objc_root_class))
@interface SwiftClass
@end
@interface SwiftClass (Category)
-... | struct PureClangType {
int x;
int y;
};
#ifndef SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_EXTRA
#endif
#ifndef SWIFT_CLASS
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_CLASS_EXTRA
#endif
SWIFT_CLASS("SwiftClass")
__attribute__((objc_root_class))
@interface SwiftClass
@end
@interface SwiftClass (Category)
- (void)categ... | Remove useless tokens at the end of a preprocessor directive | Remove useless tokens at the end of a preprocessor directive
Swift SVN r24386
| C | apache-2.0 | austinzheng/swift,slavapestov/swift,devincoughlin/swift,khizkhiz/swift,parkera/swift,Ivacker/swift,huonw/swift,JGiola/swift,khizkhiz/swift,dduan/swift,brentdax/swift,kperryua/swift,harlanhaskins/swift,emilstahl/swift,hughbe/swift,uasys/swift,codestergit/swift,felix91gr/swift,huonw/swift,adrfer/swift,shajrawi/swift,Kris... |
a77891726ba57d03abdc2153d38d4c2f45a0d623 | src/tests/log_mock.c | src/tests/log_mock.c | #include "log.h"
#include <stdio.h>
void debug(const char* format, ...) {
#ifdef __DEBUG__
vprintf(format, args);
#endif // __DEBUG__
}
void initializeLogging() { }
| #include "log.h"
#include <stdio.h>
#include <stdarg.h>
void debug(const char* format, ...) {
va_list args;
va_start(args, format);
vprintf(format, args);
va_end(args);
}
void initializeLogging() { }
| Enable printf in unit tests regardless of DEBUG flag status. | Enable printf in unit tests regardless of DEBUG flag status.
| C | bsd-3-clause | openxc/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,openxc/vi-firmware,ene-ilies/vi-firmware,ene-ilies/vi-firmware,openxc/vi-firmware,mgiannikouris/vi-firmware,mgiannikouris/vi-firmware,ene-ilies/vi-firmware |
ca77e66fbcd139c43ee54d371e745bb40b75c095 | o1dropbox.h | o1dropbox.h | #ifndef O1DROPBOX_H
#define O1DROPBOX_H
#include "o1.h"
class O1Dropbox: public O1 {
Q_OBJECT
public:
explicit O1Dropbox(QObject *parent = 0): O1(parent) {
setRequestTokenUrl(QUrl("https://api.dropbox.com/1/oauth/request_token"));
setAuthorizeUrl(QUrl("https://www.dropbox.com/1/oauth/authoriz... | #ifndef O1DROPBOX_H
#define O1DROPBOX_H
#include "o1.h"
class O1Dropbox: public O1 {
Q_OBJECT
public:
explicit O1Dropbox(QObject *parent = 0): O1(parent) {
setRequestTokenUrl(QUrl("https://api.dropbox.com/1/oauth/request_token"));
setAuthorizeUrl(QUrl("https://www.dropbox.com/1/oauth/authoriz... | Use the mobile authorization page. | Use the mobile authorization page.
| C | bsd-2-clause | pipacs/o2,shimomura1004/o2,shimomura1004/o2,seem-sky/o2,parapente/o2,pipacs/o2,seem-sky/o2,Timac/o2,Timac/o2,parapente/o2 |
50620bdb6b217d53bcabda32764b7f3e21499bcc | isl_sample.h | isl_sample.h | /*
* Copyright 2008-2009 Katholieke Universiteit Leuven
*
* Use of this software is governed by the MIT license
*
* Written by Sven Verdoolaege, K.U.Leuven, Departement
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
#ifndef ISL_SAMPLE_H
#define ISL_SAMPLE
#include <isl/set.h>
#include... | /*
* Copyright 2008-2009 Katholieke Universiteit Leuven
*
* Use of this software is governed by the MIT license
*
* Written by Sven Verdoolaege, K.U.Leuven, Departement
* Computerwetenschappen, Celestijnenlaan 200A, B-3001 Leuven, Belgium
*/
#ifndef ISL_SAMPLE_H
#define ISL_SAMPLE_H
#include <isl/set.h>
#inclu... | Fix typo in header guard | Fix typo in header guard
Signed-off-by: Tobias Grosser <059b8b880f8441509ec8a65b50b4c6ae74ebea76@grosser.es>
Signed-off-by: Sven Verdoolaege <e5350bbed4977f5eb8ae1dc6abd9ae59d21ace75@kotnet.org>
| C | mit | cfx-next/toolchain_isl-upstream,cfx-next/toolchain_isl-upstream,nicolasvasilache/isl,Meinersbur/isl,BenzoSM/isl,BobSaget-Mod/libisl,VanirLLVM/toolchain_isl,inducer/isl-mirror,tobig/isl,crossbuild/isl,BobSaget-Mod/libisl,inducer/isl-mirror,tobig/isl,UBERTC/isl,nicolasvasilache/isl,simbuerg/isl,KangDroidSMProject/ISL,Kan... |
58388a13ea0f47241340a99f45f1e3b0a0f45f04 | src/host/os_uuid.c | src/host/os_uuid.c | /**
* \file os_uuid.c
* \brief Create a new UUID.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include "premake.h"
#if PLATFORM_WINDOWS
#include <Objbase.h>
#endif
int os_uuid(lua_State* L)
{
unsigned char bytes[16];
char uuid[38];
#if PLATFORM_WINDOWS
CoCreateGuid((char*)byt... | /**
* \file os_uuid.c
* \brief Create a new UUID.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*/
#include "premake.h"
#if PLATFORM_WINDOWS
#include <Objbase.h>
#endif
int os_uuid(lua_State* L)
{
unsigned char bytes[16];
char uuid[38];
#if PLATFORM_WINDOWS
CoCreateGuid((GUID*)byt... | Fix incompatible types warning from VS 2005 (Oliver Schneider) | Fix incompatible types warning from VS 2005 (Oliver Schneider)
| C | bsd-3-clause | premake/premake-4.x,premake/premake-4.x,soundsrc/premake-stable,ryanjmulder/premake-4.x,soundsrc/premake-stable,premake/premake-4.x,lizh06/premake-4.x,ryanjmulder/premake-4.x,ryanjmulder/premake-4.x,lizh06/premake-4.x,ryanjmulder/premake-4.x,soundsrc/premake-stable,soundsrc/premake-stable,premake/premake-4.x,lizh06/pre... |
3f9b5373a22df13cb9b449963aff4395493324b3 | CDKitt/NSView+CDAutoLayout.h | CDKitt/NSView+CDAutoLayout.h | //
// NSView+CDAutoLayout.h
// CDKitt
//
// Created by Aron Cedercrantz on 04-06-2013.
// Copyright (c) 2013 Aron Cedercrantz. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSView (CDAutoLayout)
/**
* Add the given view to this view as a subview and autoresizes it to fill the
* receiving view.
*/... | //
// NSView+CDAutoLayout.h
// CDKitt
//
// Created by Aron Cedercrantz on 04-06-2013.
// Copyright (c) 2013 Aron Cedercrantz. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface NSView (CDAutoLayout)
/**
* Add the given view to this view as a subview and autoresizes it to fill the
* receiving view.
*
... | Improve NSView auto layout category documentation. | Improve NSView auto layout category documentation.
Signed-off-by: Aron Cedercrantz <ce30127eefa07a02d568832e3de6952fb491981c@cedercrantz.se>
| C | mit | rastersize/CDKitt,rastersize/CDKitt,rastersize/CDKitt,rastersize/CDKitt |
febcd73e5ebc12d91f72bd948d8d8abd2043d84d | mudlib/mud/home/Help/initd.c | mudlib/mud/home/Help/initd.c | #include <kotaka/paths.h>
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
load_dir("obj", 1);
load_dir("sys", 1);
}
| #include <kotaka/paths.h>
#include <kotaka/privilege.h>
#include <kotaka/bigstruct.h>
#include <kotaka/log.h>
inherit LIB_INITD;
inherit UTILITY_COMPILE;
static void create()
{
load_dir("obj", 1);
load_dir("sys", 1);
}
void full_reset()
{
object turkeylist;
object cursor;
object first;
object this;
ACCESS_CH... | Allow help module to be rebooted | Allow help module to be rebooted
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
47b31c05b71bedd540810d95c10189c4d4580534 | src/tag.h | src/tag.h | #ifndef SRC_TAG_H_
#define SRC_TAG_H_
#include <string>
#include "readtags.h"
class Tag {
public:
Tag(tagEntry entry) {
name = entry.name;
file = entry.file;
kind = entry.kind != NULL ? entry.kind : "";
if (entry.address.pattern != NULL)
pattern = entry.address.pattern;
else
pattern... | #ifndef SRC_TAG_H_
#define SRC_TAG_H_
#include <string>
#include "readtags.h"
class Tag {
public:
Tag(tagEntry entry) {
name = entry.name;
file = entry.file;
kind = entry.kind != NULL ? entry.kind : "";
pattern = entry.address.pattern != NULL ? entry.address.pattern : "";
}
std::string name;
... | Switch pattern's check for NULL to ternary operator | Switch pattern's check for NULL to ternary operator
(To be consistent with “kind”’s check)
| C | mit | zertosh/ctags-prebuilt,zertosh/ctags-prebuilt,atom/node-ctags,zertosh/ctags-prebuilt,atom/node-ctags,yongkangchen/node-ctags,yongkangchen/node-ctags,yongkangchen/node-ctags,zertosh/ctags-prebuilt,atom/node-ctags |
a153c929c08c530c81286efbe0ef21ceeeacc0a3 | bin/varnishd/storage_malloc.c | bin/varnishd/storage_malloc.c | /*
* $Id$
*
* Storage method based on malloc(3)
*/
#include <assert.h>
#include <stdlib.h>
#include <sys/queue.h>
#include <pthread.h>
#include "cache.h"
struct sma {
struct storage s;
};
static struct storage *
sma_alloc(struct stevedore *st __unused, unsigned size)
{
struct sma *sma;
sma = calloc(sizeof ... | /*
* $Id$
*
* Storage method based on malloc(3)
*/
#include <assert.h>
#include <stdlib.h>
#include <sys/queue.h>
#include <pthread.h>
#include "cache.h"
struct sma {
struct storage s;
};
static struct storage *
sma_alloc(struct stevedore *st, unsigned size)
{
struct sma *sma;
sma = calloc(sizeof *sma, 1);... | Make this work again: record the stevedore in the storage object. | Make this work again: record the stevedore in the storage object.
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@236 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | CartoDB/Varnish-Cache,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,ssm/pkg-varnish |
114f74f1f21bd9467d500bae7a3442e5135ce83a | test/benchLinkDef.h | test/benchLinkDef.h | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class THit!+;
#pragma link C++ class TObjHit+;
#pragma link C++ class TSTLhit;
#pragma link C++ class TSTLhitList;
#pragma link C++ class TSTLhitDeque;
#pragma link C++ class TSTLhitSet;
#pragm... | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class THit!+;
#pragma link C++ class TObjHit+;
#pragma link C++ class TSTLhit+;
#pragma link C++ class TSTLhitList+;
#pragma link C++ class TSTLhitDeque+;
#pragma link C++ class TSTLhitSet+;
#p... | Use the option "+" to force the new style Streamer for all classes in bench. | Use the option "+" to force the new style Streamer for all classes in bench.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@10478 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,dawehner/root,bbannier/ROOT |
56f42fe127b267e25739a56925d05f7ff70517b1 | src/onig-result.h | src/onig-result.h | #ifndef SRC_ONIG_RESULT_H_
#define SRC_ONIG_RESULT_H_
#include "oniguruma.h"
class OnigResult {
public:
explicit OnigResult(OnigRegion* region, int indexInScanner);
~OnigResult();
int Count();
int LocationAt(int index);
int LengthAt(int index);
int Index() { return indexInScanner; }
void SetIndex(int ... | #ifndef SRC_ONIG_RESULT_H_
#define SRC_ONIG_RESULT_H_
#include "nan.h"
#include "oniguruma.h"
class OnigResult {
public:
explicit OnigResult(OnigRegion* region, int indexInScanner);
~OnigResult();
int Count();
int LocationAt(int index);
int LengthAt(int index);
int Index() { return indexInScanner; }
v... | Fix compilation on win8 : include nan before oniguruma | Fix compilation on win8 : include nan before oniguruma
| C | mit | bpasero/node-oniguruma,alexandrudima/node-oniguruma,alexandrudima/node-oniguruma,bpasero/node-oniguruma,atom/node-oniguruma,atom/node-oniguruma,atom/node-oniguruma,bpasero/node-oniguruma,alexandrudima/node-oniguruma |
3b59297b36f795e7cdaaab74daefa89cee6dd24d | src/qt/clientmodel.h | src/qt/clientmodel.h | #ifndef CLIENTMODEL_H
#define CLIENTMODEL_H
#include <QObject>
class OptionsModel;
class AddressTableModel;
class TransactionTableModel;
class CWallet;
QT_BEGIN_NAMESPACE
class QDateTime;
QT_END_NAMESPACE
// Interface to Bitcoin network client
class ClientModel : public QObject
{
Q_OBJECT
public:
// The onl... | #ifndef CLIENTMODEL_H
#define CLIENTMODEL_H
#include <QObject>
class OptionsModel;
class AddressTableModel;
class TransactionTableModel;
class CWallet;
QT_BEGIN_NAMESPACE
class QDateTime;
QT_END_NAMESPACE
// Interface to Bitcoin network client
class ClientModel : public QObject
{
Q_OBJECT
public:
explicit C... | Remove no longer valid comment | Remove no longer valid comment
| C | mit | shomeser/bitcoin,48thct2jtnf/P,pataquets/namecoin-core,andres-root/bitcoinxt,Bloom-Project/Bloom,zcoinofficial/zcoin,jashandeep-sohi/ppcoin,ericshawlinux/bitcoin,vlajos/bitcoin,jonghyeopkim/bitcoinxt,randy-waterhouse/bitcoin,ajweiss/bitcoin,lbrtcoin/albertcoin,borgcoin/Borgcoin1,mrbandrews/bitcoin,CrimeaCoin/crimeacoin... |
693346fd3ae93be37fad41bf08acc00d416ba6df | examples/specific/functionOverload.h | examples/specific/functionOverload.h |
//! Non overloaded function
void simplefunc();
//! Function which takes two int arguments
void f(int, int);
//! Function which takes two double arguments
void f(double, double);
namespace test {
//! Another function which takes two int arguments
void g(int, int);
//! Another function which takes two double argume... |
//! Non overloaded function
void simplefunc();
//! Function which takes two int arguments
void f(int, int);
//! Function which takes two double arguments
void f(double, double);
namespace test {
//! Another function which takes two int arguments
void g(int, int);
//! Another function which takes two double argume... | Add extra function overload example | Add extra function overload example
For some reason this single argument overloaded function reveals a bug
that the more complex examples do not. Thanks to vitaut for providing
it.
| C | bsd-3-clause | kirbyfan64/breathe,AnthonyTruchet/breathe,RR2DO2/breathe,AnthonyTruchet/breathe,RR2DO2/breathe,kirbyfan64/breathe,kirbyfan64/breathe,AnthonyTruchet/breathe,AnthonyTruchet/breathe,kirbyfan64/breathe |
51e6009860ba9291d5435a0932abe150e9d9e1b7 | include/shmlog_tags.h | include/shmlog_tags.h | /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(Headers)
| /*
* $Id$
*
* Define the tags in the shared memory in a reusable format.
* Whoever includes this get to define what the SLTM macro does.
*
*/
SLTM(CLI)
SLTM(SessionOpen)
SLTM(SessionClose)
SLTM(ClientAddr)
SLTM(Request)
SLTM(URL)
SLTM(Protocol)
SLTM(H_Unknown)
#define HTTPH(a, b) SLTM(b)
#include "http_headers.h... | Use http_headers.h to define HTTP header tags for logging | Use http_headers.h to define HTTP header tags for logging
git-svn-id: 7d4b18ab7d176792635d6a7a77dd8cbbea8e8daa@90 d4fa192b-c00b-0410-8231-f00ffab90ce4
| C | bsd-2-clause | wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,CartoDB/Varnish-Cache,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,wikimedia/operations-debs-varnish,ssm/pkg-varnish,ssm/pkg-varnish,wikimedia/operations-debs-varnish,CartoDB/Varnish-Cache,ssm/pkg-varnish,wikimedia/operations-debs-varnish |
36a864d477bf010819748d50f8be13b0497c1c7f | source/system/Array.h | source/system/Array.h | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | #ifndef OOC_ARRAY_H_
#define OOC_ARRAY_H_
#define array_malloc(size) calloc(1, (size))
#define array_free free
#include <stdint.h>
#define _lang_array__Array_new(type, size) ((_lang_array__Array) { size, array_malloc((size) * sizeof(type)) });
#if defined(safe)
#define _lang_array__Array_get(array, index, type) ( \... | Revert "Set pointer to array data to null after free" | Revert "Set pointer to array data to null after free"
| C | mit | firog/ooc-kean,sebastianbaginski/ooc-kean,magic-lang/ooc-kean,fredrikbryntesson/ooc-kean,thomasfanell/ooc-kean,firog/ooc-kean,simonmika/ooc-kean,simonmika/ooc-kean,magic-lang/ooc-kean,thomasfanell/ooc-kean,fredrikbryntesson/ooc-kean,sebastianbaginski/ooc-kean |
618f2055745e3d06751594bcefc1d0d0a7dbd83c | part/tests/range_test.h | part/tests/range_test.h | /* This file is part of the KDE libraries
Copyright (C) 2010 Christoph Cullmann <cullmann@kde.org>
Copyright (C) 2005 Hamish Rodda <rodda@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free So... | /* This file is part of the KDE libraries
Copyright (C) 2010 Christoph Cullmann <cullmann@kde.org>
Copyright (C) 2005 Hamish Rodda <rodda@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free So... | Fix compilations Thanks to tropikhajma CCMAIL: tropikhajma@gmail.com BUG: 234775 | Fix compilations
Thanks to tropikhajma
CCMAIL: tropikhajma@gmail.com
BUG: 234775
svn path=/trunk/KDE/kdelibs/kate/; revision=1116300
| C | lgpl-2.1 | DickJ/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,DickJ/kate,DickJ/kate,cmacq2/kate,sandsmark/kate,DickJ/kate,cmacq2/kate,sandsmark/kate,hlamer/kate,hlamer/kate,sandsmark/kate,hlamer/kate,hlamer/kate,jfmcarreira/kate,hlamer/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate |
845b8ad003a92bb246c6b714f65212329c660797 | shared/aktest.h | shared/aktest.h | /*
Copyright (c) 2011 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | /*
Copyright (c) 2011 Volker Krause <vkrause@kde.org>
This library is free software; you can redistribute it and/or modify it
under the terms of the GNU Library General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your
option) any later versio... | Improve isolation of unit tests. | Improve isolation of unit tests.
| C | lgpl-2.1 | kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi |
3967214b04e7411c3ac17d17bc8f62be71193c03 | kate/kate_export.h | kate/kate_export.h | /*
This file is part of KDE
Copyright (C) 2006 Christian Ehrlicher <ch.ehrlicher@gmx.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distribut... | /*
This file is part of KDE
Copyright (C) 2006 Christian Ehrlicher <ch.ehrlicher@gmx.de>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
This library is distribut... | Replace the include guard too. | Replace the include guard too.
svn path=/trunk/KDE/kdesdk/kate/; revision=636748
| C | lgpl-2.1 | hlamer/kate,cmacq2/kate,DickJ/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,hlamer/kate,cmacq2/kate,hlamer/kate,hlamer/kate,hlamer/kate,DickJ/kate,jfmcarreira/kate,hlamer/kate,jfmcarreira/kate,sandsmark/kate,hlamer/kate,sandsmark/kate,DickJ/kate,cmacq2/kate,sandsmark/kate |
0d86b2eed6d0ec61a004aa3a6d13943d0f0b8a54 | kernel/src/stdlib/stdio.h | kernel/src/stdlib/stdio.h | // File: stdlib/stdio.h
// Author: vodozhaba
// Created on: Aug 21, 2016
// Purpose: Provides standard I/O functions.
#pragma once
#include <stdarg.h>
#include "io/disk/file.h"
extern FileDescriptor* stdout;
extern FileDescriptor* stderr;
size_t StdoutWriteOp(FileDescriptor* file, size_t size, const vo... | // File: stdlib/stdio.h
// Author: vodozhaba
// Created on: Aug 21, 2016
// Purpose: Provides standard I/O functions.
#pragma once
#include <stdarg.h>
#include "io/disk/file.h"
extern FileDescriptor* stdout;
extern FileDescriptor* stderr;
size_t StdoutWriteOp(FileDescriptor* file, size_t size, const vo... | Add vfprintf to the public interface just in case | Add vfprintf to the public interface just in case
| C | mit | vodozhaba/VV4OS,velikiyv4/VV4OS,vodozhaba/VV4OS,velikiyv4/VV4OS |
c1d5b503174f1c6a72b1e72326fea1f930dca112 | include/parrot/enums.h | include/parrot/enums.h | #if !defined(PARROT_ENUMS_H_GUARD)
#define PARROT_ENUMS_H_GUARD
typedef enum {
NO_STACK_ENTRY_TYPE = 0,
STACK_ENTRY_INT = 1,
STACK_ENTRY_FLOAT = 2,
STACK_ENTRY_STRING = 3,
STACK_ENTRY_PMC = 4,
STACK_ENTRY_POINTER = 5,
STACK_ENTRY_DESTINATION = 6
} Stack_en... | /* enums.h
* Copyright: 2001-2003 The Perl Foundation. All Rights Reserved.
* Overview:
* enums shared by much of the stack-handling code
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_ENUMS_H_GUARD)
#define PARROT_ENUMS_H_GUARD
typedef enum {
NO_STAC... | Add header and footer comments | Add header and footer comments
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@3957 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| C | artistic-2.0 | gitster/parrot,parrot/parrot,fernandobrito/parrot,fernandobrito/parrot,tewk/parrot-select,gagern/parrot,fernandobrito/parrot,youprofit/parrot,parrot/parrot,gagern/parrot,FROGGS/parrot,tkob/parrot,fernandobrito/parrot,gitster/parrot,FROGGS/parrot,tkob/parrot,FROGGS/parrot,FROGGS/parrot,tkob/parrot,gitster/parrot,tewk/pa... |
7ca02c0585b8a6d208b2e5667cd272e6b2aebc51 | OCCommunicationLib/OCCommunicationLib/OCErrorMsg.h | OCCommunicationLib/OCCommunicationLib/OCErrorMsg.h | //
// OCErrorMsg.h
// Owncloud iOs Client
//
// Copyright (C) 2014 ownCloud Inc. (http://www.owncloud.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, includ... | //
// OCErrorMsg.h
// Owncloud iOs Client
//
// Copyright (C) 2014 ownCloud Inc. (http://www.owncloud.org/)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, includ... | Add new code to manage 500 server error | Add new code to manage 500 server error
| C | mit | pd81999/ios-library,blueseaguo/ios-library,owncloud/ios-library |
2e5b331ef0015a62c698bfdd0072fe2712c5b19e | src/lib/mkdir-parents.c | src/lib/mkdir-parents.c | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
if (mkdir(path, mode) < 0 && errno != EEXIST) {
if (errno != ENOENT)
return -1;
p = strrchr(path, '/');
if (p == NULL || p == path)
... | /* Copyright (c) 2003 Timo Sirainen */
#include "lib.h"
#include "mkdir-parents.h"
#include <sys/stat.h>
int mkdir_parents(const char *path, mode_t mode)
{
const char *p;
/* EISDIR check is for BSD/OS which returns it if path contains '/'
at the end and it exists. */
if (mkdir(path, mode) < 0 && errno != EEX... | Check for EISDIR error as well. Fixed problems with BSD/OS. | Check for EISDIR error as well. Fixed problems with BSD/OS.
| C | mit | damoxc/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,LTD-Beget/dovecot,Distrotech/dovecot,LTD-Beget/dovecot,damoxc/dovecot,damoxc/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,damoxc/dovecot,Distrotech/dovecot,Distrotech/dovecot,LTD-Beget/dovecot |
6f3cd686426f580ef35015d7da331438e0a04cb6 | Source/SimpleITKMacro.h | Source/SimpleITKMacro.h | #ifndef __SimpleITKMacro_h
#define __SimpleITKMacro_h
#include <stdint.h>
#include <itkImageBase.h>
#include <itkImage.h>
#include <itkLightObject.h>
#include <itkSmartPointer.h>
// Define macros to aid in the typeless layer
typedef itk::ImageBase<3> SimpleImageBase;
namespace itk {
namespace simple {
// To a... | #ifndef __SimpleITKMacro_h
#define __SimpleITKMacro_h
// Ideally, take the types from the C99 standard. However,
// VS 8 does not have stdint.h, but they are defined anyway.
#ifndef _MSC_VER
#include <stdint.h>
#endif
#include <itkImageBase.h>
#include <itkImage.h>
#include <itkLightObject.h>
#include <itkSmartPoi... | Support for MS Visual Studio 2008. | Support for MS Visual Studio 2008.
| C | apache-2.0 | blowekamp/SimpleITK,richardbeare/SimpleITK,SimpleITK/SimpleITK,blowekamp/SimpleITK,hendradarwin/SimpleITK,richardbeare/SimpleITK,richardbeare/SimpleITK,InsightSoftwareConsortium/SimpleITK,SimpleITK/SimpleITK,blowekamp/SimpleITK,SimpleITK/SimpleITK,richardbeare/SimpleITK,blowekamp/SimpleITK,kaspermarstal/SimpleElastix,r... |
4a7f84f1682c8bc6ce3fe179bac9aa917284f00d | test/ClangModules/Inputs/usr/include/Foundation.h | test/ClangModules/Inputs/usr/include/Foundation.h | @import objc;
@interface NSArray : NSObject
- (id)objectAtIndexedSubscript:(unsigned)idx;
@end
@interface Hive
@property __attribute__((iboutletcollection(B))) NSArray *bees;
@end
| @import objc;
typedef unsigned long NSUInteger;
@interface NSArray : NSObject
- (id)objectAtIndexedSubscript:(NSUInteger)idx;
@end
@interface Hive
@property __attribute__((iboutletcollection(B))) NSArray *bees;
@end
| Use NSUInteger, even in our little tests. | Use NSUInteger, even in our little tests.
Swift SVN r3555
| C | apache-2.0 | rudkx/swift,SwiftAndroid/swift,airspeedswift/swift,kstaring/swift,hughbe/swift,SwiftAndroid/swift,devincoughlin/swift,johnno1962d/swift,zisko/swift,tinysun212/swift-windows,gottesmm/swift,natecook1000/swift,swiftix/swift.old,hughbe/swift,uasys/swift,kperryua/swift,ken0nek/swift,uasys/swift,emilstahl/swift,ahoppen/swift... |
9c926f325de84b4692d72ac67050bc6f66bbd47d | include/grpc/impl/codegen/fork.h | include/grpc/impl/codegen/fork.h | /*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | /*
*
* Copyright 2017 gRPC authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | Resolve Swift warnings by specifying void arguments | Resolve Swift warnings by specifying void arguments
The following functions in the `fork.h` file cause a `This function declaration is not a prototype` warning in Swift:
```
void grpc_prefork(void);
void grpc_postfork_parent(void);
void grpc_postfork_child(void);
void grpc_fork_handlers_auto_register(void);
```
Ex... | C | apache-2.0 | dgquintas/grpc,jtattermusch/grpc,ncteisen/grpc,firebase/grpc,jboeuf/grpc,jboeuf/grpc,nicolasnoble/grpc,thinkerou/grpc,donnadionne/grpc,grpc/grpc,nicolasnoble/grpc,pszemus/grpc,ncteisen/grpc,stanley-cheung/grpc,donnadionne/grpc,ctiller/grpc,donnadionne/grpc,ctiller/grpc,ncteisen/grpc,jboeuf/grpc,ejona86/grpc,mehrdada/gr... |
f4d017d65f7e464baeacc04987f5201eabc90c49 | include/gpu/gl/SkMesaGLContext.h | include/gpu/gl/SkMesaGLContext.h |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intpt... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkMesaGLContext_DEFINED
#define SkMesaGLContext_DEFINED
#include "SkGLContext.h"
#if SK_MESA
class SkMesaGLContext : public SkGLContext {
private:
typedef intpt... | Fix undefined GLint in Mac builds | Fix undefined GLint in Mac builds
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@3736 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,hbwhlklive/color-emoji.skia,hbwhlklive/color-emoji.skia,MatChung/color-emoji.skia,Frankie-666/color-emoji.skia,hbwhlklive/color-emoji.skia,Frankie-666/color-emoji.skia,Frankie-666/color-emoji.skia,Hankuo/color-emoji.skia,Hankuo/color-emoji.skia,MatChung/color-emoji... |
9cdef1b46feb742a91e926f03cf6edc5a074bc4d | test/test_theft_aux.c | test/test_theft_aux.c | #include "test_theft.h"
#include "theft_aux.h"
SUITE(aux) {
// builtins
}
| #include "test_theft.h"
#include "theft_aux.h"
struct a_squared_lte_b_env {
struct theft_print_trial_result_env print_env;
};
static enum theft_trial_res
prop_a_squared_lte_b(void *arg_a, void *arg_b) {
int8_t a = *(int8_t *)arg_a;
uint16_t b = *(uint16_t *)arg_b;
if (0) {
fprintf(stdout, "\n... | Add test using built-in generators. | theft_aux: Add test using built-in generators.
| C | isc | silentbicycle/theft |
d0adf82885e8d650575f9290ca2e2620e240bec5 | treeplayer/inc/LinkDef.h | treeplayer/inc/LinkDef.h | /* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.1.1.1 2000/05/16 17:00:44 rdm Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | /* @(#)root/treeplayer:$Name: $:$Id: LinkDef.h,v 1.2 2000/07/06 17:20:52 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Declare option "+" for TTreePlayer | Declare option "+" for TTreePlayer
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@986 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | root-mirror/root,mattkretz/root,krafczyk/root,olifre/root,root-mirror/root,mhuwiler/rootauto,omazapa/root-old,krafczyk/root,veprbl/root,perovic/root,smarinac/root,esakellari/root,sawenzel/root,buuck/root,ffurano/root5,beniz/root,zzxuanyuan/root,Duraznos/root,veprbl/root,krafczyk/root,jrtomps/root,mkret2/root,abhinavmou... |
3ff245f667167309ec41941036daa358bc60209d | nrf5/sdk/nrf5_sdk_conf.h | nrf5/sdk/nrf5_sdk_conf.h | #ifndef NRF_SDK_CONF_H__
#define NRF_SDK_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 100)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_6LOWPAN (1)
#define MICROPY_PY_USOCKET (1)
#define MICROPY_PY_NETWORK (1)
#elif (BLUETOOTH_SD == 110)
#def... | #ifndef NRF_SDK_CONF_H__
#define NRF_SDK_CONF_H__
// SD specific configurations.
#if (BLUETOOTH_SD == 100)
#define MICROPY_PY_BLE (1)
#define MICROPY_PY_BLE_6LOWPAN (1)
#define MICROPY_PY_USOCKET (1)
#define MICROPY_PY_NETWORK (1)
#elif (BLUETOOTH_SD == 110)
#def... | Enable ubluepy module if s110 bluetooth stack is enabled. | nrf5/sdk: Enable ubluepy module if s110 bluetooth stack is enabled.
| C | mit | tralamazza/micropython,tralamazza/micropython,adafruit/circuitpython,adafruit/micropython,adafruit/micropython,adafruit/micropython,tralamazza/micropython,adafruit/micropython,adafruit/circuitpython,tralamazza/micropython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafru... |
55793ac91e2491d9c9af88aa82792be759ac2039 | i2c.h | i2c.h | #ifndef _I2C_H
#define _I2C_H
#define I2C_FREQ 100000
struct i2c_iovec_s {
uint8_t *base;
uint8_t len;
};
void i2c_init(void);
void i2c_open(void);
void i2c_close(void);
int8_t i2c_readv(uint8_t address, struct i2c_iovec_s *iov, uint8_t iovcnt);
int8_t i2c_writev(uint8_t address, struct i2c_iovec_s *iov, uin... | #ifndef _I2C_H
#define _I2C_H
#ifndef I2C_FREQ
#define I2C_FREQ 100000
#endif
struct i2c_iovec_s {
uint8_t *base;
uint8_t len;
};
void i2c_init(void);
void i2c_open(void);
void i2c_close(void);
int8_t i2c_readv(uint8_t address, struct i2c_iovec_s *iov, uint8_t iovcnt);
int8_t i2c_writev(uint8_t address, stru... | Allow I2C_FREQ to be defined externally | Allow I2C_FREQ to be defined externally
| C | mit | pietern/avr-tasks,pietern/avr-tasks |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.