commit stringlengths 40 40 | old_file stringlengths 4 264 | new_file stringlengths 4 264 | old_contents stringlengths 0 4.24k | new_contents stringlengths 1 5.44k | subject stringlengths 14 778 | message stringlengths 15 9.92k | lang stringclasses 277
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
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 |
87a138305ce52782e192094f292c67d060619200 | hw/mcu/stm/stm32f3xx/src/hal_watchdog.c | hw/mcu/stm/stm32f3xx/src/hal_watchdog.c | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | Add hal watchdog for stm32f3 | MYNEWT-448: Add hal watchdog for stm32f3
NOTE: there is one issue unresolved with this commit. There is no
way to exit the loop where we are waiting for the register
changes to take effect. Not sure the best way to do this at this
point so for now we just skip it. This has been noted in the ticket
and should be addres... | C | apache-2.0 | runtimeinc/mynewt_stm32f3,runtimeinc/mynewt_stm32f3 | |
5eca7b2e8306af5398797d89d8aa6784ae6602a8 | src/condor_includes/condor_nfs.h | src/condor_includes/condor_nfs.h | /***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
* CONDOR Copyright Notice
*
* See LICENSE.TXT for additional notices and disclaimers.
*
* Copyright (c)1990-1998 CONDOR Team, Computer Sciences Department,
* University of Wisconsin-Madison, Madison, WI. All Rights Reserved.
* No use of the COND... | Put all NFS-related header files (and the platform-dependent ugliness) in one place. | Put all NFS-related header files (and the platform-dependent ugliness)
in one place.
| C | apache-2.0 | mambelli/osg-bosco-marco,djw8605/condor,djw8605/condor,htcondor/htcondor,htcondor/htcondor,djw8605/condor,bbockelm/condor-network-accounting,bbockelm/condor-network-accounting,djw8605/htcondor,zhangzhehust/htcondor,djw8605/htcondor,djw8605/condor,djw8605/condor,neurodebian/htcondor,neurodebian/htcondor,djw8605/htcondor... | |
a207b100fb33525adf5166ad0e1113ed8dd1358b | chapter27/chapter27_ex16.c | chapter27/chapter27_ex16.c | /* Chapter 27, exercise 16: "improve" (obfuscate) exercise 15 by using macros */
#include<stdio.h>
#include<stdlib.h>
#define GET_PTR(type,var_name) type* var_name = (type*)malloc(sizeof(type))
#define SET_FCT_PTR(pshape,pfct,fct) pshape->shape.pvtable->pfct = &fct
typedef void (*Pfct0)(struct Shape*);
typedef void ... | Add Chapter 27, exercise 16 | Add Chapter 27, exercise 16
| C | mit | bewuethr/stroustrup_ppp,bewuethr/stroustrup_ppp | |
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 |
dca2f8ee63c65cb27f791e5b2864d3f9e0adf3cb | test/Sema/pr30372.c | test/Sema/pr30372.c | // REQUIRES: x86-registered-target
// RUN: %clang_cc1 %s -triple i386-pc-windows-msvc18.0.0 -disable-free -fms-volatile -fms-extensions -fms-compatibility -fms-compatibility-version=18 -std=c++11 -x c++
// Check that the parser catching an 'error' from forward declaration of "location" does not lexer out it's subseque... | Introduce inline assembly parsing test is PR30372. | Introduce inline assembly parsing test is PR30372.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@281753 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
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 |
640870ac5e84285e438f2c5f9c8a2c30e8e80303 | src/stdio/_read.c | src/stdio/_read.c | #include "FILE.h"
extern _Thread_local int errno;
ptrdiff_t __read(int, void*, size_t);
size_t __stdio_read(void* restrict buffer, size_t size, FILE stream[restrict static 1])
{
ptrdiff_t count = __read(stream->fd, buffer, size);
if (count < 0) {
stream->state |= _errbit;
errno = -count;
... | Make `read` wrapper for stdio.h | Make `read` wrapper for stdio.h
| C | mit | jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic,jdh8/metallic | |
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... |
413c572d3b732bf8f79772530dc21883958a3f5f | test/Analysis/crash-trace.c | test/Analysis/crash-trace.c | // RUN: not --crash %clang --analyze -Xanalyzer -analyzer-checker=debug.ExprInspection %s 2>&1 | FileCheck %s
void clang_analyzer_crash(void);
void inlined() {
clang_analyzer_crash();
}
void test() {
inlined();
}
// CHECK: 0. Program arguments: {{.*}}clang
// CHECK-NEXT: 1. <eof> parser at end of file
// CHECK-... | Add test for crash tracing (r186639) | [analyzer] Add test for crash tracing (r186639)
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@186926 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
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 |
677551cb87d393832540e5d2b1c282c82a0bab81 | Settings/Label.h | Settings/Label.h | #pragma once
#include "Control.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
}; | Add label alias for control | Add label alias for control
| C | bsd-2-clause | malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX | |
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 |
821fe409e321fcc1c26f6525dae831280d91f36c | Test/src/minunit.h | Test/src/minunit.h | /*
* minunit.h
*
* Source: http://www.jera.com/techinfo/jtns/jtn002.html
*/
#include <stdio.h>
extern int tests_run;
#define mu_assert(message, test) do { \
if (!(test)) { \
return message; \
} \
} while (0)
#define mu_run_test(test, name) do { \
test_head(name); \
char const * message = test(); \
tests_... | Add minimalist framework for unit testing in Test project. | Add minimalist framework for unit testing in Test project.
| C | mit | AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue,AymericGenet/SPHINCS-arduinodue | |
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/... |
b6800f292aa9a9e229e9ae3e50a617f50d6fe82e | HLT/PHOS/AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h | HLT/PHOS/AliHLTPHOSModuleCellAccumulatedEnergyDataStruct.h | #ifndef ALIHLTPHOSNODULECELLACCUMULATEDENERGYDATASTRUCT_H
#define ALIHLTPHOSNODULECELLACCUMULATEDENERGYDATASTRUCT_H
/***************************************************************************
* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. *
* ... | Structure to hold information about accumualted energy in each cell (crystall) as well as the number of hits. Used by the onlinedisplay and the Histogranproducer component. | Structure to hold information about accumualted energy in each cell (crystall)
as well as the number of hits. Used by the onlinedisplay and the Histogranproducer component.
| C | bsd-3-clause | alisw/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,ecalvovi/AliRoot,coppedis/AliRoot,ecalvovi/AliRoot,sebaleh/AliRoot,miranov25/AliRoot,ecalvovi/AliRoot,miranov25/AliRoot,ALICEHLT/AliRoot,shahor02/AliRoot,jgrosseo/AliRoot,ALICEHLT/AliRoot,mkrzewic/AliRoot,sebaleh/AliRoot,alisw/AliRoot,mkrzewic/AliRoot,sebaleh/AliRoot,shah... | |
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 |
79d5319f4425e30f25252de6313c62e36347c622 | include/libtrading/proto/omx_moldudp.h | include/libtrading/proto/omx_moldudp.h | #ifndef LIBTRADING_OMX_MOLDUDP_MESSAGE_H
#define LIBTRADING_OMX_MOLDUDP_MESSAGE_H
#include "libtrading/types.h"
struct omx_moldudp_header {
char Session[10];
le32 SequenceNumber;
le16 MessageCount;
} packed;
struct omx_moldudp_message {
le16 MessageLength;
} packed;
struct omx_moldudp_request {
char ... | Add NASDAQ OMX MoldUDP 1.02a | Add NASDAQ OMX MoldUDP 1.02a
The protocol version is not mentioned in the implementation name because
last change was made in 2006.
Reviewed-by: Ville Aine <011d7a94c7f99119e473bfaf4cedd17c6b1552f1@iki.fi>
Signed-off-by: Jussi Virtanen <2a7e40f91a3be32dfb7e35af6e476a252ebdb4f3@gmail.com>
| C | bsd-2-clause | jvirtanen/libtrading,svdev/libtrading,NunoEdgarGub1/libtrading,libtrading/libtrading,penberg/libtrading,libtrading/libtrading,fengzhyuan/libtrading,divaykin/libtrading,etoestja/libtrading,svdev/libtrading,Bitcoinsulting/libtrading,divaykin/libtrading,jvirtanen/libtrading,femtotrader/libtrading,mstanichenko/libtrading,e... | |
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/... |
a992328e40dcb0965270eb7609eae693e832e427 | tests/regression/11-heap/12-calloc.c | tests/regression/11-heap/12-calloc.c | // PARAM: --set ana.malloc.unique_address_count 1
#include<assert.h>
#include<stdlib.h>
int main() {
int* arr = calloc(5,sizeof(int));
arr[0] = 3;
assert(arr[2] == 0); //UNKNOWN
}
| Add example for unsoundness for calloc | Add example for unsoundness for calloc
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
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 |
9f59e8574620d9d628bb8b9ad687906843b6d9ad | network/v4ispalindrome.c | network/v4ispalindrome.c | /*
* Determines if an IPv4 address is a palindromic address. Such
* addresses need no special htonl/ntohl handling, regardless of host
* versus network byte order. There are relatively few of these on
* the Internet (65536).
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/... | Test if address is a palindrome. | Test if address is a palindrome.
| C | isc | princeofdarkness76/sial.org-scripts,princeofdarkness76/sial.org-scripts,thrig/scripts,princeofdarkness76/sial.org-scripts,thrig/scripts,princeofdarkness76/sial.org-scripts,thrig/scripts,thrig/scripts,thrig/scripts,princeofdarkness76/sial.org-scripts,thrig/scripts | |
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... |
96607b29c4b90996e97f0216651f544b3ded4175 | test/Headers/arm-neon-header.c | test/Headers/arm-neon-header.c | // RUN: %clang_cc1 -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
// RUN: %clang_cc1 -x c++ -triple thumbv7-apple-darwin10 -target-cpu cortex-a8 -fsyntax-only -Wvector-conversions -verify %s
#include <arm_neon.h>
// Radar 8228022: Should not report incompatible vect... | Add a testcase for Radar 8228022. Make sure the -Wvector-conversions does not cause unnecessary warnings when using Neon intrinsics with the correct types. | Add a testcase for Radar 8228022.
Make sure the -Wvector-conversions does not cause unnecessary warnings when
using Neon intrinsics with the correct types.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@120634 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... | |
e93725b6fb3bff46a349a6fc22a4cf6db08e6232 | test/source/regalias.c | test/source/regalias.c |
int main()
{
int r;
__asm("movl $0x87654321, %%eax; movb $0x12, %%al; movb $0x34, %%ah" : "=a" (r));
printf("%08X\n", r);
}
| Add contrived example for register alias failure source. | Add contrived example for register alias failure source.
| C | bsd-3-clause | nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,nemerle/boomerang,nemerle/boomerang,nemerle/boomerang,xujun10110/boomerang,nemerle/boomerang,nemerle/boomerang,xujun10110/boomerang,TambourineReindeer/boomerang,nemerle/boomerang,xujun10110/boomerang,xu... | |
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 |
3178bbaa27f2f2201014c2789f976a407e4ce548 | projects/com.oracle.truffle.llvm.test/tests/c/max-unsigned-int-to-double-cast.c | projects/com.oracle.truffle.llvm.test/tests/c/max-unsigned-int-to-double-cast.c | #include <limits.h>
#include <stdio.h>
#include <stdlib.h>
void testCase(double value, unsigned int expected) {
unsigned int result = (unsigned int)value;
if (result != expected) {
printf("%d\n", result);
abort();
}
}
int main() {
testCase(UINT_MAX, -1);
testCase(UINT_MAX - 0.03, -2);
testCase(UIN... | Add test case for casts from double to unsigned int | Add test case for casts from double to unsigned int
| C | bsd-3-clause | lxp/sulong,lxp/sulong,crbb/sulong,lxp/sulong,crbb/sulong,PrinzKatharina/sulong,lxp/sulong,PrinzKatharina/sulong,crbb/sulong,crbb/sulong,PrinzKatharina/sulong,PrinzKatharina/sulong | |
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 |
135b12fcf85aa031a71f79bd73a1563ad5ce2d80 | cryptography/rot13_cipher/rotn.c | cryptography/rot13_cipher/rotn.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
char *test = "HELLO WORLD. This is a test";
char out[strlen(test)];
out[strlen(test)] = '\0';
rot(test, &out, 13);
printf("Input: %s\n", test);
printf("Output: %s", out);
return 0;
}
void rot(char *in, char *out, int n)
{
int i;
... | Add RotN implementation in C | Add RotN implementation in C
| C | cc0-1.0 | manikTharaka/al-go-rithms,Cnidarias/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,ZoranPandovski/al-go-rithms,Deepak345/al-go-rithms,Deepak345/al-go-rithms,manikTharaka/al-go-rithms,Cnidarias/al-go-rithms,manikTharaka/al-go-rithms,Cnidarias/al-go-rithms,manikTharaka/al-go-rithms,ZoranPandovski/al... | |
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 |
d98da626350d53345b3d659c9acc9848b1d2ea73 | src/org/objectweb/proactive/examples/mpi/cpi.c | src/org/objectweb/proactive/examples/mpi/cpi.c |
#include <stdlib.h>
#include <stdio.h>
#include <mpi.h>
main(int argc, char **argv)
{
register double width;
double sum = 0, lsum;
register int intervals, i;
int nproc, iproc;
MPI_Win sum_win;
if (MPI_Init(&argc, &argv) != MPI_SUCCESS) exit(1);
MPI_Comm_size(MPI_COMM_WORLD, &nproc);
MPI_Comm_rank(MP... | Replace MPI source code instead of executive binary file. User will compile the source with its own mpi implementation. | Replace MPI source code instead of executive binary file.
User will compile the source with its own mpi implementation.
git-svn-id: 9146c88ff6d39b48099bf954d15d68f687b3fa69@3133 28e8926c-6b08-0410-baaa-805c5e19b8d6
| C | agpl-3.0 | zeineb/scheduling,ShatalovYaroslav/scheduling,paraita/scheduling,lpellegr/scheduling,youribonnaffe/scheduling,marcocast/scheduling,sandrineBeauche/scheduling,zeineb/scheduling,mbenguig/scheduling,marcocast/scheduling,fviale/scheduling,sandrineBeauche/scheduling,jrochas/scheduling,sgRomaric/scheduling,zeineb/scheduling,... | |
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 |
894bceeff96a75c2b5301777aea30fb730cdaa1b | include/swift/AST/TypeMemberVisitor.h | include/swift/AST/TypeMemberVisitor.h | //===-- TypeMemberVisitor.h - ASTVisitor specialization ---------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | Add a visitor for the members of a nominal type. | Add a visitor for the members of a nominal type.
This really just conveniently filters out all the kinds of
declarations that can't appear in such scopes.
Swift SVN r3473
| C | apache-2.0 | hooman/swift,aschwaighofer/swift,xwu/swift,sschiau/swift,ken0nek/swift,lorentey/swift,austinzheng/swift,modocache/swift,gribozavr/swift,felix91gr/swift,calebd/swift,LeoShimonaka/swift,return/swift,nathawes/swift,harlanhaskins/swift,gottesmm/swift,roambotics/swift,khizkhiz/swift,benlangmuir/swift,hooman/swift,emilstahl/... | |
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... |
e6690f40af081594fe34a680e8bfb028952c2174 | example/extension/sqlite3_mod_regexp.c | example/extension/sqlite3_mod_regexp.c | #include <regex.h>
#include <string.h>
#include <stdio.h>
#include <sqlite3ext.h>
SQLITE_EXTENSION_INIT1
static void regexp_func(sqlite3_context *context, int argc, sqlite3_value **argv) {
if (argc >= 2) {
const char *target = (const char *)sqlite3_value_text(argv[1]);
const char *pattern = (const char *)sq... | Add example for sqlite3 extension | Add example for sqlite3 extension
| C | apache-2.0 | marccampbell/go-sqlite3,wuranbo/go-sqlite3,vonwenm/go-sqlite3,vonwenm/go-sqlite3,ArtemTeleshev/go-sqlite3,helight/helight_code,lyonel/go-sqlite3,larsmans/go-sqlite3,mdevan/go-sqlite3,mdevan/go-sqlite3,helight/helight_code,danderson/go-sqlite3,larsmans/go-sqlite3,helight/helight_code,helight/helight_code,Schumix/go-sqli... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.