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 |
|---|---|---|---|---|---|---|---|---|---|
20539f35218d24ec960e37b70927849f30c344f0 | net/flip/flip_bitmasks.h | net/flip/flip_bitmasks.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const int kStreamIdMask = 0x7fffffff; // StreamId mask from th... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mas... | Fix signed vs unsigned issue | linux: Fix signed vs unsigned issue
Review URL: http://codereview.chromium.org/297015
git-svn-id: http://src.chromium.org/svn/trunk/src@30099 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
Former-commit-id: 86a9c861257cd0e752a713d61f3f4a14473acfa2 | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
f285f813cc3d270186ea4789da82cb8b8c9ff1f9 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 6
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 0
#define CLIENT_VERSION_MINOR 8
#define CLIENT_VERSION_REVISION 7
#define CLIENT_VERSION_BUILD ... | Mark Devcoin release version 0.8.7.0. | Mark Devcoin release version 0.8.7.0.
| C | mit | coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin,coinzen/devcoin |
5ffcc6ae21937e80848d6e37b23734aa999ab6af | src/ucc/filemodes.h | src/ucc/filemodes.h | #define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp") \
| #ifndef FILEMODES_H
#define FILEMODES_H
#define FILEMODES \
X(preproc, "c", 'i') \
X(compile, "cpp-output", 's') \
X(assemb, "assembler", 'o') \
ALIAS(assemb, "asm") \
X(assemb_with_cpp, "assembler-with-cpp", 'o') \
ALIAS(assemb_with_cpp, "asm-with-cpp")
#endif
| Fix filesmodes multiple-inc and backslash-eof | Fix filesmodes multiple-inc and backslash-eof
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
6a5388550ed2d5d5efcce1e164391eafe528dba1 | tree/ntuple/inc/LinkDef.h | tree/ntuple/inc/LinkDef.h | // Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // Author: Jakob Blomer CERN 10/2018
/*************************************************************************
* Copyright (C) 1995-2018, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix class name spelling in class rule | [ntuple] Fix class name spelling in class rule
| C | lgpl-2.1 | karies/root,karies/root,karies/root,root-mirror/root,karies/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,olifre/root,karies/root,root-mirror/root,root-mirror/root,olifre/root,root-mirror/root,root-mirror/root,olifre/root,karies/root,olifre/root,olifre/root,karies/root,root-mirror/root,olifre/root,kari... |
6e3256887f14fd4b946d37318ddaa37c799dcd17 | test/tsan/thread_exit.c | test/tsan/thread_exit.c | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
pthread_exit(&var);
return 0;
}
int main() {
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpecte... | // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1
// | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
fprintf(stderr, "Thread\n");
pthread_exit(&var);
return 0;
}
int main() {
fprintf(stderr, "MAIN\n");
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
fprintf(stderr, "... | Debug failing test on PPC bot | [tsan] Debug failing test on PPC bot
git-svn-id: c199f293c43da69278bea8e88f92242bf3aa95f7@353617 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt,llvm-mirror/compiler-rt |
93a0354f038dd4fb6746376a8a3ec16c776c7826 | src/exercise117.c | src/exercise117.c | /* Exercise 1-17: Write a program to print all input lines that are longer
* than 80 characters. */
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#define LINE_LIMIT 80
int main(int argc, char **argv)
{
uint32_t current_line_length = 0;
int32_t buffer[LINE_LIMIT] = { 0 };
bool... | Add solution to Exercise 1-17. | Add solution to Exercise 1-17.
| C | unlicense | damiendart/knr-solutions,damiendart/knr-solutions,damiendart/knr-solutions | |
822adf4743536e3c0fac1861fa23e57801ebf3aa | core/formats/nifti_utils.h | core/formats/nifti_utils.h | /* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "a... | /* Copyright (c) 2008-2019 the MRtrix3 contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* Covered Software is provided under this License on an "a... | Fix for short file names | Formats::is_nifti(): Fix for short file names
| C | mpl-2.0 | MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3,MRtrix3/mrtrix3 |
e050411af032f62ce4e4f5775b13607e3c754e4a | meta.h | meta.h | #pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
char const* title;
char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
| #pragma once
#include "ffmpeg.h"
#include <stddef.h>
#include <stdint.h>
struct Meta {
const char const* title;
const char const* artist;
};
struct Meta retrieve_meta(AVFormatContext* ctx);
| Fix incorrect const pointer marking. | Fix incorrect const pointer marking.
| C | mit | bakape/thumbnailer,bakape/thumbnailer |
43fc1531f877c2c7d5369a29b236aa48d6ebe08c | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | src/plugins/qmldesigner/components/formeditor/abstractcustomtool.h | #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChang... | #ifndef QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#define QMLDESIGNER_ABSTRACTSINGLESELECTIONTOOL_H
#include "abstractformeditortool.h"
namespace QmlDesigner {
class QMLDESIGNERCORE_EXPORT AbstractCustomTool : public QmlDesigner::AbstractFormEditorTool
{
public:
AbstractCustomTool();
void selectedItemsChang... | Remove wrong override for wantHandleItem | QmlDesigner: Remove wrong override for wantHandleItem
Change-Id: I283897f528e03df1d89200906f8d7d8f1066b6d3
Reviewed-by: Friedemann Kleint <1b9f2592239daaec4856ccc1cfb4d2d55b35fb71@digia.com>
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
| C | lgpl-2.1 | duythanhphan/qt-creator,AltarBeastiful/qt-creator,danimo/qt-creator,kuba1/qtcreator,darksylinc/qt-creator,amyvmiwei/qt-creator,richardmg/qtcreator,AltarBeastiful/qt-creator,martyone/sailfish-qtcreator,amyvmiwei/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,colede/qtcreator,duythanhphan/qt-creator,danimo/qt-c... |
d8c93163ddf1e91bffe0449a66fed3bd47e8844e | test/CFrontend/2005-02-27-MarkGlobalConstant.c | test/CFrontend/2005-02-27-MarkGlobalConstant.c | // RUN: %llvmgcc -xc %s -S -o - | grep 'ctor_.* constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
| // RUN: %llvmgcc -xc %s -S -o - | grep 'internal constant '
// The synthetic global made by the CFE for big initializer should be marked
// constant.
void bar();
void foo() {
char Blah[] = "asdlfkajsdlfkajsd;lfkajds;lfkjasd;flkajsd;lkfja;sdlkfjasd";
bar(Blah);
}
| Fix this regex to match what llvmgcc4 produces also | Fix this regex to match what llvmgcc4 produces also
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27673 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,a... |
953660c5630b5d3bdf4567b68ba6e51929395ee5 | tensorflow/core/platform/default/stream_executor_util.h | tensorflow/core/platform/default/stream_executor_util.h | q /* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | /* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... | Fix build breakage from a typo. Change: 111528530 | Fix build breakage from a typo.
Change: 111528530
| C | apache-2.0 | manazhao/tf_recsys,martinwicke/tensorflow,manjunaths/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Carmezim/tensorflow,Kongsea/tensorflow,petewarden/tensorflow_makefile,ppries/tensorflow,rabipanda/tensorflow,AnishShah/tensorflow,dendisuhubdy/tensorflow,arborh/tensorflow,Mistobaan/tensorflow,renyi533/tensorflow,X... |
d456379d6c183b97b5fecae6f256fd6c931fcf04 | include/rapidcheck-catch.h | include/rapidcheck-catch.h | #pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the prope... | #pragma once
#include <rapidcheck.h>
#include <sstream>
namespace rc {
/// For use with `catch.hpp`. Use this function wherever you would use a
/// `SECTION` for convenient checking of properties.
///
/// @param description A description of the property.
/// @param testable The object that implements the prope... | Add printing of distribution to catch.hpp integration | Add printing of distribution to catch.hpp integration
| C | bsd-2-clause | unapiedra/rapidfuzz,unapiedra/rapidfuzz,emil-e/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck,unapiedra/rapidfuzz,tm604/rapidcheck,whoshuu/rapidcheck,tm604/rapidcheck,emil-e/rapidcheck,whoshuu/rapidcheck |
6031c76c7967b748fa9f6fddf7d042bda3e2e5de | smbase/intstack.h | smbase/intstack.h | // intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list... | // intstack.h see license.txt for copyright and terms of use
// stack of ints
// quarl 2006-05-31 initial version based on sobjstack.h
#ifndef INTSTACK_H
#define INTSTACK_H
#include "intlist.h" // IntList
template <class T>
class IntStack {
private: // data
// will implement the stack as a list... | Add IntStack::nth() for peeking at Nth item | Add IntStack::nth() for peeking at Nth item
| C | bsd-3-clause | angavrilov/olmar,angavrilov/olmar,angavrilov/olmar,angavrilov/olmar |
85854585eba837646ecd0977e65c95be89c53818 | firmlaunch.h | firmlaunch.h | #ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32* search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
| #ifndef FIRMLAUNCH_H
#define FIRMLAUNCH_H
#include "types.h"
int firm_setup(u32* FIRM, void* N3DSKey1, void* N3DSKey2);
void firmlaunch(u32* FIRM);
int patch(u32* FIRM, u32 search_size, u8* pattern, u8* patch_data, u32 pattern_size, u32 patch_size);
#endif
| Fix my stupid error :/ | Fix my stupid error :/
| C | mit | fox8091/libFirmlaunch,fox8091/libFirmlaunch |
fa7c9bc2318b195aa8218e51e8f1c4b1f52ac43e | src/math/p_acos.c | src/math/p_acos.c | #include <pal.h>
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* @param a Pointer to input vector
*
* @param c Pointer t... | #include <math.h>
#include <pal.h>
static const float pi_2 = (float) M_PI / 2.f;
/**
*
* Computes the inverse cosine (arc cosine) of the input vector 'a'. Input
* values to acos must be in the range -1 to 1. The result values are in the
* range 0 to pi. The function does not check for illegal input values.
*
* ... | Implement the inverse cosine function. | math:acos: Implement the inverse cosine function.
Signed-off-by: Mansour Moufid <ac5f6b12fab5e0d4efa7215e6c2dac9d55ab77dc@gmail.com>
| C | apache-2.0 | debug-de-su-ka/pal,parallella/pal,eliteraspberries/pal,aolofsson/pal,aolofsson/pal,Adamszk/pal3,debug-de-su-ka/pal,eliteraspberries/pal,eliteraspberries/pal,parallella/pal,mateunho/pal,debug-de-su-ka/pal,mateunho/pal,mateunho/pal,debug-de-su-ka/pal,olajep/pal,8l/pal,Adamszk/pal3,8l/pal,parallella/pal,debug-de-su-ka/pal... |
90da898d0f4e4b3e664a081be92141e61b28fc46 | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Mod... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <stack>
#include <memory>
#include "task_typedefs.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
public:
Transaction && begin();
static DataStore& get();
// Mod... | Add const modifier to post and put method of DataStore | Add const modifier to post and put method of DataStore
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
75338467e66fd3c862a0a48363c3f4681f30180a | OCDSpec/OCDSpecDescriptionRunner.h | OCDSpec/OCDSpecDescriptionRunner.h | #import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount;
id ... | #import <Foundation/Foundation.h>
#import "OCDSpec/Protocols/DescriptionRunner.h"
#import "OCDSpec/OCDSpecDescription.h"
#import "OCDSpec/OCDSpecSharedResults.h"
#import "OCDSpec/Abstract/AbstractDescriptionRunner.h"
@interface OCDSpecDescriptionRunner : NSObject
{
Class *classes;
int classCount... | Correct the project for the move | Correct the project for the move
| C | mit | paytonrules/OCDSpec,paytonrules/OCDSpec |
0da6fb4d36a340b36f6153c66bcd432982abf1dd | src/python/pylogger.h | src/python/pylogger.h | #ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
vi... | #ifndef PYLOGGER_H
#define PYLOGGER_H
#include "Python.h"
#include <string>
#include "cantera/base/logger.h"
namespace Cantera
{
/// Logger for Python.
/// @ingroup textlogs
class Py_Logger : public Logger
{
public:
Py_Logger() {
PyRun_SimpleString("import sys");
}
virtual ~Py_Logger() {}
vi... | Fix Py_Logger to raise instances of Exception instead of strings | Fix Py_Logger to raise instances of Exception instead of strings
Raising string exceptions was removed in Python 2.6
| C | bsd-3-clause | imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,imitrichev/cantera,Heathckliff/cantera,imitrichev/cantera,Heathckliff/cantera,Heathckliff/cantera,Heathckliff/cantera |
54ec1c1815f4ca6306eceac7b3297aa970962ec0 | src/enums.h | src/enums.h | #ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
| #ifndef ENUMS_H
#define ENUMS_H
#include <QtCore>
enum MidiDataRole {
MidiValueType = Qt::UserRole + 1,
MidiValueMin,
MidiValueMax,
MidiValues
};
enum MidiType {
DefaultType,
NoteType,
ToggleType,
StringType,
ChannelType
};
#endif
| Add custom data role MidiValues | Add custom data role MidiValues
| C | mit | charlesfleche/lpd8-editor,charlesfleche/lpd8-editor |
51fe30c43891d1d903a5408e95000ab0d499e25f | debug-spx.h | debug-spx.h | /*
* Header
Wicci Project C Code Header
Utility Code for Spx Debugging and Initialization Management
** Copyright
Copyright (c) 2005-2019 J. Greg Davidson.
You may use this software under the terms of the
GNU AFFERO GENERAL PUBLIC LICENSE
as specified in the file LICENSE.md included with this distribution.
... | Split off from debug.h because of debug-log.h cross dependencies | Split off from debug.h because of debug-log.h cross dependencies
| C | agpl-3.0 | GregDavidson/wicci-core-S1_refs,GregDavidson/wicci-core-S1_refs | |
b6a04637c81e41c348e985c78f3e9f3009a19826 | hello_mpi.c | hello_mpi.c | #include <stdio.h>
#include <mpi.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processor_name(processor_nam... | #include <stdio.h>
#include <mpi.h>
#include <unistd.h>
#include "hello_mpi.h"
int hello_mpi(void) {
int numprocs, rank, namelen;
char processor_name[MPI_MAX_PROCESSOR_NAME];
MPI_Init(NULL, NULL);
MPI_Comm_size(MPI_COMM_WORLD, &numprocs);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Get_processo... | Convert from MPI_Send/Recv, to MPI_ISend/IRecv | Convert from MPI_Send/Recv, to MPI_ISend/IRecv
| C | mit | Convolution-filter/convolution-filter-MPI |
fe85b79dbc358dc3ecddf77f33621798541f358f | src/forces/label_state.h | src/forces/label_state.h | #ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label... | #ifndef SRC_FORCES_LABEL_STATE_H_
#define SRC_FORCES_LABEL_STATE_H_
#include <Eigen/Core>
#include <string>
#include <map>
namespace Forces
{
class Force;
/**
* \brief Encapsulates state for a label necessary for the simulation
*
* This consists of label and anchor positions in 2D and 3D, as well as
* the label... | Remove const modifier from LabelState members. | Remove const modifier from LabelState members.
This enables move and move assignment, which is necessary for
containers.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
68bc833ceda612ee8fb5e673d08c8de41cff4c90 | src/ufrn_bti_imd0012_2017_1_t3/matrix_fun.c | src/ufrn_bti_imd0012_2017_1_t3/matrix_fun.c | /**
Having fun with multidimensinal arrays.
*/
#include <stdio.h>
/**
TODO: Dada uma matriz inteira Maxb, imprima o número de linhas e colunas
nulas (apenas com valores zerados, matematicamente falando)
da matriz.
*/
#define ROWS_QTT 4
#define COLS_QTT 5
int main(){
/*
Dada uma matriz Amxm, imprima quantas vez... | Add alg to find repetead values in a matrix | Add alg to find repetead values in a matrix
| C | unknown | Mazuh/MISC-Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/Algs,Mazuh/MISC-Algs | |
8532fe7dbbe4425a76bdd945a342714624f8673c | webkit/glue/webkit_constants.h | webkit/glue/webkit_constants.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
#define WEBKIT_GLUE_WEBKIT_CONSTANTS_H_
namespace webkit_glue {
// Chromium sets the minimum interval timeou... | Revert 75430 because it's causing failures in dom_checker_tests. : Increase the minimum interval for timers on background tabs to reduce their CPU consumption. | Revert 75430 because it's causing failures in dom_checker_tests.
: Increase the minimum interval for timers on background tabs to reduce
their CPU consumption.
The new interval is 1000 ms, or once per second. We can easily adjust
this value up or down, but this seems like a reasonable value to judge
the compatibility ... | C | bsd-3-clause | meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-ux/meego-app-browser,meego-tablet-u... |
784e657183e783a2db4c42e18d1e2224e408b052 | src/botansqlite3/botansqlite3.c | src/botansqlite3/botansqlite3.c | /*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic ignored "-Wconversion"
#pragma clang di... | /*
* (C) 2016 Daniel Seither (Kullo GmbH)
*
* Distributed under the terms of the Botan license
*/
#define SQLITE_HAS_CODEC 1
#if defined __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wcast-align"
#pragma clang diagnostic ignored "-Wcast-qual"
#pragma clang diagnostic i... | Fix unknown pragma warnings on MSVC | Fix unknown pragma warnings on MSVC
| C | bsd-3-clause | kullo/smartsqlite,kullo/smartsqlite,kullo/smartsqlite |
c62a4efe9492d867e281c2c680e0b8c185d9669b | eg/inc/LinkDef.h | eg/inc/LinkDef.h | /* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.2 2000/09/06 15:15:18 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | /* @(#)root/eg:$Name: $:$Id: LinkDef.h,v 1.3 2000/09/08 16:42:12 brun Exp $ */
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Use option + for TAttParticle and TPrimary | Use option + for TAttParticle and TPrimary
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@932 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | nilqed/root,agarciamontoro/root,jrtomps/root,vukasinmilosevic/root,abhinavmoudgil95/root,zzxuanyuan/root,buuck/root,perovic/root,Dr15Jones/root,sawenzel/root,olifre/root,ffurano/root5,sawenzel/root,0x0all/ROOT,simonpf/root,agarciamontoro/root,sbinet/cxx-root,esakellari/root,omazapa/root,tc3t/qoot,mhuwiler/rootauto,ffur... |
62f0dc07ed56e285e349a244ab402e20092b8eb0 | frtstream/src/vespa/frtstream/frtserverstream.h | frtstream/src/vespa/frtstream/frtserverstream.h | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() {
... | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/frtstream/frtstream.h>
namespace frtstream {
class FrtServerStream : public FrtStream {
FRT_RPCRequest* request;
uint32_t _nextOutValue;
FRT_Values& in() overrid... | Fix warnings hidden earlier due to including application headers as system includes | Fix warnings hidden earlier due to including application headers as system includes
| 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 |
f72fde5522035f7455d14f33fe417a500f66df4f | tests/regression/27-inv_invariants/16-sedgewick.c | tests/regression/27-inv_invariants/16-sedgewick.c | #include <stddef.h>
#include <assert.h>
struct node {
struct node *left;
struct node *right;
int key;
};
// https://old.reddit.com/r/programminghorror/comments/jgrpcu/on_sedgewicks_original_presentation_for_llrb_trees/
struct node* min(struct node *root) {
struct node *x = root;
while (x != NULL)
x = x-... | Add Sedgewick min NULL fail as regression test | Add Sedgewick min NULL fail as regression test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
9d4102d0b9373d0c9d9931e77c07fb85285fbe2a | tests/regression/29-svcomp/22-atomic_priv_sound.c | tests/regression/29-svcomp/22-atomic_priv_sound.c | // PARAM: --enable ana.sv-comp.functions
#include <pthread.h>
#include <assert.h>
extern void __VERIFIER_atomic_begin();
extern void __VERIFIER_atomic_end();
int myglobal = 5;
void *t_fun(void *arg) {
__VERIFIER_atomic_begin();
assert(myglobal == 5); // TODO
myglobal++;
assert(myglobal == 6); // TODO
__VER... | Add regression test for SV-COMP atomics soundness | Add regression test for SV-COMP atomics soundness
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
ab4d30fe039870d8912855a3550bf4b52fb262f2 | srtp.h | srtp.h | #ifndef SRTP_H
#define SRTP_H
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t * sess,... | #ifndef SRTP_H
#define SRTP_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "srtp2/srtp.h"
typedef struct rtp_packet {
void *data;
int len;
} rtp_packet;
srtp_t *srtp_create_session(void *client_write_key, void *server_write_key, char *profile);
rtp_packet *srtp_decrypt_packet(srtp_t *sess... | Add <stdlib.h> to GStreamer code | Add <stdlib.h> to GStreamer code
Run clang-format on DTLS+SRTP
| C | mit | pion/srtp |
a1aadd55fb43e31407aecc4ebaf0258130a98238 | include/asm-sparc64/kdebug.h | include/asm-sparc64/kdebug.h | #ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
sta... | #ifndef _SPARC64_KDEBUG_H
#define _SPARC64_KDEBUG_H
/* Nearly identical to x86_64/i386 code. */
#include <linux/notifier.h>
struct pt_regs;
/*
* These are only here because kprobes.c wants them to implement a
* blatant layering violation. Will hopefully go away soon once all
* architectures are updated.
*/
sta... | Kill unused DIE_PAGE_FAULT enum value. | [SPARC64]: Kill unused DIE_PAGE_FAULT enum value.
sparc64 got rid of the pagefault notifiers, so the enum value for them
can go away aswell.
Signed-off-by: Christoph Hellwig <923f7720577207a44b32e59bbfbea59d27f1ae8e@lst.de>
Signed-off-by: David S. Miller <fe08d3c717adf2ae63592e4c9aec6e3e404d8e3e@davemloft.net>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Program... |
de4ecf75c925661e8543a95d9a98c76d1382b5b1 | examples/hello.c | examples/hello.c | #define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("Y... | #define ZF_LOG_LEVEL ZF_LOG_INFO
#define ZF_LOG_TAG "MAIN"
#include <zf_log.h>
int main(int argc, char *argv[])
{
zf_log_set_tag_prefix("hello");
ZF_LOGI("You will see the number of arguments: %i", argc);
ZF_LOGD("You will NOT see the first argument: %s", *argv);
zf_log_set_output_level(ZF_LOG_WARN);
ZF_LOGW("Y... | Add example for memory logging support | Add example for memory logging support
| C | mit | wonder-mice/zf_log,wonder-mice/zf_log,wonder-mice/zf_log |
a9865d3e8694bfe5f94e69fd87d6d90798578936 | chapter-1/1-2-backslash-c.c | chapter-1/1-2-backslash-c.c | /**
* Exercise 1-2
*
* Experiment to find out what happens when prints's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <lizhineng@gmail.com>
* URL: https://zhineng... | /**
* Exercise 1-2
*
* Experiment to find out what happens when printfs's argument string contains \c,
* where c is some character not listed above.
*
* The C Programming Language - the second edition
* by Brian Kernighan and Dennis Ritchie
*
* Author: Li Zhineng <lizhineng@gmail.com>
* URL: https://zhinen... | Fix misspelling in execrise 2 in chapter 1 | Fix misspelling in execrise 2 in chapter 1
| C | mit | lizhineng/learning-the-c-programming-language |
8bdf7b1d4d4534a373550ec20b6f4c8308094212 | check_tests/eas_test_user.h | check_tests/eas_test_user.h | #ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("good.user@cstylianou.com")
// Password: "G00dP@55w0rd"
#endif
| #ifndef __EAS_TEST_USER_H__
#define __EAS_TEST_USER_H__
#define TEST_ACCOUNT_ID ("good.user@cstylianou.com")
// Password: "G00dP@55w0rd"
// #define TEST_ACCOUNT_ID ("bad.user@cstylianou.com")
#endif
| Add in a bad user option. Exists in GConf but not on the server. | Add in a bad user option. Exists in GConf but not on the server.
| C | lgpl-2.1 | simo5/evolution-activesync,simo5/evolution-activesync,simo5/evolution-activesync |
5d992b5774dde67ea14502dd01d7bf8f97352995 | C/FatorialRecursiva.c | C/FatorialRecursiva.c | #include<stdio.h>
int fatorial(int n){
if(n==1) return 1;
return (n * fatorial(n-1));
}
int main(){
printf("%d\n", fatorial(5));
return 0;
}
| Add Fatorial Recursica em C | Add Fatorial Recursica em C | C | mit | kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-de-Dados,kelvins/Algoritmos-e-Estruturas-d... | |
d60451381ed2d582505d55c6a5dedb4d22e3c23a | AFImage/Pod/AFImageCache.h | AFImage/Pod/AFImageCache.h | #import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Int... | #import "AFImageCacheOperation.h"
#pragma mark Type Definitions
// Block that transforms one image into another.
typedef AFImageCacheOperation *(^AFImageCacheOperationCreateBlock)(NSURL *url, AFImageTransform *transform,
NSCache *cache, BOOL refresh, AFImageCompletionBlock completionBlock);
#pragma mark Class Int... | Convert from id to instancetype | Convert from id to instancetype
| C | mit | mlatham/AFImage |
87fabd563cf81f09e61b006d07af03490b1092be | src/tests/eina_test_main.c | src/tests/eina_test_main.c | /* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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... | /* EINA - EFL data type library
* Copyright (C) 2008 Cedric Bail
*
* 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... | Fix test due to mempool internal change. | Fix test due to mempool internal change.
git-svn-id: 02e3ca972ab3b5e6aa10db2b13bd0ff52712197b@36223 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
| C | lgpl-2.1 | jordemort/eina,jordemort/eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,OpenInkpot-archive/iplinux-eina,jordemort/eina |
fa009912d9b1df5b73e5807a263e4541756b9dfb | 1337-617.c | 1337-617.c | #include <util.h>
/*
* _1n17 is leet for init.
* This function initializes a 1337-617 repo.
* Meaning it creates a directory with the passed name
* In this directory it creates another one called `.1337-617`
* There it makes the first commit for the repo creation
*/
int _1n17 (char *restrict repo_name)
{
retur... | #include <util.h>
/*
* _h45h stands for hash
* it simply creates a random hash of the passed length
*/
int _h45h (
const int length,
char *restrict hash
)
{
return 1;
}
/*
* c3c0_h45h stands for check hash
* Checks wether or not the passed hash has been used as a commit ID before
*/
int c3c0_h45h (const ... | Add definitons for some hash functions | Add definitons for some hash functions
| C | mit | Kriegslustig/1337-617 |
d2508569281f2254caa9e12450010a50ab97e0a0 | libkopete/kopeteversion.h | libkopete/kopeteversion.h | /*
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
*... | /*
Kopete (c) 2002-2005 by the Kopete developers <kopete-devel@kde.org>
*************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
*... | Update version string for next RC | Update version string for next RC
svn path=/trunk/KDE/kdenetwork/kopete/; revision=745111
| C | lgpl-2.1 | Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,Jtalk/kopete-fork-xep0136,josh-wambua/kopete,josh-wambua/kopete,josh-wambua/kopete,Jtalk/kopete-fork-xep0136,josh-wambua/kopete |
8d9e49ed14c4fe40bbee51d6ae28867b72ff5f07 | PodioKitCore/Common/PodioKitCore.h | PodioKitCore/Common/PodioKitCore.h | //
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKC... | //
// PodioKitCore.h
// PodioKitCore
//
// Created by Sebastian Rehnby on 12/02/15.
// Copyright (c) 2015 Citrix Systems, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCMacros.h"
#import "PKCConstants.h"
#import "PKCClient.h"
#import "PKCRequest.h"
#import "PKCResponse.h"
#import "PKC... | Include PKCBaseAPI in umbrella header | Include PKCBaseAPI in umbrella header
| C | mit | podio/podio-objc-core,podio/podio-objc-core,podio/podio-objc-core |
38932860b844b490af964d60b42d469a53b67d50 | test/Driver/aarch64-rand.c | test/Driver/aarch64-rand.c | // RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+rng %s 2>&1 | FileCheck %s
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.5a+rng %s 2>&1 | FileCheck %s
// CHECK: "-target-feature" "+rand"
// RUN: %clang -### -target aarch64-none-none-eabi -march=armv8.4a+norng %s 2>&1 | FileCheck %s... | Test optional Armv8.5-A random number extension | [AArch64][v8.5A] Test optional Armv8.5-A random number extension
The implementation of this is in TargetParser, so we only need to add a
test for it in clang.
Patch by Pablo Barrio!
Differential revision: https://reviews.llvm.org/D52492
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@343220 91177308-0d34-041... | C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/cl... | |
513ee4a749193cc8ba80666c852062bd7c9d2bf4 | ext/opengl/glimpl.h | ext/opengl/glimpl.h | #ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usu... | #ifndef _GLIMPL_H_
#define _GLIMPL_H_
#ifndef GLFUNC_MAGIC_START
#include "fptr_struct.h"
#endif
#define GET_GLIMPL_VARIABLE(_name_) \
(((struct glimpl *)DATA_PTR(obj))->_name_)
#define SET_GLIMPL_VARIABLE(_name_,_val_) \
((struct glimpl *)DATA_PTR(obj))->_name_ = (_val_)
/* at least GL_MAX_VERTEX_ATTRIBS - usu... | Fix call convention for wglGetProcAddress on Windows-i686 | Fix call convention for wglGetProcAddress on Windows-i686
| C | mit | larskanis/opengl,larskanis/opengl |
ffb3fd2e84d778386e5da7b6d975cc4895dc2bd6 | AssimpKit/Code/Model/SCNScene+AssimpImport.h | AssimpKit/Code/Model/SCNScene+AssimpImport.h | //
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (SCNScene*)assimpSceneNamed:(NSString*)name;
@end
| //
// SCNScene+AssimpImport.h
// AssimpKit
//
// Created by Deepak Surti on 10/24/16.
//
//
#include <GLKit/GLKit.h>
#import <SceneKit/SceneKit.h>
@interface SCNScene (AssimpImport)
+ (instancetype)assimpSceneNamed:(NSString*)name;
@end
| Use instancetype keyword for assimp method | Use instancetype keyword for assimp method
| C | bsd-3-clause | dmsurti/AssimpKit |
6de7ad8a2255d0a1ae782d75eaadcecbffc7fdd2 | compat/android/sys/user.h | compat/android/sys/user.h | // Copyright 2017 The Crashpad Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | Fix Android x86_64 build when using traditional headers | Fix Android x86_64 build when using traditional headers
Bug: crashpad:30
Change-Id: I4b4e478bb3811fd5d9d66d98a4ecc811be3ea129
Reviewed-on: https://chromium-review.googlesource.com/703689
Commit-Queue: Joshua Peraza <f5809a5e35ec7e1bd0e25cb0a0b68bb433cf6f17@chromium.org>
Reviewed-by: Mark Mentovai <f1b5a91d4d6ad523f261... | C | apache-2.0 | atom/crashpad,atom/crashpad,chromium/crashpad,chromium/crashpad,chromium/crashpad,atom/crashpad | |
5b7106db8763b164b199fd9381cff9ba3445b9ff | src/parse.h | src/parse.h | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is PARSE_SUCCESS.
struct ParseResult {
size_t chars_re... | // Copyright 2016 Mitchell Kember. Subject to the MIT License.
#ifndef PARSE_H
#define PARSE_H
#include "expr.h"
// Constant indicating that a parse was successful.
#define PARSE_SUCCESS (-1)
// ParseResult contains the result of parsing text. The 'expr' field has a
// meaningful value if and only if 'err_type' is ... | Add comment for constant PARSE_SUCCESS | Add comment for constant PARSE_SUCCESS
| C | mit | mk12/eva,mk12/eva |
c4194bbe0dbae028bb35d465c4f6342c1d87b486 | src/substr.c | src/substr.c | //
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#include <string.h>
char *substr(char *str, size_t ... | //
// substr.c
// AnsiLove/C
//
// Copyright (C) 2011-2016 Stefan Vogt, Brian Cassidy, Frederic Cambus.
// All rights reserved.
//
// This source code is licensed under the BSD 3-Clause License.
// See the file LICENSE for details.
//
#define _XOPEN_SOURCE 700
#define _NETBSD_SOURCE
#include <string.h>
char *su... | Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD | Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD
| C | bsd-2-clause | ansilove/AnsiLove-C,ansilove/ansilove |
fd8a853dfba813b54ddb0eeebee14f9dc9fa5961 | include/pipe/algorithm/pipe.h | include/pipe/algorithm/pipe.h | #pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std::move(gen));
}
}} /... | #pragma once
#include <utility>
#include <pipe/traits.h>
namespace pipe { namespace algorithm { namespace details {
template <typename Generator, typename Algorithm, typename _ = std::enable_if<pipe::is_generator<Generator>::value>::type>
auto operator|(Generator& gen, Algorithm algorithm)
{
return algorithm(std:... | Move operator| in details namespace | Move operator| in details namespace
| C | mit | vladris/pipe,vladris/pipe |
d351c50c960d6bad2469b08fd547936512c58a08 | uart_echo.c | uart_echo.c | #include <avr/interrupt.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
unsigned char c = 0;
do {
c = uart_receive();
uart_transmit(c);
} while (c);
return 0;
}
| #include <avr/interrupt.h>
#include <util/delay.h>
#include "uart.h"
int main (void) {
uart_enable(UM_Asynchronous);
sei();
DDRB = 0xFF;
unsigned char c = 0;
do {
c = uart_receive();
// Do some blinking if we receive a number between 1 and 9.
if (c >= '1' && c <= '9') {
for (int i = 0; ... | Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway. | Add a slight bit more functionality to the UART echo app so that it can blink some lights with numerical inputs. This can help determine whether or not the AVR is receiving the correct data, even though it is echoing it back anyway.
| C | mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr |
c905615f0dd9db449f32f9a4adff40676e84b8a2 | Reactor/MTRReactiveEngine.h | Reactor/MTRReactiveEngine.h | //
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReactive, and swizzles their
... | //
// MTRReactiveEngine.h
// Reactor
//
// Created by Ty Cobb on 1/15/15.
// Copyright (c) 2015 cobb. All rights reserved.
//
@import Foundation;
@protocol MTRReactive;
@interface MTRReactiveEngine : NSObject
/**
@brief Adds reactivity to marked classes
Sweeps the class list for classes adopting @c MTRReacti... | Add feature to on-demand reactify classes | Add feature to on-demand reactify classes | C | mit | wzrad/Reactor,derkis/Reactor,derkis/Reactor |
95acf0f82a339ca56201730369a9b641e72a4b20 | arc/arc/Plugin/PluginDelegate.h | arc/arc/Plugin/PluginDelegate.h | //
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@prot... | //
// PluginDelegate.h
// arc
//
// Created by Yong Michael on 6/4/13.
// Copyright (c) 2013 nus.cs3217. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "ArcAttributedString.h"
#import "File.h"
typedef enum {
kMCQSettingType,
kRangeSettingType,
kBoolSettingType
} kSettingType;
@prot... | Update comment to reflect dictionary layout. | Update comment to reflect dictionary layout.
| C | mit | BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc,BenTobias/arc |
316572d9a3274a18a8def23c087b139e27f99ac8 | snake.c | snake.c | #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
int main() {
return EXIT_SUCCESS;
}
| #include <stdlib.h>
/**
* @author: Hendrik Werner
*/
typedef struct Position {
int row;
int col;
} Position;
int main() {
return EXIT_SUCCESS;
}
| Define a struct to represent 2d positions. | Define a struct to represent 2d positions.
| C | mit | Hendrikto/Snake |
fca387c79a274d3da8d5abb97ee9b1765188abaa | eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h | eval/src/vespa/eval/tensor/dense/direct_dense_tensor_builder.h | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseT... | // Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "dense_tensor.h"
namespace vespalib::tensor {
/**
* Class for building a dense tensor by inserting cell values directly into underlying array of cells.
*/
class DirectDenseT... | Allow for building index on the outside. | Allow for building index on the outside.
| 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 |
0ef96b3c2dbf65fd92dd700e15689180af74d438 | firmware/WidgetTerminal.h | firmware/WidgetTerminal.h | /**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#include <Blynk/... | /**
* @file WidgetTerminal.h
* @author Volodymyr Shymanskyy
* @license This project is released under the MIT License (MIT)
* @copyright Copyright (c) 2015 Volodymyr Shymanskyy
* @date Jan 2015
* @brief
*/
#ifndef WidgetTerminal_h
#define WidgetTerminal_h
#include <Print.h>
#if !defined(SP... | Fix terminal widget on Spark Core | Fix terminal widget on Spark Core
| C | mit | yaneexy/blynk-library-spark,vshymanskyy/blynk-library-spark,domo-connect/blynk-library-spark,vshymanskyy/blynk-library-spark,chieftuscan/blynk-library-spark,chieftuscan/blynk-library-spark,yaneexy/blynk-library-spark,domo-connect/blynk-library-spark |
d2afa9534fc413ca9bd4d84e3f2398e922aec7c0 | meta/inc/TVirtualIsAProxy.h | meta/inc/TVirtualIsAProxy.h | // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.1 2005/05/27 16:42:58 pcanal Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | // @(#)root/meta:$Name: $:$Id: TVirtualIsAProxy.h,v 1.2 2005/06/08 18:51:36 rdm Exp $
// Author: Markus Frank 20/05/2005
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... | Add the necessary includes and forward declarations such that the class can be compiled independently. | Add the necessary includes and forward declarations such that the class can be compiled independently.
git-svn-id: ecbadac9c76e8cf640a0bca86f6bd796c98521e3@19581 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | dawehner/root,bbannier/ROOT,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,bbannier/ROOT,dawehner/root,dawehner/root,dawehner/root,dawehner/root,dawehner/root,bbannier/ROOT,bbannier/ROOT |
ba62f0d82dda609e9e01b84797944e9d18a989eb | KBSCloudApp.h | KBSCloudApp.h | //
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBSCloudAppAPIInvalidUser,
K... | //
// KBSCloudApp.h
//
// Created by Keith Smiley
// Copyright (c) 2013 Keith Smiley. All rights reserved.
//
#ifndef _KBSCLOUDAPP_
#define _KBSCLOUDAPP_
#import "KBSCloudAppUser.h"
#import "KBSCloudAppAPI.h"
#import "KBSCloudAppURL.h"
NS_ENUM(NSInteger, KBSCloudAppAPIErrorCode) {
KBSCloudAppNoUserOrPass,
KBS... | Include URL in common includes | Include URL in common includes
| C | mit | keith/KBSCloudAppAPI |
2d02b4ce02e4ec00b773f193f06ba44f0e1d57a4 | source/common/hal/freescale/k20dx/read_uid.c | source/common/hal/freescale/k20dx/read_uid.c | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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 re... | /* CMSIS-DAP Interface Firmware
* Copyright (c) 2009-2013 ARM Limited
*
* 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 re... | Use the full UUID for the K20DX | Use the full UUID for the K20DX
Use all 4 words of the unique ID individually rather than xor ing them
all together.
| C | apache-2.0 | sg-/DAPLink,sg-/DAPLink,sg-/DAPLink,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port,google/DAPLink-port |
8dcdc08596a7065b20e037ceb19ee286ebf98a76 | proc_info/openbsd_proc_info.c | proc_info/openbsd_proc_info.c | #include <fcntl.h>
#include <kvm.h>
#include <sys/sysctl.h>
#include <unistd.h>
#include <stdio.h>
#include <time.h>
int main(int argc,char** args) {
kvm_t* kd;
// Get a handle to libkvm interface
kd = kvm_open(NULL, NULL, NULL, KVM_NO_FILES, "error: ");
pid_t pid;
pid = getpid();
struct kinfo_proc * kp;
i... | Add support for openbsd, test on openbsd 6.8 | Add support for openbsd, test on openbsd 6.8
| C | cc0-1.0 | dnabre/misc | |
93fcae8ec3035b4b3f1b3a789ecfa15e20c00f8b | program/driver/us100.c | program/driver/us100.c | /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultr... | /*==============================================================================================*/
/*==============================================================================================*/
#include "QuadCopterConfig.h"
/* Connection methods of Ultrasonic */
#define ULT_USE_UART2 1
#define ULT_USE_PWM 0
Ultr... | Fix speed of ultrasonic display | Fix speed of ultrasonic display
| C | mit | zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor,zxc2694/STM32F429_Quadrotor |
6fa3dbcb9600a94ee0183733ca8db869770246dd | util/test/util/test_string.c | util/test/util/test_string.c | #include <stdio.h>
#include <axis2_error_default.h>
#include <axis2_log.h>
#include <axis2_string.h>
void test_strltrim(const axis2_env_t *env)
{
axis2_char_t s[100]=" abcd efgh ";
axis2_char_t *trimmed;
trimmed = AXIS2_STRLTRIM(s, " \t\r\n");
if (0 == AXIS2_STRCMP(trimmed, "abcd efgh "))
printf("AXIS2_STRLTR... | Test for trim functions added. | Test for trim functions added.
git-svn-id: fbb392d5347ebc45c06187f72dfd8bab02595dbf@413026 13f79535-47bb-0310-9956-ffa450edef68
| C | apache-2.0 | axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c,axbannaz/axis2-c | |
3e17ed56780465cd5bc949d8eed9c1e8bb6522fe | src/input.c | src/input.c | // input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport... | // input.c
#include "../include/simple2d.h"
/*
* Get the mouse coordinates relative to the viewport
*/
void S2D_GetMouseOnViewport(S2D_Window *window, int wx, int wy, int *x, int *y) {
double scale; // viewport scale factor
int w, h; // width and height of scaled viewport
switch (window->viewport... | Fix mouse position over an `S2D_FIXED` viewport | Fix mouse position over an `S2D_FIXED` viewport
| C | mit | simple2d/simple2d,simple2d/simple2d |
1cc80628fc64ff01aec730304e1bb06c0eb6e052 | warmup/diagonal_difference.c | warmup/diagonal_difference.c | /*
Input Format
The first line contains a single integer N. The next N lines contain N integers (each) describing the matrix.
Constraints
1≤N≤100
−100≤A[i]≤100
Output Format
Output a single integer equal to the absolute difference in the sums across the diagonals.
Sample Input
3
11 2 4
4 5 6
10 8 -12
Sample Outp... | Add Diagonal Diff for NxN matrix | Add Diagonal Diff for NxN matrix
| C | mit | anaghajoshi/HackerRank | |
cce36d17a24c875d8418d07c3c661a14ae421199 | secure_api/vale/asm/testsha256.c | secure_api/vale/asm/testsha256.c | #include "sha256_main_i.h"
int main()
{
uint8_t plaintext[3U] = { (uint8_t)0x61U, (uint8_t)0x62U, (uint8_t)0x63U };
uint32_t plaintext_len = (uint32_t)3U;
uint32_t output[8];
uint32_t output_len = (uint32_t)32U;
/*
// This is equivalent to what sha256_main_i_SHA256_Complete does:
uint32_t h[8];
uint... | Add standalone test for Vale SHA2-256 | Add standalone test for Vale SHA2-256
| C | apache-2.0 | mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star,mitls/hacl-star | |
067bb0d1183573504aa10ac2132c37aa0dac4aa6 | libraries/base/cbits/PrelIOUtils.c | libraries/base/cbits/PrelIOUtils.c | /*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsCore.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, ... | /*
* (c) The University of Glasgow 2002
*
* static versions of the inline functions in HsBase.h
*/
#define INLINE
#ifdef __GLASGOW_HASKELL__
# include "Rts.h"
#endif
#include "HsBase.h"
#ifdef __GLASGOW_HASKELL__
void errorBelch2(const char*s, char *t)
{
errorBelch(s,t);
}
void debugBelch2(const char*s, ... | Update a comment in base cbits | Update a comment in base cbits
| C | bsd-3-clause | ezyang/ghc,urbanslug/ghc,TomMD/ghc,shlevy/ghc,TomMD/ghc,tjakway/ghcjvm,sdiehl/ghc,mettekou/ghc,siddhanathan/ghc,TomMD/ghc,sgillespie/ghc,nathyong/microghc-ghc,jstolarek/ghc,nathyong/microghc-ghc,ezyang/ghc,gridaphobe/ghc,ml9951/ghc,mcschroeder/ghc,da-x/ghc,ml9951/ghc,oldmanmike/ghc,anton-dessiatov/ghc,sdiehl/ghc,nathyo... |
70f269b59dbd1f483940d401e6e82fe5f2408a92 | utils/log.h | utils/log.h | /*
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
* Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#ifndef... | /*
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
* Copyright 2004 John Tytgat <John.Tytgat@aaug.net>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
* Licenced under the MIT License,
* http://www.opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#ifndef... | Fix misleading dbl header include protection test. | Fix misleading dbl header include protection test.
svn path=/trunk/libnsbmp/; revision=5312
| C | mit | dkua/libnsbmp,dkua/libnsbmp |
664508dc503dff2492306255827eb1861cfb8ce0 | tests/c-api-tests/parsestring-using-cinterface.c | tests/c-api-tests/parsestring-using-cinterface.c | #include <stdio.h>
#include "c_interface.h"
int main() {
VC vc = vc_createValidityChecker();
vc_setFlags(vc,'n');
vc_setFlags(vc,'d');
vc_setFlags(vc,'p');
vc_setFlags(vc,'m');
Expr q;
Expr asserts;
const char* s = "(benchmark fg.smt\n"
":logic QF_AUFBV\n"
":extrafuns ((x_32 BitVec[32]... | Fix regresscapi. This file wasn't checked in | Fix regresscapi. This file wasn't checked in
| C | mit | kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp,kyledewey/stp | |
4ef5651e85589e3aaca704c6d2d7ae7e794e5d25 | arch/mips/include/asm/bug.h | arch/mips/include/asm/bug.h | #ifndef __ASM_BUG_H
#define __ASM_BUG_H
#include <linux/compiler.h>
#include <asm/sgidefs.h>
#ifdef CONFIG_BUG
#include <asm/break.h>
static inline void __noreturn BUG(void)
{
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
/* Fool GCC into thinking the function doesn't return. */
while (1)
;
}
#define HA... | #ifndef __ASM_BUG_H
#define __ASM_BUG_H
#include <linux/compiler.h>
#include <asm/sgidefs.h>
#ifdef CONFIG_BUG
#include <asm/break.h>
static inline void __noreturn BUG(void)
{
__asm__ __volatile__("break %0" : : "i" (BRK_BUG));
unreachable();
}
#define HAVE_ARCH_BUG
#if (_MIPS_ISA > _MIPS_ISA_MIPS1)
static inl... | Convert BUG() to use unreachable() | MIPS: Convert BUG() to use unreachable()
Use the new unreachable() macro instead of while(1);
Signed-off-by: David Daney <0662de36cfb0706ed279bff52abef14720945acc@caviumnetworks.com>
Acked-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
CC: 562397917b9a8bf316569a848858b12fb417723f@linux-mip... | C | mit | KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kana... |
d3f6edf4589da29a8694b00e797910e2e3f886f5 | tools/checkscp.c | tools/checkscp.c | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include "scp.h"
unsigned char scp_processheader(FILE *scpfile)
{
return 0;
}
void scp_processtrack(FILE *scpfile, const unsigned char track)
{
}
int main(int argc, char **argv)
{
unsigned char numtracks;
unsigned char track;
FILE *fp;
if (argc!=... | #include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include "scp.h"
struct scp_header header;
unsigned char scp_processheader(FILE *scpfile)
{
fread(&header, 1, sizeof(header), scpfile);
if (strncmp((char *)&header.magic, SCP_MAGIC, strlen(SCP_MAGIC))!=0)
{
printf("Not an SCP f... | Check magic and output header fields | Check magic and output header fields
| C | mit | picosonic/bbc-fdc,picosonic/bbc-fdc |
a1199a9863cc34c78bc0e63e3ea0c9420abeacb1 | MFSideMenu/MFSideMenuShadow.h | MFSideMenu/MFSideMenuShadow.h | //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@property (nonatomic, assign... | //
// MFSideMenuShadow.h
// MFSideMenuDemoSearchBar
//
// Created by Michael Frederick on 5/13/13.
// Copyright (c) 2013 Frederick Development. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface MFSideMenuShadow : NSObject
@property (nonatomic, assign) BOOL enabled;
@pro... | Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes. | Include UIKit to h file, because change pch to h for two files in main project and refactor all needed includes.
| C | bsd-3-clause | AxialExchange/MFSideMenu |
842e55bd409151abc805b2e0595346821c3f6c83 | as6502/common.h | as6502/common.h | //
// common.h
// v6502
//
// Created by Daniel Loffgren on H.25/05/05.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#ifndef v6502_common_h
#define v6502_common_h
void die(const char *reason);
#endif
| //
// common.h
// v6502
//
// Created by Daniel Loffgren on H.25/05/05.
// Copyright (c) 平成25年 Hello-Channel, LLC. All rights reserved.
//
#ifndef v6502_common_h
#define v6502_common_h
__attribute((noreturn)) void die(const char *reason);
#endif
| Make sure static analyzer can see die's noreturn attribute | Make sure static analyzer can see die's noreturn attribute
git-svn-id: dd14d189f2554b0b3f4c2209a95c13d2029e3fe8@183 96dfbd92-d197-e211-9ca9-00110a534b34
| C | mit | RyuKojiro/v6502 |
512dd8c387681b748f43660144d64895f593973f | features/FEATURE_BLE/ble/BLETypes.h | features/FEATURE_BLE/ble/BLETypes.h | /* mbed Microcontroller Library
* Copyright (c) 2017-2017 ARM Limited
*
* 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 re... | Add collection of basic BLE types shared accross all layers. | BLE: Add collection of basic BLE types shared accross all layers.
| C | apache-2.0 | HeadsUpDisplayInc/mbed,infinnovation/mbed-os,karsev/mbed-os,nRFMesh/mbed-os,ryankurte/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,c1728p9/mbed-os,HeadsUpDisplayInc/mbed,catiedev/mbed-os,Archcady/mbed-os,infinnovation/mbed-os,mazimkhan/mbed-os,andcor02/mbed-os,mazimkhan/mbed-os,Archcady/mbed-os,kjbracey-arm/mbed,catiede... | |
541b99466e6b0bce16a105cef2fbfb44e7932e2a | test/Sema/neon-vector-types.c | test/Sema/neon-vector-types.c | // RUN: %clang_cc1 %s -fsyntax-only -verify
typedef float float32_t;
typedef signed char poly8_t;
typedef short poly16_t;
typedef unsigned long long uint64_t;
// Define some valid Neon types.
typedef __attribute__((neon_vector_type(2))) int int32x2_t;
typedef __attribute__((neon_vector_type(4))) int int32x4_t;
typede... | Add tests for new Neon vector type attributes. | Add tests for new Neon vector type attributes.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@119303 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... | |
a1893ca13b9fc87ebde6472240436a15645704c0 | include/nekit/utils/error.h | include/nekit/utils/error.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, including without limitation the rights
// to use, copy, modify, mer... | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// 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, including without limitation the rights
// to use, copy, modify, mer... | Use `using` instead of `typedef` | STYLE: Use `using` instead of `typedef`
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit |
1a8eebb5f92e2b2545612ab8d2c5132719c55c96 | simulator/kernel/kernel.h | simulator/kernel/kernel.h | /*
* kernel.h - base kernel class
* @author Vyacheslav Kompan kompan.vo@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#ifndef KERNEL_H
#define KERNEL_H
/* Simulator modules */
#include <memory/memory.h>
#include <simulator.h>
/* Generic C++ */
#include <memory>
class Kernel {
std::weak_ptr<Simulator> sim;
s... | /*
* kernel.h - base kernel class
* @author Vyacheslav Kompan kompan.vo@phystech.edu
* Copyright 2018 MIPT-MIPS
*/
#ifndef KERNEL_H
#define KERNEL_H
/* Simulator modules */
#include <memory/memory.h>
#include <simulator.h>
/* Generic C++ */
#include <memory>
class Kernel {
std::weak_ptr<Simulator> sim;
s... | Rename Kernel setter methods arguments | Rename Kernel setter methods arguments
| C | mit | MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015 |
82d35af306f00b277c29502adc76f44e27d06dc6 | src/binder/multidispatch.h | src/binder/multidispatch.h | /* This is how a Code looks on the inside. Once again, C struct that should
* match what P6opaque computes for the Code class. */
typedef struct {
PMC *st; /* S-table, though we don't care about that here. */
PMC *sc; /* Serialization context, though we don't care about th... | Move various multi-dispatch data structures into a header file, plus way that we'll be able to get at the dispatcher list, dispatcher info stash and so forth. | Move various multi-dispatch data structures into a header file, plus way that we'll be able to get at the dispatcher list, dispatcher info stash and so forth.
| C | artistic-2.0 | rakudo/rakudo,labster/rakudo,awwaiid/rakudo,niner/rakudo,rakudo/rakudo,softmoth/rakudo,dwarring/rakudo,jonathanstowe/rakudo,ungrim97/rakudo,Gnouc/rakudo,LLFourn/rakudo,azawawi/rakudo,ab5tract/rakudo,b2gills/rakudo,pmurias/rakudo,tbrowder/rakudo,b2gills/rakudo,retupmoca/rakudo,rakudo/rakudo,ungrim97/rakudo,samcv/rakudo,... | |
688499b9a6d027ad71dbc4718f9c3b8a48dba776 | src/salut.c | src/salut.c | #include "config.h"
#include <glib.h>
#include <telepathy-glib/run.h>
#include <telepathy-glib/debug.h>
#include "salut-connection-manager.h"
#include "salut-avahi-discovery-client.h"
#include "debug.h"
static TpBaseConnectionManager *
salut_create_connection_manager (void)
{
return TP_BASE_CONNECTION_MANAGER (
... | #include "config.h"
#include <glib.h>
#include <telepathy-glib/run.h>
#include <telepathy-glib/debug.h>
#include "salut-connection-manager.h"
#include "salut-avahi-discovery-client.h"
#include "debug.h"
static TpBaseConnectionManager *
salut_create_connection_manager (void)
{
return TP_BASE_CONNECTION_MANAGER (
... | Remove use of g_set_prgname in main(). | Remove use of g_set_prgname in main().
tp_run_connection_manager calls g_set_prgname internally. It's
supposed to only be called once. Calling it in addition to
tp_run_connection_manager causes an assertion. This patch removes
use of it in main().
| C | lgpl-2.1 | freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut,freedesktop-unofficial-mirror/telepathy__telepathy-salut |
fd1f5bb3bf922fcfd5afdb5d6a0faced6eb995b3 | include/Genes/Pawn_Structure_Gene.h | include/Genes/Pawn_Structure_Gene.h | #ifndef PAWN_STRUCTURE_GENE_H
#define PAWN_STRUCTURE_GENE_H
#include <string>
#include <map>
#include "Genes/Gene.h"
#include "Game/Piece.h"
#include "Game/Color.h"
class Board;
class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene>
{
public:
Pawn_Structure_Gene() noexcept;
std::s... | #ifndef PAWN_STRUCTURE_GENE_H
#define PAWN_STRUCTURE_GENE_H
#include <string>
#include <map>
#include "Genes/Gene.h"
#include "Game/Piece.h"
#include "Game/Color.h"
class Board;
//! \brief A gene to evaluate how well pawns are protected.
class Pawn_Structure_Gene : public Clonable_Gene<Pawn_Structure_Gene>
{
pu... | Fix public/private members and doxygen comments | Fix public/private members and doxygen comments
| C | mit | MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess |
a919d4dcbd4286c675d4ef6d720dd80b71be3614 | sort_algorithms.c | sort_algorithms.c | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | /* Author: Dan Wilder
*
* School: University of Missouri - St. Louis
* Semester: Fall 2015
* Class: CS 3130 - Design and Analysis of Algorithms
* Instructor: Galina N. Piatnitskaia
*/
#include "sort_algorithms.h"
void swap(int *x, int *y) {
int temp = *x;
*x = *y
*y = temp;
}
void bubbleS... | Change name of parameter in bubbleSort | Change name of parameter in bubbleSort
| C | mit | sentientWilder/Search-and-Sort,sentientWilder/Search-and-Sort |
f88f56d7356cd46fcc861a06aa4312e57486dfc5 | src/popsift/common/sync_queue.h | src/popsift/common/sync_queue.h | #pragma once
#include <condition_variable>
#include <mutex>
#include <queue>
namespace popsift {
/*************************************************************
* SyncQueue
* This is a basic alternative to the Boost sync_queue class.
* It lets threads push and pull items off a queue in a thread
* safe manner.
**... | #pragma once
#include <condition_variable>
#include <mutex>
#include <queue>
namespace popsift {
/**
* @brief A thread safe wrapper around std::queue (replaces boost::sync_queue).
* @tparam T the value type that's stored in the queue.
*/
template<typename T>
class SyncQueue {
public:
SyncQueue() = default;
/... | Add doxygen comments to SyncQueue. | Add doxygen comments to SyncQueue.
| C | mpl-2.0 | alicevision/popsift,alicevision/popsift,alicevision/popsift |
deaddeb464bb6922424a399be2cf62a57e90d7b5 | MoblicoSDK/Services/MLCSettingsService.h | MoblicoSDK/Services/MLCSettingsService.h | /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | /*
Copyright 2012 Moblico Solutions LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this work except in compliance with the License.
You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... | Update type in SettingsService callback. | Update type in SettingsService callback.
| C | apache-2.0 | Moblico/MoblicoSDK-iOS |
a7792a50ca0d22f595d01d191252ab20f5cb206c | integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h | integration/cocos2d-x-v2/include/bee/Cocos2dxBeehive.h | //
// Created by Dawid Drozd aka Gelldur on 08.10.17.
//
#pragma once
#include <map>
#include <string>
#include <vector>
#include <bee/Beehive.h>
namespace cocos2d
{
class CCNode;
}
namespace Bee
{
class Graph;
class Node;
class Cocos2dxBeehive
{
public:
Cocos2dxBeehive(const std::vector<std::string>& searchPath... | //
// Created by Dawid Drozd aka Gelldur on 08.10.17.
//
#pragma once
#include <map>
#include <string>
#include <vector>
#include <bee/Beehive.h>
namespace cocos2d
{
class CCNode;
}
namespace Bee
{
class Graph;
class Node;
class Cocos2dxBeehive
{
public:
Cocos2dxBeehive(const std::vector<std::string>& searchPath... | Add getter for lua state | Add getter for lua state
| C | apache-2.0 | gelldur/Bee |
62313cd8de5b7809f748801fccd8010334cb4851 | src/include/cdb/cdbsrlz.h | src/include/cdb/cdbsrlz.h | /*-------------------------------------------------------------------------
*
* cdbsrlz.h
* definitions for paln serialization utilities
*
* Copyright (c) 2004-2008, Greenplum inc
*
* NOTES
*
*-------------------------------------------------------------------------
*/
#ifndef CDBSRLZ_H
#define CDBSRLZ_H
... | /*-------------------------------------------------------------------------
*
* cdbsrlz.h
* definitions for plan serialization utilities
*
* Copyright (c) 2004-2008, Greenplum inc
*
* NOTES
*
*-------------------------------------------------------------------------
*/
#ifndef CDBSRLZ_H
#define CDBSRLZ_H
... | Fix typo in header file comment | Fix typo in header file comment
| C | apache-2.0 | janebeckman/gpdb,atris/gpdb,cjcjameson/gpdb,yuanzhao/gpdb,50wu/gpdb,kaknikhil/gpdb,foyzur/gpdb,tangp3/gpdb,chrishajas/gpdb,atris/gpdb,Quikling/gpdb,rvs/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,Quikling/gpdb,atris/gpdb,janebeckman/gpdb,zaksoup/gpdb,cjcjameson/gpdb,ashwinstar/gpdb,Quikling/gpdb,kaknikhil/gpdb,0x0FFF/gpdb,lintzc/... |
a911ff6cc87fa430dac4cbe0017633796907b839 | src/test/resources/testmodule.c | src/test/resources/testmodule.c | #include "redismodule.h"
#include <stdlib.h>
int HelloworldRand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
RedisModule_ReplyWithLongLong(ctx,rand());
return REDISMODULE_OK;
}
int RedisModule_OnLoad(RedisModuleCtx *ctx) {
if (RedisModule_Init(ctx,"testmodule",1,REDISMODULE_APIVER_... | #include "redismodule.h"
#include <stdlib.h>
int HelloworldRand_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
RedisModule_ReplyWithLongLong(ctx,rand());
return REDISMODULE_OK;
}
int RedisModule_OnLoad(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) {
if (RedisModule_Init(ct... | Fix OnLoad signature and configure command parameters properly | Fix OnLoad signature and configure command parameters properly
| C | mit | RedisLabs/jedis,HeartSaVioR/jedis,yapei123/jedis,sazzad16/jedis,mosoft521/jedis,mosoft521/jedis,HeartSaVioR/jedis,smagellan/jedis,sazzad16/jedis,zts1993/jedis,yapei123/jedis,smagellan/jedis,xetorthio/jedis,xetorthio/jedis,zts1993/jedis,RedisLabs/jedis |
3a189a9e85e9f494f40e44012f864e663274181b | tests/regression/02-base/92-ad-union-fields.c | tests/regression/02-base/92-ad-union-fields.c | // SKIP
// TODO: be sound and claim that assert may hold instead of must not hold
// assert passes when compiled
#include <assert.h>
union u {
int fst;
float snd;
};
int main() {
union u a;
void *p = &a.fst;
void *q = &a.snd;
assert(p == q);
return 0;
}
| Add skipped base union field pointer unsoundness test | Add skipped base union field pointer unsoundness test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
71db9767599b54ee8f8622bee2420daf78603dcf | arch/x86_64/rsp/vmov.c | arch/x86_64/rsp/vmov.c | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, unsigned de) {
uint16_... | //
// arch/x86_64/rsp/vmov.c
//
// This file is subject to the terms and conditions defined in
// 'LICENSE', which is part of this source code package.
//
#include "common.h"
#include "rsp/cpu.h"
#include "rsp/rsp.h"
__m128i rsp_vmov(struct rsp *rsp,
unsigned src, unsigned e, unsigned dest, unsigned de) {
uint16_... | Fix a typo in the VMOV implementation. | Fix a typo in the VMOV implementation.
| C | bsd-3-clause | tj90241/cen64,LuigiBlood/cen64,tj90241/cen64,LuigiBlood/cen64 |
a2301921e37925bcc77fd2326249d13ff6a2792d | src/trm/ft_trmsignalhook.c | src/trm/ft_trmsignalhook.c | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_trmsignalhook.c :+: :+: :+: ... | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_trmsignalhook.c :+: :+: :+: ... | Change the ilst content (2) | Change the ilst content (2)
| C | apache-2.0 | ncoden/libft |
c10dc660e2f20fa099f7186bf4867f685a398758 | qt/database.h | qt/database.h | /*
* Copyright (C) 2014 Matthias Klumpp <matthias@tenstral.net>
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* 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 Foundatio... | /*
* Copyright (C) 2014 Matthias Klumpp <matthias@tenstral.net>
*
* Licensed under the GNU Lesser General Public License Version 2.1
*
* 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 Foundatio... | Use QString() as default paramater for an empty string | trivial: Use QString() as default paramater for an empty string
| C | lgpl-2.1 | ximion/appstream,ximion/appstream,ximion/appstream,ximion/appstream |
31f9fa46901ed41ea21f43b1a05481112370e8f1 | PaymentKit/PKCardNumber.h | PaymentKit/PKCardNumber.h | //
// CardNumber.h
// PKPayment Example
//
// Created by Alex MacCaw on 1/22/13.
// Copyright (c) 2013 Stripe. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCardType.h"
@interface PKCardNumber : NSObject
@property (nonatomic, readonly) PKCardType cardType;
@property (nonatomic, readonly) N... | //
// CardNumber.h
// PKPayment Example
//
// Created by Alex MacCaw on 1/22/13.
// Copyright (c) 2013 Stripe. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "PKCardType.h"
@interface PKCardNumber : NSObject
@property (nonatomic, readonly) PKCardType cardType;
@property (nonatomic, readonly) N... | Make validity booleans properties as well | Make validity booleans properties as well
| C | mit | onevcat/PaymentKit,loudnate/PaymentKit,tictail/TICPaymentKit,spinlister/PaymentKit,RidePal/PaymentKit,loudnate/PaymentKit,mobitar/PaymentKit,oanaBan/PaymentKit,jonathanrauch/PaymentKit,vikas100/Vikas,tictail/TICPaymentKit,jonathanrauch/PaymentKit,zsw12abc/PaymentKit,bobbyski/PaymentKit,stripe/PaymentKit,prolificinterac... |
3c2fc5241d63758ffd4e4c072df9742c8dda3595 | chrome/gpu/gpu_config.h | chrome/gpu/gpu_config.h | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_GPU_GPU_CONFIG_H_
#define CHROME_GPU_GPU_CONFIG_H_
// This file declares common preprocessor configuration for the GPU process.
#incl... | // Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_GPU_GPU_CONFIG_H_
#define CHROME_GPU_GPU_CONFIG_H_
// This file declares common preprocessor configuration for the GPU process.
#incl... | Fix stupid error for Linux build. | Fix stupid error for Linux build.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/555096
git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@37093 4ff67af0-8c30-449e-8e8b-ad334ec8d88c
| C | bsd-3-clause | wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser |
4f81bce800c91bf0676cdff4267ce474d88ebf5a | OpenAL32/Include/alThunk.h | OpenAL32/Include/alThunk.h | #ifndef _AL_THUNK_H_
#define _AL_THUNK_H_
#include "config.h"
#include "AL/al.h"
#include "AL/alc.h"
#ifdef __cplusplus
extern "C" {
#endif
void alThunkInit(void);
void alThunkExit(void);
ALuint alThunkAddEntry(ALvoid * ptr);
void alThunkRemoveEntry(ALuint index);
ALvoid *alThunkLookupEntry(ALuint index);
#if (SIZ... | #ifndef _AL_THUNK_H_
#define _AL_THUNK_H_
#include "config.h"
#include "AL/al.h"
#include "AL/alc.h"
#ifdef __cplusplus
extern "C" {
#endif
void alThunkInit(void);
void alThunkExit(void);
ALuint alThunkAddEntry(ALvoid *ptr);
void alThunkRemoveEntry(ALuint index);
ALvoid *alThunkLookupEntry(ALuint index);
#if (SIZE... | Improve a macro to reference its parameter | Improve a macro to reference its parameter
| C | lgpl-2.1 | alexxvk/openal-soft,Wemersive/openal-soft,soundsrc/openal-soft,aaronmjacobs/openal-soft,EddieRingle/openal-soft,aaronmjacobs/openal-soft,mmozeiko/OpenAL-Soft,mmozeiko/OpenAL-Soft,AerialX/openal-soft-android,irungentoo/openal-soft-tox,arkana-fts/openal-soft,soundsrc/openal-soft,EddieRingle/openal-soft,BeamNG/openal-soft... |
e8323b47a5feb3aad3dc68e1cce892808391ca57 | roofit/histfactory/inc/RooStats/HistFactory/HistFactoryException.h | roofit/histfactory/inc/RooStats/HistFactory/HistFactoryException.h | // @(#)root/roostats:$Id$
// Author: George Lewis, Kyle Cranmer
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/roostats:$Id$
// Author: George Lewis, Kyle Cranmer
/*************************************************************************
* Copyright (C) 1995-2008, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Allow for messages in HistFactory exceptions. | [HF] Allow for messages in HistFactory exceptions.
| C | lgpl-2.1 | olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root,olifre/root |
e5666f371e863ac73d8fa7c15bef9c9ba0359b82 | draft/zmq42draft.h | draft/zmq42draft.h | #if ZMQ_VERSION_MINOR == 2
#ifdef ZMQ_BUILD_DRAFT_API
#define ZMQ42HASDRAFT
#endif
#endif
#ifndef ZMQ42HASDRAFT
#define ZMQ_SERVER -12
#define ZMQ_CLIENT -13
#define ZMQ_RADIO -14
#define ZMQ_DISH -15
#define ZMQ_GATHER -16
#define ZMQ_SCATTER -17
#define ZMQ_DGRAM -18
#endif
| #if ZMQ_VERSION_MINOR >= 2
#ifdef ZMQ_BUILD_DRAFT_API
#define ZMQ42HASDRAFT
#endif
#endif
#ifndef ZMQ42HASDRAFT
#define ZMQ_SERVER -12
#define ZMQ_CLIENT -13
#define ZMQ_RADIO -14
#define ZMQ_DISH -15
#define ZMQ_GATHER -16
#define ZMQ_SCATTER -17
#define ZMQ_DGRAM -18
#endif
| Make draft compile with ZeroMQ 4.3.0 | Make draft compile with ZeroMQ 4.3.0
| C | bsd-2-clause | pebbe/zmq4,pebbe/zmq4 |
a804609334035658ed74f5e0664dd4c380e68955 | bin/src/hr.c | bin/src/hr.c | /**************************************************\
* A port of LuRsT's hr to C *
* Sam Stuewe (C) 2014 Licensed under the terms of *
* the GNU Public License version 2 *
\**************************************************/
// Libraries //
#include <stdio.h>
#include <string.h>... | /**************************************************\
* A port of LuRsT's hr to C *
* Sam Stuewe (C) 2014 Licensed under the terms of *
* the GNU Public License version 2 *
\**************************************************/
// Libraries //
#include <stdio.h>
#include <string.h>... | Update for style and simplicity | Update for style and simplicity
| C | unlicense | HalosGhost/.dotfiles,HalosGhost/.dotfiles |
1f561bba70d0746f0b474f39fad689ae7d678517 | arch/sgi/include/vmparam.h | arch/sgi/include/vmparam.h | /* $OpenBSD: vmparam.h,v 1.3 2009/05/08 18:42:04 miod Exp $ */
#ifndef _SGI_VMPARAM_H_
#define _SGI_VMPARAM_H_
#define VM_PHYSSEG_MAX 32 /* Max number of physical memory segments */
#define VM_NFREELIST 2
#define VM_FREELIST_DMA32 1 /* memory under 2GB suitable for DMA */
#include <mips64/vmparam.h>
#endif /* _SG... | /* $OpenBSD: vmparam.h,v 1.4 2009/10/14 20:18:26 miod Exp $ */
/* public domain */
#ifndef _SGI_VMPARAM_H_
#define _SGI_VMPARAM_H_
#define VM_PHYSSEG_MAX 32 /* Max number of physical memory segments */
/*
* On Origin and Octane families, DMA to 32-bit PCI devices is restricted.
*
* Systems with physical memory aft... | Add some comments to explain why the DMA32 physseg is really 2**31 bytes long. Prompted by deraadt@ long ago. | Add some comments to explain why the DMA32 physseg is really 2**31 bytes
long. Prompted by deraadt@ long ago.
| C | isc | orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars |
64cdc50fbcc47cbcb957111ff6637e65c5b5f525 | config.def.h | config.def.h | /* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which... | /* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which... | Reduce nap time to 15 minutes as mentioned in docs | Reduce nap time to 15 minutes as mentioned in docs | C | isc | pickfire/spt,pickfire/spt |
a71d3c65375114146bb515b31820c5bf5d670128 | test/CodeGen/builtins-arm.c | test/CodeGen/builtins-arm.c | // RUN: %clang_cc1 -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o %t %s
void *f0()
{
return __builtin_thread_pointer();
}
| // RUN: %clang_cc1 -Wall -Werror -triple thumbv7-eabi -target-cpu cortex-a8 -O3 -emit-llvm -o - %s | FileCheck %s
void *f0()
{
return __builtin_thread_pointer();
}
void f1(char *a, char *b) {
__clear_cache(a,b);
}
// CHECK: call void @__clear_cache
| Add a test to the previous commit. | Add a test to the previous commit.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@105596 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
28bfcfabf1185f197c49f21abc4b71629cfebcec | test/test_parser_terminal.c | test/test_parser_terminal.c | #include "test_parser_p.h"
void terminal_success(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("HelloWorld"),
rule_init("HelloWorld",
terminal("hello world")
), 1
);
parse_t *result = parse("hello world", grammar);
assert_int_equal(result->length, 11);
assert_int_equal(re... | #include "test_parser_p.h"
void terminal_success(void **state) {
grammar_t *grammar = grammar_init(
non_terminal("HelloWorld"),
rule_init("HelloWorld",
terminal("hello world")
), 1
);
parse_result_t *result = parse("hello world", grammar);
assert_non_null(result);
assert_true(is_success(re... | Use new api for terminal tests | Use new api for terminal tests
| C | mit | Baltoli/peggo,Baltoli/peggo |
771cb01c0311688f00593cc2a309e32afdbd4b40 | benchmark/timer.h | benchmark/timer.h | #include <time.h>
clock_t calc_time0,calc_time1;
double calc_time;
#define TIME_ON calc_time0=clock();
#define TIME_OFF(msg) calc_time1=clock(); \
calc_time=(double)(calc_time1-calc_time0)/CLOCKS_PER_SEC; \
std::cout<<msg<<": iterations="<<i \
<<" CPU Time="<<std... | #include <time.h>
#include <sstream>
#include <iostream>
clock_t calc_time0,calc_time1;
double calc_time;
void printTime(const std::string& msg, long long iterations, double iterPerSec) {
std::stringstream ss;
ss << msg;
while (ss.tellp() < 30) {
ss << ' ';
}
ss << " iterations=" << iterat... | Print times in fixed columns. | Print times in fixed columns.
Makes it easier to compare.
| C | lgpl-2.1 | worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp,worldforge/atlas-cpp |
6c39b5e3015535d249699cf4c7dd9e3bfa9ed550 | check/tests/check_check_main.c | check/tests/check_check_main.c | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | #include <stdlib.h>
#include <stdio.h>
#include <check.h>
#include "check_check.h"
int main (void)
{
int n;
SRunner *sr;
fork_setup();
setup_fixture();
sr = srunner_create (make_master_suite());
srunner_add_suite(sr, make_list_suite());
srunner_add_suite(sr, make_msg_suite());
srunner_add_suite(sr, ma... | Use correct variable for number of tests | Use correct variable for number of tests
git-svn-id: caee63afe878fe2ec7dbba394a86c9654d9110ca@230 64e312b2-a51f-0410-8e61-82d0ca0eb02a
| C | lgpl-2.1 | dashaomai/check-code,dashaomai/check-code,svn2github/check,svn2github/check,svn2github/check,dashaomai/check-code,svn2github/check,dashaomai/check-code,svn2github/check |
a0b563f277f4fe56bc8af372777301d20c5a419b | src/main.h | src/main.h | #ifndef _MAIN_H_
#define _MAIN_H_
#define PROGRAM_MAJOR_VERSION 0
#define PROGRAM_MINOR_VERSION 1
#define PROGRAM_PATCH_VERSION 1
extern int quit;
#endif /* _MAIN_H_ */
| #ifndef _MAIN_H_
#define _MAIN_H_
#define PROGRAM_MAJOR_VERSION 0
#define PROGRAM_MINOR_VERSION 2
#define PROGRAM_PATCH_VERSION 0
extern int quit;
#endif /* _MAIN_H_ */
| Upgrade version number to 0.2.0 | Upgrade version number to 0.2.0
| C | mit | zear/shisen-seki,zear/shisen-seki |
0ac24673a4e719e6cb5e1adb2f72363d422b9f21 | JavaScriptCore/wtf/MathExtras.h | JavaScriptCore/wtf/MathExtras.h | /*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of c... | Add mathextras.h to wtf to give win32 roundf/lroundf support. | Add mathextras.h to wtf to give win32 roundf/lroundf support.
git-svn-id: bf5cd6ccde378db821296732a091cfbcf5285fbd@14506 bbb929c8-8fbe-4397-9dbb-9b2b20218538 | C | bsd-3-clause | Pluto-tv/blink-crosswalk,XiaosongWei/blink-crosswalk,crosswalk-project/blink-crosswalk-efl,hgl888/blink-crosswalk-efl,PeterWangIntel/blink-crosswalk,XiaosongWei/blink-crosswalk,smishenk/blink-crosswalk,ondra-novak/blink,nwjs/blink,smishenk/blink-crosswalk,Pluto-tv/blink-crosswalk,kurli/blink-crosswalk,modulexcite/blink... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.