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 |
|---|---|---|---|---|---|---|---|---|---|
bec95322a9361d3a0458e2ccae647dfb59821f0a | include/utilities/utilities.h | include/utilities/utilities.h | /** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES... | /** \file
*
* \brief Inclusion of all utility function headers
*
* \date Created: Jul 12, 2014
* \date Modified: $Date$
*
* \authors mauro <mauro@iis.ee.ethz.ch>
*
* \version $Revision$
*/
#ifndef LINALG_UTILITIES_UTILITIES_H_
#define LINALG_UTILITIES... | Rename buffer.h to buffer_helper.h, part II | Rename buffer.h to buffer_helper.h, part II
| C | bsd-3-clause | MauroCalderara/LinAlg,MauroCalderara/LinAlg,MauroCalderara/LinAlg |
b13325f74d96d7e0a24c6f62b0910d6739835d47 | src/plugins/crypto/compile_openssl.c | src/plugins/crypto/compile_openssl.c | /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
int main (void)
{
EVP_CIPHER_CTX * opensslSpecificType;
return 0;
}
| /**
* @file
*
* @brief tests if compilation works (include and build paths set correct, etc...)
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*
*/
#include <openssl/evp.h>
EVP_CIPHER_CTX * nothing (void)
{
return NULL;
}
int main (void)
{
nothing ();
return 0;
}
| Fix detection of lib if we use `-Werror` | OpenSSL: Fix detection of lib if we use `-Werror`
Before this update detecting OpenSSL would fail, if we treated warnings
as errors (`-Werror`). The cause of this problem was that compiling
`compile_openssl.cpp` produced a warning about an unused variable.
| C | bsd-3-clause | petermax2/libelektra,e1528532/libelektra,petermax2/libelektra,BernhardDenner/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,mpranj/libelektra,petermax2/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,petermax2... |
c102f62a41137d6a75500d46e272bc95a63cfae9 | src/kernel/time/time_manager.c | src/kernel/time/time_manager.c | /*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static int64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
... | /*
*
* SOS Source Code
* __________________
*
* [2009] - [2013] Samuel Steven Truscott
* All Rights Reserved.
*/
#include "time_manager.h"
#include "kernel/kernel_assert.h"
#include "time.h"
static uint64_t __time_system_time_ns;
static __clock_device_t * __time_system_clock;
void __time_initialise(void)
{
... | Fix the powerpc clock from the tbr. | Fix the powerpc clock from the tbr. | C | mit | sam-truscott/tinker-kernel,sam-truscott/tinker-kernel |
c74ad610ca9a3078295910bd9c3ee91a19cc773c | tests/regression/31-ikind-aware-ints/06-unsigned-negate.c | tests/regression/31-ikind-aware-ints/06-unsigned-negate.c | #include <assert.h>
#include <stdio.h>
int main(){
unsigned int x = 1;
unsigned int y = -x;
assert(y == 4294967295);
printf("y: %u\n", y);
return 0;
}
| Add testcase: retain precision when negating unsigned value | Add testcase: retain precision when negating unsigned value
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
6772c4ea857328134e20eb6164d64b9ba2e038fd | You-DataStore/internal/internal_transaction.h | You-DataStore/internal/internal_transaction.h | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
... | #pragma once
#ifndef YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#define YOU_DATASTORE_INTERNAL_INTERNAL_TRANSACTION_H_
#include <memory>
#include <boost/ptr_container/ptr_deque.hpp>
#include "operation.h"
namespace You {
namespace DataStore {
namespace UnitTests { class DataStoreApiTest; }
namespace Internal {
... | Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified | Add mergedOperationsQueue and mergeQueue to ensure correctness of file being modified
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
03a6bc7bedc52d6173436f789cc0329086447927 | include/swift/Syntax/TokenKinds.h | include/swift/Syntax/TokenKinds.h | //===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | //===--- TokenKinds.h - Token Kinds Interface -------------------*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | Prepare the header for stand-alone usage. | Prepare the header for stand-alone usage.
| C | apache-2.0 | roambotics/swift,rudkx/swift,ahoppen/swift,ahoppen/swift,JGiola/swift,atrick/swift,apple/swift,apple/swift,tkremenek/swift,benlangmuir/swift,roambotics/swift,tkremenek/swift,xwu/swift,rudkx/swift,atrick/swift,tkremenek/swift,JGiola/swift,xwu/swift,atrick/swift,glessard/swift,roambotics/swift,glessard/swift,hooman/swift... |
79162ce8caaf6d1f66666cdd52f677de812af47a | test/Preprocessor/macro_paste_bcpl_comment.c | test/Preprocessor/macro_paste_bcpl_comment.c | // RUN: clang-cc %s -Eonly 2>&1 | grep error
#define COMM1 / ## /
COMM1
| // RUN: clang-cc %s -Eonly -fms-extensions=0 2>&1 | grep error
#define COMM1 / ## /
COMM1
| Disable Microsoft extensions to fix failure on Windows. | Disable Microsoft extensions to fix failure on Windows.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@84893 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
c8e8ac42abb9225c3abfac036340548cfaaa0e92 | common/opthelpers.h | common/opthelpers.h | #ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | #ifndef OPTHELPERS_H
#define OPTHELPERS_H
#ifdef __has_builtin
#define HAS_BUILTIN __has_builtin
#else
#define HAS_BUILTIN(x) (0)
#endif
#ifdef __GNUC__
/* LIKELY optimizes the case where the condition is true. The condition is not
* required to be true, but it can result in more optimal code for the true
* path at... | Use false instead of 0 for a boolean | Use false instead of 0 for a boolean
| C | lgpl-2.1 | aaronmjacobs/openal-soft,aaronmjacobs/openal-soft |
a2af1d8bff1b3729048f95c8c266ef8f2fb4c861 | ps4/histogram_omp.c | ps4/histogram_omp.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bmp.h"
const int image_width = 512;
const int image_height = 512;
const int image_size = 512*512;
const int color_depth = 255;
int main(int argc, char** argv){
if(argc != 3){
printf("Useage: %s image n_threads\n", argv[0]);
exit... | Add paralellism with race conditions to omp | Add paralellism with race conditions to omp
| C | apache-2.0 | Raane/Parallel-Computing,Raane/Parallel-Computing |
3caf8297799b2b227501404925cf8f1389cf0065 | libc/include/time.h | libc/include/time.h | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | /******************************************************************************
* Copyright (c) 2004, 2008 IBM Corporation
* All rights reserved.
* This program and the accompanying materials
* are made available under the terms of the BSD License
* which accompanies this distribution, and is available at
* http:... | Remove unused struct tm elements | Remove unused struct tm elements
Better to error out than suddenly have places use uninitalized data.
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>
| C | apache-2.0 | stewart-ibm/skiboot,legoater/skiboot,csmart/skiboot,legoater/skiboot,apopple/skiboot,open-power/skiboot,legoater/skiboot,stewart-ibm/skiboot,qemu/skiboot,qemu/skiboot,apopple/skiboot,qemu/skiboot,ddstreet/skiboot,shenki/skiboot,shenki/skiboot,mikey/skiboot,qemu/skiboot,legoater/skiboot,open-power/skiboot,ddstreet/skibo... |
f89548fb28969bff4aa298013090037bb45484c5 | media/tx/audio-tx.h | media/tx/audio-tx.h | #ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */ | #ifndef __AUDIO_TX_H__
#define __AUDIO_TX_H__
#include <stdint.h>
int init_audio_tx(const char* outfile, int codec_id,
int sample_rate, int bit_rate, int payload_type);
int put_audio_samples_tx(int16_t* samples, int n_samples);
int finish_audio_tx();
#endif /* __AUDIO_TX_H__ */ | Add return type in definition of init_audio_tx function. | Add return type in definition of init_audio_tx function.
| C | lgpl-2.1 | Kurento/kc-media-native,Kurento/kc-media-native,shelsonjava/kc-media-native,shelsonjava/kc-media-native |
e9b465ccf6e9ef2294487ea43caa669e94661e97 | digest/DigestOOP.h | digest/DigestOOP.h | #pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str) { update(str.data(), str.le... | #pragma once
#include <memory>
#include <string>
#ifdef __cpp_lib_string_view
#include <string_view>
#endif
namespace oop
{
class Digest
{
public:
virtual ~Digest() {}
virtual void update(const void* data, int len) = 0;
#ifdef __cpp_lib_string_view
void update(std::string_view str)
{
update(str.data(), ... | Fix digest oop for C++17. | Fix digest oop for C++17.
| C | bsd-3-clause | chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes,chenshuo/recipes |
60ababaf9ca888c2e74b840ad69188d84883623b | quic/platform/api/quic_test.h | quic/platform/api/quic_test.h | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/qu... | // Copyright (c) 2017 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 QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#define QUICHE_QUIC_PLATFORM_API_QUIC_TEST_H_
#include "net/third_party/quiche/src/quic/platform/api/qu... | Fix one curly brace placement in test code | Fix one curly brace placement in test code
gfe-relnote: n/a, test-only
PiperOrigin-RevId: 303203726
Change-Id: I26a7ad68cc83ecd85fe59c5af5998b318302c9a7
| C | bsd-3-clause | google/quiche,google/quiche,google/quiche,google/quiche |
19c6935dad2d04738b1d4289ac2e2791cf7e2569 | rr_impl.c | rr_impl.c | /**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait_for_worker(sched_queue_t *queue) {
// TODO
}
| /**
* rr_impl.c
*
* Implementation of functionality specific to round-robin scheduling.
*/
#include "rr_impl.h"
void rr_wake_worker(thread_info_t *info) {
// TODO
}
void rr_wait(sched_queue_t *queue) {
// TODO
}
| Revert change to rr_wait name | Revert change to rr_wait name
| C | unlicense | nealian/cse325_project4 |
72db37d52802027c30b38181de09413d7ceb8f17 | Source/Objects/GTLBatchQuery.h | Source/Objects/GTLBatchQuery.h | /* Copyright (c) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /* Copyright (c) 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Fix comment on shouldSkipAuthorization property | Fix comment on shouldSkipAuthorization property | C | apache-2.0 | justinhouse/google-api-objectivec-client,nanthi1990/google-api-objectivec-client,CarlosTrejo/google-api-objectivec-client,JonasGessner/google-api-objectivec-client,creationst/google-api-objectivec-client,daffodilistic/google-api-objectivec-client,clody/google-api-objectivec-client,JonasGessner/google-api-objectivec-cli... |
3d69da22fd2a3aef7f34bdaddd379b8c8a57442a | include/cling/Interpreter/CIFactory.h | include/cling/Interpreter/CIFactory.h | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | //--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser General Public L... | Remove unneeded static member decls; mark c'tor, d'tor as deleted. | Remove unneeded static member decls; mark c'tor, d'tor as deleted.
| C | lgpl-2.1 | root-mirror/cling,karies/cling,perovic/cling,perovic/cling,marsupial/cling,root-mirror/cling,root-mirror/cling,root-mirror/cling,marsupial/cling,root-mirror/cling,marsupial/cling,marsupial/cling,karies/cling,perovic/cling,marsupial/cling,perovic/cling,marsupial/cling,karies/cling,karies/cling,perovic/cling,karies/cling... |
dbd6b3e85542d816e7d912a817fc430353c73068 | tests/regression/15-deadlock/19-fail_deadlock.c | tests/regression/15-deadlock/19-fail_deadlock.c | // PARAM: --set ana.activated[+] deadlock --enable sem.lock.fail
#include <pthread.h>
#include <stdio.h>
int g1, g2;
pthread_mutex_t mutex1 = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t mutex2 = PTHREAD_MUTEX_INITIALIZER;
void *t1(void *arg) {
pthread_mutex_lock(&mutex1);
pthread_mutex_lock(&mutex2); // DEADLOCK
... | Test mutexEvents based deadlock with failing locks | Test mutexEvents based deadlock with failing locks
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
c37054eec60c9424923ec895d7dc23d744cd0b53 | Expecta/Expecta.h | Expecta/Expecta.h | #import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatch... | #import <Foundation/Foundation.h>
//! Project version number for Expecta.
FOUNDATION_EXPORT double ExpectaVersionNumber;
//! Project version string for Expecta.
FOUNDATION_EXPORT const unsigned char ExpectaVersionString[];
#import <Expecta/ExpectaObject.h>
#import <Expecta/ExpectaSupport.h>
#import <Expecta/EXPMatch... | Add newline to the end of the umbrella header | Add newline to the end of the umbrella header
| C | mit | tonyarnold/expecta,Lightricks/expecta,modocache/expecta,modocache/expecta,suxinde2009/expecta,iosdev-republicofapps/expecta,tonyarnold/expecta,udemy/expecta,suxinde2009/expecta,PatrykKaczmarek/expecta,wessmith/expecta,modocache/expecta,iosdev-republicofapps/expecta,specta/expecta,Bogon/expecta,jmburges/expecta,jmoody/e... |
40b4170a0ccd05ae95589f55d989f0727f060367 | ios/template/GMPExample/AppDelegate.h | ios/template/GMPExample/AppDelegate.h | //
// Copyright (c) 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | //
// Copyright (c) 2015 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agre... | Fix order of property attributes | Fix order of property attributes
Change-Id: I7a313d25a6707bada03328b0799300f07a26ba3b
| C | apache-2.0 | martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services,martijndebruijn/google-services |
3cc1b3d340ecf3a2b742ce6d32fa4a47f457af0f | src/log.c | src/log.c |
#include <imageloader.h>
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
va_start(args, fo... |
#include <imageloader.h>
#include "log.h"
#include "context.h"
#include <stdio.h>
#include <stdarg.h>
void print_to_log(ImgloadContext ctx, ImgloadLogLevel level, const char* format, ...)
{
if (!ctx->log.handler)
{
return;
}
if (level < ctx->log.minLevel)
{
return;
}
char buffer[1024];
va_list args;
... | Include the header in the source file | Include the header in the source file
| C | mit | asarium/imageloader,asarium/imageloader,asarium/imageloader |
85f93b1bcff3ae1eb6b65bb932a982f29eb456cf | problem_007.c | problem_007.c | #include <stdio.h>
#include "euler.h"
#define PROBLEM 7
#define ANSWER 104743
int
is_prime(int num)
{
if(num < 2) {
return 0;
} else if(num == 2) {
return 1;
}
for(int y = 2; y < num; y++) {
if(num % y == 0) {
return 0;
}
}
return 1;
}
int
main(in... | Add solution for problem 7 | Add solution for problem 7
| C | bsd-2-clause | skreuzer/euler | |
d952cdee083b9b4a5af4f6d58cbda03add196ceb | src/net/instaweb/util/public/re2.h | src/net/instaweb/util/public/re2.h | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | /*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | Make this a proper forwarding header rather than a duplication what's under pagespeed/util/ | Make this a proper forwarding header rather than
a duplication what's under pagespeed/util/
| C | apache-2.0 | patricmutwiri/mod_pagespeed,pagespeed/mod_pagespeed,patricmutwiri/mod_pagespeed,webhost/mod_pagespeed,patricmutwiri/mod_pagespeed,ajayanandgit/mod_pagespeed,webscale-networks/mod_pagespeed,patricmutwiri/mod_pagespeed,hashashin/src,VersoBit/mod_pagespeed,patricmutwiri/mod_pagespeed,webscale-networks/mod_pagespeed,webhos... |
2c23625aeeb91c496f68abd812eab53b6d87bae5 | arch/loongson/include/vmparam.h | arch/loongson/include/vmparam.h | /* $OpenBSD: vmparam.h,v 1.3 2011/03/23 16:54:35 pirofti Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 2 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */... | /* $OpenBSD: vmparam.h,v 1.4 2014/03/27 21:58:13 miod Exp $ */
/* public domain */
#ifndef _MACHINE_VMPARAM_H_
#define _MACHINE_VMPARAM_H_
#define VM_PHYSSEG_MAX 3 /* Max number of physical memory segments */
#define VM_PHYSSEG_STRAT VM_PSTRAT_BIGFIRST
#include <mips64/vmparam.h>
#endif /* _MACHINE_VMPARAM_H_ */
| Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory (such as 2E and 3A systems). | Increase VM_PHYSSEG_MAX, necessary for systems with non-contiguous memory
(such as 2E and 3A systems).
| C | isc | orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars,orumin/openbsd-efivars |
b191b25f364aa679173756114884231b4314eb24 | tests/file_utils_tests.c | tests/file_utils_tests.c | #include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
mu_assert(DArray_count(lines) == 3, "Wrong number of lines.");
mu_assert... | #include "minunit.h"
#include <terror/file_utils.h>
#include <assert.h>
char *test_getlines()
{
bstring str = bfromcstr("one\ntwo\nthree\nfour\nfive\n");
struct bstrList *file = bsplit(str, '\n');
DArray *lines = getlines(file, 2, 4);
bstring two = bfromcstr("two");
bstring three = bfromcstr("three");
bs... | Make file utils tests valgrind-kosher | Make file utils tests valgrind-kosher
| C | mit | txus/terrorvm,txus/terrorvm,txus/terrorvm,txus/terrorvm |
8a27a0ecdcdb99fbeedd793be114a9f99a84491d | tests/regression/36-apron/97-no-loc.c | tests/regression/36-apron/97-no-loc.c | // SKIP PARAM: --set ana.activated[+] apron --set ana.path_sens[+] threadflag --set ana.activated[+] threadJoins --sets ana.apron.privatization mutex-meet-tid --disable ana.thread.include-loc
#include <pthread.h>
#include <assert.h>
int g = 10;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_benign(void *arg) ... | Add example that gets more precise when the location is not part of the TID | Add example that gets more precise when the location is not part of the TID
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
f992b8ba5b714f65f607237ff8b4c77dd4856206 | malaria_instruments.h | malaria_instruments.h | #include <MozziGuts.h>
#include <Oscil.h>
#include <ADSR.h>
#include <mozzi_midi.h>
#include <tables/sin2048_int8.h>
#define applyGain(v, g) ((v * g) >> 8)
class MalariaInstrument {
public:
MalariaInstrument() {};
virtual void noteOn(byte note, byte velocity);
virtual void noteOff(byte note, byte velocity);... | Add header for standard instruments. | Add header for standard instruments.
| C | mit | anarkiwi/Malaria | |
4d2173704ae6884eaab3e9f702fb910bfb84c30d | base/scoped_handle.h | base/scoped_handle.h | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base/scoped_handle_win.h... | // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef BASE_SCOPED_HANDLE_H_
#define BASE_SCOPED_HANDLE_H_
#include <stdio.h>
#include "base/basictypes.h"
#if defined(OS_WIN)
#include "base... | Add stdio to this file becasue we use FILE. | Add stdio to this file becasue we use FILE.
It starts failing with FILE, identifier not found, when
you remove the include for logging.h, which is included
in scoped_handle_win.h
Review URL: http://codereview.chromium.org/16461
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@7441 0039d316-1c4b-4281-b951-d872f20... | C | bsd-3-clause | adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,adobe/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,adobe/chromium,Crystal... |
118fccc561b32dd8d7396786402b9035bd667b32 | libpolyml/basicio.h | libpolyml/basicio.h | /*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
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)... | /*
Title: Basic IO.
Copyright (c) 2000 David C. J. Matthews
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)... | Remove process_may_block since it's no longer used except in xwindows.cpp. | Remove process_may_block since it's no longer used except in xwindows.cpp.
git-svn-id: 98787b36aaefbae4b30fa755be920954cd25e1e4@548 ae7d391e-3f74-4a2b-a0db-a8776840fd2a
| C | lgpl-2.1 | mn200/polyml,mn200/polyml,dcjm/polyml,dcjm/polyml,polyml/polyml,polyml/polyml,dcjm/polyml,mn200/polyml,polyml/polyml,dcjm/polyml,polyml/polyml,mn200/polyml |
0090ec7cb0d38cc29bf18b31c31a142e8f199f33 | include/effects/SkStippleMaskFilter.h | include/effects/SkStippleMaskFilter.h | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | /*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkStippleMaskFilter_DEFINED
#define SkStippleMaskFilter_DEFINED
#include "SkMaskFilter.h"
/**
* Simple MaskFilter that creates a screen door stipple pattern
*/
cla... | Fix for compiler error in r4154 | Fix for compiler error in r4154
git-svn-id: e8541e15acce502a64c929015570ad1648e548cd@4155 2bbb7eff-a529-9590-31e7-b0007b416f81
| C | bsd-3-clause | geekboxzone/mmallow_external_skia,geekboxzone/lollipop_external_skia,Igalia/skia,CyanogenMod/android_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,android-ia/platform_externa... |
349ac725570cd5913fcc967e7f9abdc3a81ee6e9 | priv/qcmainthreadrunner.h | priv/qcmainthreadrunner.h | #ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QVariant>
#include <QEVent>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
st... | #ifndef QCMAINTHREADRUNNER_H
#define QCMAINTHREADRUNNER_H
#include <QObject>
#include <QCoreApplication>
class QCMainThreadRunner
{
public:
/// Run a function on main thread. If it is already in main thread, it will be executed in next tick.
template <typename F>
static void start(F func) {
QObj... | Fix build issue for Linux | Fix build issue for Linux
| C | apache-2.0 | benlau/quickcross,benlau/quickcross,benlau/quickcross |
ad7d535ac60d0d3a2e43c72a5c9c41efd62fedb1 | tests/test_collisions.h | tests/test_collisions.h | #ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
};
class CollisionGeomTest : public... | #ifndef TEST_COLLISIONS_H
#define TEST_COLLISIONS_H
#include <kaztest/kaztest.h>
#include "spindash/spindash.h"
#include "spindash/collision/collide.h"
#include "spindash/collision/ray_box.h"
#include "spindash/collision/box.h"
const SDVec2 box_points[] = {
{ -5, -5 },
{ 5, -5 },
{ 5, 0 },
{ -5, 0 }
... | Add a missing header from one of the tests | Add a missing header from one of the tests
| C | bsd-2-clause | Kazade/Spindash |
235b1753f48c8a22cb79e3115b637f179c3e1e8b | src/initiation/transport/sipauthentication.h | src/initiation/transport/sipauthentication.h | #pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credent... | #pragma once
#include "initiation/sipmessageprocessor.h"
#include "initiation/siptypes.h"
/* This class handles the authentication for this connection
* should we receive a challenge */
class SIPAuthentication : public SIPMessageProcessor
{
Q_OBJECT
public:
SIPAuthentication();
public slots:
// add credent... | Remove TODO. Tested common credentials, didn't work. | cosmetic(Transport): Remove TODO. Tested common credentials, didn't work.
| C | isc | ultravideo/kvazzup,ultravideo/kvazzup |
553faa1fcfc6a119959a66371ea355899dd8efd8 | src/compat/deinompi.h | src/compat/deinompi.h | #ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
/* ---------------------------------------------------------------- */
static int PyMPI_DEINOMPI_argc = 0;
static char **PyMPI_DEINOMPI_argv = 0;
static char *PyMPI_DEINOMPI_args[2] = {0, 0};
static void PyMPI_DEINOMPI_FixArgs(int **argc, char... | #ifndef PyMPI_COMPAT_DEINOMPI_H
#define PyMPI_COMPAT_DEINOMPI_H
#endif /* !PyMPI_COMPAT_DEINOMPI_H */
| Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine | Remove hackery for DeinoMPI, release 1.1.0 seems to work just fine | C | bsd-2-clause | pressel/mpi4py,mpi4py/mpi4py,pressel/mpi4py,mpi4py/mpi4py,mpi4py/mpi4py,pressel/mpi4py,pressel/mpi4py |
e1d06bc471406e8e4e63cd9cba33c50cce7db8c7 | src/rocket/rocket.c | src/rocket/rocket.c | /*
* ASXSoft Nuke - Operating System
* Copyright (C) 2009 Patrick Pokatilo
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your op... | Set up GDT and load 32-Bit Segments | Rocket: Set up GDT and load 32-Bit Segments
Signed-off-by: Patrick Pokatilo <cdeca2a4be8a4e00f97216f8984b997a40d1b424@asxsoft.de>
| C | agpl-3.0 | SHyx0rmZ/kernel4,SHyx0rmZ/kernel4,SHyx0rmZ/kernel4 | |
778fbd48981675b0a10383efe169e397153e81d6 | tests/regression/01-cpa/72-library-function-pointer.c | tests/regression/01-cpa/72-library-function-pointer.c | #include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,int);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library... | #include <fcntl.h>
#include <unistd.h>
typedef void (*fnct_ptr)(void);
typedef int (*open_t)(const char*,int,...);
typedef int (*ftruncate_t)(int,off_t);
// Goblint used to crash on this example because the number of supplied arguments for myopen is bigger than
// than the expected number of arguments for the library... | Add WARN annotations and explanations to test, expand it with one case. | Add WARN annotations and explanations to test, expand it with one case.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
92a488818e157ed14631b9b0467e102556b64242 | src/Console.h | src/Console.h | #ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
void tick() {
clockCounter++;
if (clockCounter == interval... | #ifndef CONSOLE_H
#define CONSOLE_H
#include <Cart.h>
#include <Controller.h>
#include <CPU.h>
#include <PPU.h>
#include <APU.h>
class Divider {
public:
Divider(int interval = 1) {
setInterval(interval);
}
void setInterval(int interval) {
this->interval = interval;
clockCounter = interval - 1;
}
... | Add divider constructor with interval default argument | Add divider constructor with interval default argument
| C | mit | scottjcrouch/ScootNES,scottjcrouch/ScootNES,scottjcrouch/ScootNES |
76086d7eeb3e13f384c6b9bf84d3c30a3de246f9 | src/utils.h | src/utils.h | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#else
#include <sys/time.h>
#endif
int hex2str... | /**
* @file utils.h
* @brief Storj utilities.
*
* Helper utilities
*/
#ifndef STORJ_UTILS_H
#define STORJ_UTILS_H
#include <assert.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#ifdef _WIN32
#include <windows.h>
#include <time.h>
#else
#include <sys/time.h>
#... | Fix implicit declaration of function ‘time’ | Fix implicit declaration of function ‘time’
| C | lgpl-2.1 | braydonf/libstorj,Storj/libstorj-c,aleitner/libstorj-c,braydonf/libstorj-c,aleitner/libstorj-c,Storj/libstorj-c,braydonf/libstorj-c,braydonf/libstorj |
bfff95e5e5b548a976340ca405991c61662c104f | src/bitwise.h | src/bitwise.h | #pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return (high << 8) + low;
}
inline bool check_bit(const u8 value, const int bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const int bit) {
return value | (1 ... | #pragma once
#include "definitions.h"
#include "util/log.h"
inline u16 compose_bytes(const u8 high, const u8 low) {
return static_cast<u16>((high << 8) + low);
}
inline bool check_bit(const u8 value, const u8 bit) {
return (value & (1 << bit)) != 0;
}
inline u8 set_bit(const u8 value, const u8 bit) {
au... | Make conversions between integer sizes explicit | Make conversions between integer sizes explicit
| C | bsd-3-clause | jgilchrist/emulator,jgilchrist/emulator,jgilchrist/emulator |
cf4ff469b193f6972cad1b6821ef99d51091e05a | test/Driver/hello.c | test/Driver/hello.c | // RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32
#include <std... | // RUN: %clang -ccc-echo -o %t %s 2> %t.log
// Make sure we used clang.
// RUN: grep 'clang\(-[0-9.]\+\)\?" -cc1 .*hello.c' %t.log
// RUN: %t > %t.out
// RUN: grep "I'm a little driver, short and stout." %t.out
// FIXME: We don't have a usable assembler on Windows, so we can't build real
// apps yet.
// XFAIL: win32... | Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>. | Fix this test case for CMake builds after r126502, which sneakily changed the actual executable name to clang-<version>.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@126560 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,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
452bc34d386c7158c042e2059b6a020ddd4a7e7f | include/kiste/kiste.h | include/kiste/kiste.h | #ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
namespace kiste
{
struct terminal_t
{
};
constexpr auto terminal = terminal_t{};
struct raw
{
std::ostream& _os;
template <typename T>
auto operator()(T&& t) const -> void
{
... | #ifndef KISS_TEMPLATES_KISTE_H
#define KISS_TEMPLATES_KISTE_H
#include <kiste/terminal.h>
#include <kiste/raw.h>
#endif
| Remove types left over from header split | Remove types left over from header split | C | bsd-2-clause | rbock/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates,AndiDog/kiss-templates,AndiDog/kiss-templates,rbock/kiss-templates |
21b8bddea55ff726108990263ee30072fcaa9d19 | include/llvm/CodeGen/MachineFunctionAnalysis.h | include/llvm/CodeGen/MachineFunctionAnalysis.h | //===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- MachineFunctionAnalysis.h - Owner of MachineFunctions ----*-C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h. | Revert 88957. This file uses CodeGenOpt, which is defined in TargetMachine.h.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@88959 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,apple/swift-llvm,apple/swi... |
272fd3b28f5ebbf20ccf39c511744cb682056434 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k0"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2013 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.04.00-k1"
| Update driver version to 5.04.00-k1 | [SCSI] qla4xxx: Update driver version to 5.04.00-k1
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: James Bottomley <1acebbdca565c7b6b638bdc23b58b5610d1a56b8@Parallels.com>
| C | mit | KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs |
1f0d489fdca7b9cd511ce4e4060389a6e4b41e43 | include/problems/0001-0050/Problem15.h | include/problems/0001-0050/Problem15.h | //===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | //===-- problems/Problem15.h ------------------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief P... | Remove extraneous method in Problem 15 | Remove extraneous method in Problem 15
| C | mit | wtmitchell/challenge_problems,wtmitchell/challenge_problems,wtmitchell/challenge_problems |
bcb11829bab091c0e2c8ea4de42cc03aa5359f0c | 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... | Add name method to custom tools | QmlDesigner.FormEditor: Add name method to custom tools
Change-Id: Icabf454fc49444a5a88c1f5eb84847967f09078e
Reviewed-by: Thomas Hartmann <588ee739c05aab7547907becfd1420d2b7316069@digia.com>
| C | lgpl-2.1 | Distrotech/qtcreator,danimo/qt-creator,darksylinc/qt-creator,duythanhphan/qt-creator,colede/qtcreator,amyvmiwei/qt-creator,Distrotech/qtcreator,malikcjm/qtcreator,darksylinc/qt-creator,xianian/qt-creator,omniacreator/qtcreator,xianian/qt-creator,martyone/sailfish-qtcreator,danimo/qt-creator,AltarBeastiful/qt-creator,om... |
7683806ea3a16e14e8b7c0c9878f5211b4c8baa5 | lib/CodeGen/Spiller.h | lib/CodeGen/Spiller.h | //===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- llvm/CodeGen/Spiller.h - Spiller -*- C++ -*------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Fix to compile on VS2008. | Fix to compile on VS2008.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@72112 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,dslab-epfl/asap,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,... |
0469cb5ca56892a1678361ff0856d174f09a7a93 | numpy/core/include/numpy/npy_endian.h | numpy/core/include/numpy/npy_endian.h | #ifndef _NPY_ENDIAN_H_
#define _NPY_ENDIAN_H_
/* NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in
* endian.h */
#ifdef NPY_HAVE_ENDIAN_H
/* Use endian.h if available */
#include <endian.h>
#define NPY_BYTE_ODER __BYTE_ORDER
#if (__BYTE_ORDER == __LITTLE_ENDIAN)
... | Add a (public) header to set cpu endianness when numpy headers are included instead of setting them at build time. | Add a (public) header to set cpu endianness when numpy headers are included instead of setting them at build time.
| C | bsd-3-clause | endolith/numpy,madphysicist/numpy,brandon-rhodes/numpy,pelson/numpy,ViralLeadership/numpy,GaZ3ll3/numpy,ddasilva/numpy,rmcgibbo/numpy,jorisvandenbossche/numpy,simongibbons/numpy,ajdawson/numpy,pdebuyl/numpy,rgommers/numpy,AustereCuriosity/numpy,ogrisel/numpy,moreati/numpy,endolith/numpy,MSeifert04/numpy,has2k1/numpy,ja... | |
24f4d30135007cb729223094e0855c65cf7025f5 | include/config/SkUserConfigManual.h | include/config/SkUserConfigManual.h | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | /*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkUserConfigManual_DEFINED
#define SkUserConfigManual_DEFINED
#define GR_TEST_UTILS 1
#define SK_BUILD_FOR_ANDROID_FRAMEWORK
#define SK_DEFAULT_FONT_CACHE_LIMIT ... | Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec | Remove SK_LEGACY_HEIF_API to enable animation in SkHeifCodec
bug: 78868457
bug: 120414514
test: local test with OpenGL Rendrerer Tests animation
demo and heifs files
Change-Id: I09a7667a57f545927dbe9ac24c1a6b405ff0006d
| C | bsd-3-clause | aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-mirror/platform_external_skia,aosp-... |
22da76be1ee64120f69ed35d6f21c85c31df08b6 | sky/shell/android/platform_view_android.h | sky/shell/android/platform_view_android.h | // Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namesp... | // Copyright 2015 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 SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#define SKY_SHELL_PLATFORM_VIEW_ANDROID_H_
#include "sky/shell/platform_view.h"
struct ANativeWindow;
namesp... | Stop SkyShell from crashing on startup | Stop SkyShell from crashing on startup
R=chinmaygarde@google.com
Review URL: https://codereview.chromium.org/1178773002.
| C | bsd-3-clause | afandria/mojo,chinmaygarde/mojo,jianglu/mojo,afandria/mojo,jianglu/mojo,chinmaygarde/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,jianglu/mojo,afandria/mojo,afandria/mojo,chinmaygarde/mojo,jianglu/mojo,chinmaygarde/mojo,afandria/mojo,jianglu/mojo,chinm... |
ab7304d74bef24d2b9eaaa30bd462ecdbd946428 | lib/vpsc/solve_VPSC.h | lib/vpsc/solve_VPSC.h | /**
* \brief Solve an instance of the "Variable Placement with Separation
* Constraints" problem.
*
* Authors:
* Tim Dwyer <tgdwyer@gmail.com>
*
* Copyright (C) 2005 Authors
*
* This version is released under the CPL (Common Public License) with
* the Graphviz distribution.
* A version is also available u... | Add the vpsc library for IPSEPCOLA features | Add the vpsc library for IPSEPCOLA features
| C | epl-1.0 | pixelglow/graphviz,pixelglow/graphviz,MjAbuz/graphviz,ellson/graphviz,tkelman/graphviz,tkelman/graphviz,ellson/graphviz,jho1965us/graphviz,MjAbuz/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,kbrock/graphviz,tkelman/graphviz,pixelglow/graphviz,tkelman/graphviz,pixelglow/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,k... | |
e850f2a6f16480dd37ac1c1b9ac4285bcd9fff7c | ext/osl/rbosl_move.h | ext/osl/rbosl_move.h | #include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
| #ifndef RBOSL_MOVE_H
#define RBOSL_MOVE_H
#include "ruby.h"
#include <osl/move.h>
extern VALUE cMove;
using namespace osl;
void rb_move_free(Move* ptr);
static VALUE rb_move_s_new(VALUE self);
void Init_move(void);
#endif /* RBOSL_MOVE_H */
| Add a missing include guard | Add a missing include guard
| C | mit | myokoym/ruby-osl,myokoym/ruby-osl,myokoym/ruby-osl |
fc94e16df9496ee6a8d12ed8476a545150526480 | src/condor_includes/condor_fix_unistd.h | src/condor_includes/condor_fix_unistd.h | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
*/
#if defined(ULTRIX43)
#if defined(__cplusplus)
extern "C" {
#endif
#if defined(__STDC__) || defined(__cplusplus)
... | #ifndef FIX_UNISTD_H
#define FIX_UNISTD_H
#include <unistd.h>
/*
For some reason the g++ include files on Ultrix 4.3 fail to provide
these prototypes, even though the Ultrix 4.2 versions did...
Once again, OSF1 also chokes, unless _AES_SOURCE(?) is defined JCP
*/
#if defined(ULTRIX43) || defined(OSF1)
#if def... | Add OSF/1 to a pre-existing conditional compilation switch. | Add OSF/1 to a pre-existing conditional compilation switch.
| C | apache-2.0 | htcondor/htcondor,htcondor/htcondor,neurodebian/htcondor,zhangzhehust/htcondor,clalancette/condor-dcloud,htcondor/htcondor,mambelli/osg-bosco-marco,bbockelm/condor-network-accounting,mambelli/osg-bosco-marco,clalancette/condor-dcloud,mambelli/osg-bosco-marco,neurodebian/htcondor,djw8605/condor,mambelli/osg-bosco-marco,... |
dd5b849ed810b53946e927ed419082c1fa3d516c | tests/regression/34-congruence/02-constants.c | tests/regression/34-congruence/02-constants.c | // PARAM: --enable ana.int.congruence --disable ana.int.def_exc
// This test ensures that operations on constant congr. classes (i.e. classes of the form {k} : arbitrary integer k) yield concrete vals
int main() {
// basic arithmetic operators
int a = 1;
int b = 2;
int c = -1;
int d = -2;
asse... | Add constant test for congruence domain | Add constant test for congruence domain
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
063b55a1ac04addc0989efb15d41d2232e5353da | OrbitGl/GraphTrack.h | OrbitGl/GraphTrack.h | // Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class Gra... | // Copyright (c) 2020 The Orbit 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 ORBIT_GL_GRAPH_TRACK_H
#define ORBIT_GL_GRAPH_TRACK_H
#include <limits>
#include "ScopeTimer.h"
#include "Track.h"
class TimeGraph;
class Gra... | Use numeric_limits<double>::lowest instead of numeric_limits<double>::min | Use numeric_limits<double>::lowest instead of numeric_limits<double>::min
| C | bsd-2-clause | google/orbit,google/orbit,google/orbit,google/orbit |
af9dfccab1d126811fe6cab3f141a65b41884c6d | ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h | ports/raspberrypi/boards/qtpy_rp2040/mpconfigboard.h | #define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SP... | #define MICROPY_HW_BOARD_NAME "Adafruit QTPy RP2040"
#define MICROPY_HW_MCU_NAME "rp2040"
#define MICROPY_HW_NEOPIXEL (&pin_GPIO12)
#define DEFAULT_I2C_BUS_SCL (&pin_GPIO25)
#define DEFAULT_I2C_BUS_SDA (&pin_GPIO24)
#define DEFAULT_SPI_BUS_SCK (&pin_GPIO6)
#define DEFAULT_SPI_BUS_MOSI (&pin_GPIO3)
#define DEFAULT_SP... | Update QT Py flash size | Update QT Py flash size | C | mit | adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython,adafruit/circuitpython |
0bd7dc36ef978a11bfe9a4c4d2a19f53e933a7c4 | src/linux/epoll/peer_testing.h | src/linux/epoll/peer_testing.h | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusplus
}
#endif
#define ... | #ifndef CJET_PEER_TESTING_H
#define CJET_PEER_TESTING_H
#ifdef TESTING
#include <sys/uio.h>
#ifdef __cplusplus
extern "C" {
#endif
int fake_read(int fd, void *buf, size_t count);
int fake_send(int fd, void *buf, size_t count, int flags);
int fake_writev(int fd, const struct iovec *iov, int iovcnt);
#ifdef __cplusp... | Add include to provide type struct iovec. | Add include to provide type struct iovec.
| C | mit | gatzka/cjet,gatzka/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,gatzka/cjet,mloy/cjet,mloy/cjet,mloy/cjet,gatzka/cjet |
82c12a3cec5c2351c2a114ee62f1d61dd57f4253 | src/openboardview/imgui_impl_sdl_gles2.h | src/openboardview/imgui_impl_sdl_gles2.h | // ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// h... | // ImGui SDL2 binding with OpenGL ES 2
// You can copy and use unmodified imgui_impl_* files in your project.
// If you use this binding you'll need to call 4 functions: ImGui_ImplXXXX_Init(), ImGui_ImplXXXX_NewFrame(), ImGui::Render() and
// ImGui_ImplXXXX_Shutdown().
// See main.cpp for an example of using this.
// h... | Fix imgui include path in GLES renderer | Fix imgui include path in GLES renderer
| C | mit | chloridite/OpenBoardView,chloridite/OpenBoardView |
bd2ff3914c51693544eecbc477b505c7366d3cb3 | Source/Regex.h | Source/Regex.h | // Copyright © 2015 Outware Mobile. All rights reserved.
#import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
| #import <Foundation/Foundation.h>
FOUNDATION_EXPORT double RegexVersionNumber;
FOUNDATION_EXPORT const unsigned char RegexVersionString[];
| Remove an invalid copyright notice | Remove an invalid copyright notice
| C | mit | sharplet/Regex,sclukey/Regex,sclukey/Regex,sharplet/Regex,sharplet/Regex |
9136fc058781cf31b7b045765be1202681eb6a0d | src/asynchronous_loader/file_loader.h | src/asynchronous_loader/file_loader.h | // 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... | // 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... | Update Resource with latest changes to FPLBase. | Update Resource with latest changes to FPLBase.
AsyncAsset had some changes to virtual functions, so Resource,
which inherits from it, needs to be updated.
Tested on Linux.
Change-Id: Ic12854c7d24a04f0049673fa1df6e96a6d68aa15
| C | apache-2.0 | google/pindrop,google/pindrop,google/pindrop |
2cb8f29ecd8d8864a2110ef72fed242c107ef1a5 | test/CodeGen/stack-size-section.c | test/CodeGen/stack-size-section.c | // RUN: %clang_cc1 -triple x86_64-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
// CHECK-ABSENT-NOT: section .stack_sizes
// RUN: %clang_cc1 -triple x86_64-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
// CHECK-PRESENT: section .stack_sizes
int foo() { return 42; ... | // RUN: %clang_cc1 -triple x86_64-unknown-unknown %s -S -o - | FileCheck %s --check-prefix=CHECK-ABSENT
// CHECK-ABSENT-NOT: section .stack_sizes
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fstack-size-section %s -S -o - | FileCheck %s --check-prefix=CHECK-PRESENT
// CHECK-PRESENT: section .stack_sizes
int foo... | Fix test added in r321992 failing on some buildbots. | Fix test added in r321992 failing on some buildbots.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@321995 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/cl... |
f3b0fb14d7f8e28aeb4d96e587689fe7a8394c69 | tensorflow/core/platform/stringpiece.h | tensorflow/core/platform/stringpiece.h | /* Copyright 2015 The TensorFlow 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 applicable law or a... | /* Copyright 2015 The TensorFlow 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 applicable law or a... | Add IWYU tags to headers TF is re-exporting. | Add IWYU tags to headers TF is re-exporting.
PiperOrigin-RevId: 291557362
Change-Id: If78efc5e990f203d5a36777e9531207c573c651a
| C | apache-2.0 | tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,aldian/tensorflow,gunan/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,gunan/tensorflow,k... |
4263808b7481a04033d56c05a24b2a26635e45c8 | include/utils/allocator.h | include/utils/allocator.h | #ifndef _ALLOCATOR_H
#define _ALLOCATOR_H
#include <stddef.h>
typedef struct allocator_t {
void (*cfree)(void *ptr);
} allocator;
#define omf_calloc(nmemb, size) \
omf_calloc_real((nmemb), (size), __FILE__, __LINE__)
void *omf_calloc_real(size_t nmemb, size_t size, const char *file, int line);
#define omf_... | #ifndef _ALLOCATOR_H
#define _ALLOCATOR_H
#include <stddef.h>
typedef struct allocator_t {
void (*cfree)(void *ptr);
} allocator;
#define omf_calloc(nmemb, size) \
omf_calloc_real((nmemb), (size), __FILE__, __LINE__)
void *omf_calloc_real(size_t nmemb, size_t size, const char *file, int line);
#define omf_... | Add omf_free() to NULL the argument after free() | utils: Add omf_free() to NULL the argument after free()
| C | mit | omf2097/openomf,omf2097/openomf,omf2097/openomf |
8bbaaabf9f3db24f387ba1f7bf7374c6ea73f8d3 | libevmjit/Utils.h | libevmjit/Utils.h | #pragma once
#include <iostream>
// The same as assert, but expression is always evaluated and result returned
#define CHECK(expr) (assert(expr), expr)
#if !defined(NDEBUG) // Debug
namespace dev
{
namespace evmjit
{
std::ostream& getLogStream(char const* _channel);
}
}
#define DLOG(CHANNEL) ::dev::evmjit::getLo... | #pragma once
#include <iostream>
// The same as assert, but expression is always evaluated and result returned
#define CHECK(expr) (assert(expr), expr)
#if !defined(NDEBUG) // Debug
namespace dev
{
namespace evmjit
{
std::ostream& getLogStream(char const* _channel);
}
}
#define DLOG(CHANNEL) ::dev::evmjit::getLo... | Reimplement no-op version of DLOG to avoid C++ compiler warning | Reimplement no-op version of DLOG to avoid C++ compiler warning
| C | mit | ethcore/evmjit,debris/evmjit,debris/evmjit,ethcore/evmjit |
e00a1a4ce49ad353e25b1ff9eeee2dafd854ddfc | src/python/helpers/python_wrap_const_shared_ptr.h | src/python/helpers/python_wrap_const_shared_ptr.h | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_CONST_SHARED_PTR_H
#define VISTK_PYTHON_HELPERS_PYTH... | /*ckwg +5
* Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#ifndef VISTK_PYTHON_HELPERS_PYTHON_WRAP_CONST_SHARED_PTR_H
#define VISTK_PYTHON_HELPERS_PYTH... | Bring other get_pointer instances into the scope | Bring other get_pointer instances into the scope
| C | bsd-3-clause | Kitware/sprokit,linus-sherrill/sprokit,mathstuf/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,linus-sherrill/sprokit,Kitware/sprokit,mathstuf/sprokit,mathstuf/sprokit,mathstuf/sprokit |
440744911043f1b09cd3f13172cf023c7e150dac | src/classes/Window.h | src/classes/Window.h | #ifndef WINDOW_H
#define WINDOW_H
#include <ncurses.h>
#include <array>
#include "../game.h"
// Used to define a datatype for calls to wborder
struct Border {
chtype ls, rs, ts, bs;
chtype tl, tr, bl, br;
};
class Window {
public:
Window(rect dim); // ctor
~Window(); // dtor
... | #ifndef WINDOW_H
#define WINDOW_H
#include <ncurses.h>
#include <string>
#include <array>
#include "../game.h"
// Used to define a datatype for calls to wborder
struct Border {
chtype ls, rs, ts, bs;
chtype tl, tr, bl, br;
};
class Window {
public:
Window(rect dim); // ctor
~Window(); ... | Fix missing string in namespace std compiler error | Fix missing string in namespace std compiler error
On some systems
| C | mit | jm-janzen/termq,jm-janzen/termq,jm-janzen/termq |
98313137592c16298147327daefe9a4fe8d9ce8d | tests/regression/01-cpa/47-posneg-signed-overflow.c | tests/regression/01-cpa/47-posneg-signed-overflow.c | #include<stdio.h>
#include<assert.h>
int main() {
int i,k,j;
if (k == 5) {
assert(k == 5);
return 0;
}
assert(k != 5);
// Signed overflows might occur in some of the following operations (e.g. the first assignment k could be MAX_INT).
// Signed overflows are undefined behavior, so by default we g... | Add test that by default signed overflow results in top | Add test that by default signed overflow results in top
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
bbd0db9d8b3329cacffc55cdca9a5e63911ed510 | pyroot/inc/LinkDef.h | pyroot/inc/LinkDef.h | #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ function TPython::Exec;
#pragma link C++ function TPython::Eval;
#pragma link C++ function TPython::Bind;
#pragma link C++ function TPython::Prompt;
#endif
| #ifdef __CINT__
#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;
#pragma link C++ class TPython;
#endif
| Declare the class TPython instead of the static functions. With this change, make map will add TPython in system.rootmap and it is possible to do directly root > TPython::Prompt() | Declare the class TPython instead of the static functions.
With this change, make map will add TPython in system.rootmap
and it is possible to do directly
root > TPython::Prompt()
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@9107 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | Dr15Jones/root,vukasinmilosevic/root,gganis/root,simonpf/root,mkret2/root,pspe/root,alexschlueter/cern-root,veprbl/root,Y--/root,vukasinmilosevic/root,gbitzes/root,beniz/root,zzxuanyuan/root-compressor-dummy,davidlt/root,simonpf/root,sirinath/root,nilqed/root,root-mirror/root,sbinet/cxx-root,jrtomps/root,arch1tect0r/ro... |
b28c037d64ac7cee7e2c7d9d33b128d62aa4df8a | src/gallium/drivers/r300/r300_public.h | src/gallium/drivers/r300/r300_public.h |
#ifndef R300_PUBLIC_H
#define R300_PUBLIC_H
struct radeon_winsys;
struct pipe_screen* r300_screen_create(struct radeon_winsys *rws);
#endif
|
#ifndef R300_PUBLIC_H
#define R300_PUBLIC_H
#ifdef __cplusplus
extern "C" {
#endif
struct radeon_winsys;
struct pipe_screen* r300_screen_create(struct radeon_winsys *rws);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
| Fix build, invalid extern "C" around header inclusion. | r300g: Fix build, invalid extern "C" around header inclusion.
A previous patch to fix header inclusion within extern "C" neglected
to fix the occurences of this pattern in r300 files.
When the helper to detect this issue was pushed to master, it broke
the build for the r300 driver. This patch fixes the r300 build.
... | C | mit | metora/MesaGLSLCompiler,metora/MesaGLSLCompiler,metora/MesaGLSLCompiler |
1b36e324bd55b855e130b0ede0942cf6de561dc6 | src/pspinlock-decc.c | src/pspinlock-decc.c | /*
* Copyright (C) 2016 Alexander Saprykin <xelfium@gmail.com>
*
* This library is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later ver... | Add spinlock model for DEC C compiler | Add spinlock model for DEC C compiler
| C | unknown | saprykin/plibsys,saprykin/plib,saprykin/plibsys,saprykin/plibsys,saprykin/plib | |
2a84d0b7af1e2ff2d250f0569529e78868cf498b | include/stdlib.h | include/stdlib.h | #ifndef __STDLIB_H__
#define __STDLIB_H__
#include <types.h>
#define abs(ival) (ival < 0? -ival : ival)
void *malloc(size_t size);
void free(void *addr);
struct task;
void __free(void *addr, struct task *task);
void *memcpy(void *dst, const void *src, size_t len);
void *memset(void *src, int c, size_t len);
#endi... | #ifndef __STDLIB_H__
#define __STDLIB_H__
#include <types.h>
#define abs(ival) ((ival) < 0? -(ival) : (ival))
void *malloc(size_t size);
void free(void *addr);
struct task;
void __free(void *addr, struct task *task);
void *memcpy(void *dst, const void *src, size_t len);
void *memset(void *src, int c, size_t len);
... | Fix missing parenthesis in abs() | Fix missing parenthesis in abs()
| C | apache-2.0 | onkwon/yaos,onkwon/yaos,onkwon/yaos |
03b7bc948016753bc2e80d9b6e85edfb30da571d | src/log.h | src/log.h | #ifndef LOG_H
#define LOG_H
enum log_level {
LOG_LEVEL_DEBUG = 10,
LOG_LEVEL_MSG = 20,
LOG_LEVEL_WARN = 30,
LOG_LEVEL_ERR = 40
};
void set_log_level(enum log_level threshold);
void log_debug(const char *fmt, ...);
void log_msg(const char *fmt, ...);
void log_warn(const char *fmt, ...);
void log_... | #ifndef LOG_H
#define LOG_H
#include <stdarg.h>
enum log_level {
LOG_LEVEL_DEBUG = 10,
LOG_LEVEL_MSG = 20,
LOG_LEVEL_WARN = 30,
LOG_LEVEL_ERR = 40
};
void set_log_level(enum log_level threshold);
void log_debug(const char *fmt, ...);
void log_msg(const char *fmt, ...);
void log_warn(const char ... | Fix an error on linux | Fix an error on linux
| C | apache-2.0 | bestwpw/the_silver_searcher,siadat/the_silver_searcher,godbyk/the_silver_searcher,vehar/the_silver_searcher,Arkanosis/the_silver_searcher,danielshahaf/the_silver_searcher,vehar/the_silver_searcher,nodakai/the_silver_searcher,bc-jaymendoza/the_silver_searcher,Arkanosis/the_silver_searcher,christer155/the_silver_searcher... |
121fcc178eea7b69b9c0a1aa5818cb714b37644b | tests/regression/04-mutex/81-if-cond-race-loc.c | tests/regression/04-mutex/81-if-cond-race-loc.c | #include <pthread.h>
#include <stdio.h>
int myglobal;
void *t_fun(void *arg) {
// awkward formatting to check that warning is just on condition expression, not entire if
if // NORACE
(myglobal > 0) { // RACE!
printf("Stupid!");
printf("Stupid!");
printf("Stupid!");
printf("Stupid!");
print... | Add test for if condition race location | Add test for if condition race location
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
ca0d5d42bc9c7b8acb6038d3969a5defb2946942 | third-party/lib/openlibm/impl.h | third-party/lib/openlibm/impl.h |
#ifndef _OPENLIB_FINITE_H
#define _OPENLIB_FINITE_H
#include <sys/cdefs.h>
#define __BSD_VISIBLE 1
#include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h>
static inline int finite(double x) {
return isfinite(x);
}
static inline int finitef(float x) {
return isfinite(x);
}
static inline i... |
#ifndef _OPENLIB_FINITE_H
#define _OPENLIB_FINITE_H
#include <sys/cdefs.h>
#define __BSD_VISIBLE 1
#include <../../build/extbld/third_party/lib/OpenLibm/install/openlibm_math.h>
static inline int finite(double x) {
return isfinite(x);
}
static inline int finitef(float x) {
return isfinite(x);
}
static inline i... | Fix openlibm compilation without defined macro __STDC__ | third-party: Fix openlibm compilation without defined macro __STDC__
| C | bsd-2-clause | embox/embox,embox/embox,embox/embox,embox/embox,embox/embox,embox/embox |
60e74265f056ba274aa4b81034bd687e89279a9a | lib/neatogen/poly.h | lib/neatogen/poly.h | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | /* $Id$ $Revision$ */
/* vim:set shiftwidth=4 ts=8: */
/**********************************************************
* This software is part of the graphviz package *
* http://www.graphviz.org/ *
* *
* Copyright (... | Fix the sep and esep attributes to allow additive margins in addition to scaled margins. | Fix the sep and esep attributes to allow additive margins in addition
to scaled margins.
| C | epl-1.0 | MjAbuz/graphviz,pixelglow/graphviz,ellson/graphviz,pixelglow/graphviz,BMJHayward/graphviz,ellson/graphviz,tkelman/graphviz,jho1965us/graphviz,kbrock/graphviz,ellson/graphviz,BMJHayward/graphviz,BMJHayward/graphviz,MjAbuz/graphviz,jho1965us/graphviz,kbrock/graphviz,MjAbuz/graphviz,ellson/graphviz,tkelman/graphviz,tkelma... |
038fd84030d172d7b94cfd8d84a5fcc274cb3d1f | lib/internal.h | lib/internal.h | /* internal.h
Internal definitions used by Expat. This is not needed to compile
client code.
The following definitions are made:
FASTCALL -- Used for most internal functions to specify that the
fastest possible calling convention be used.
inline -- Used for selected internal functio... | /* internal.h
Internal definitions used by Expat. This is not needed to compile
client code.
The following definitions are made:
FASTCALL -- Used for most internal functions to specify that the
fastest possible calling convention be used.
inline -- Used for selected internal functio... | Disable FASTCALL on Windows since it turned out not to be as effective as hoped. Leaving the definition in the file so we'll know what it was that didn't work, and hopefully find something better in the future. | Disable FASTCALL on Windows since it turned out not to be as effective
as hoped. Leaving the definition in the file so we'll know what it
was that didn't work, and hopefully find something better in the
future.
| C | mit | PKRoma/expat,PKRoma/expat,PKRoma/expat,PKRoma/expat |
45cf7206ab713b373ae4e8341716329893985186 | tests/regression/05-lval_ls/18-website.c | tests/regression/05-lval_ls/18-website.c | // SKIP PARAM: --sets ana.activated[+] var_eq --sets ana.activated[+] region --sets ana.activated[+] var_eq --enable exp.region-offsets
#include <pthread.h>
int data[10];
pthread_mutex_t mutexes[10];
void safe_inc(int i) {
pthread_mutex_lock(&mutexes[i]);
data[i]++; // RACE
pthread_mutex_unlock(&mutexes[i]);
}... | Add example from website as skipped test | Add example from website as skipped test
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer | |
ed075c4b1a51a4191e6060f003eecbd1368ab841 | tests/c/winsockdup.c | tests/c/winsockdup.c | #include <winsock2.h>
#include <assert.h>
#define sassert assert
void dump() {
int err;
LPTSTR buf;
err = WSAGetLastError();
FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, &buf, 0, NULL);
printf("%d %s\n", err, buf);
LocalFree(buf);
}
int main() {
SOCKET s1, s2, s1d, ... | Test program for duplicating sockets in windows | Test program for duplicating sockets in windows
| C | lgpl-2.1 | pycurl/pycurl,pycurl/pycurl,pycurl/pycurl | |
9f4f6bdacbc60fd318fb56c587467cf18b1375fb | demos/FPL_Console/fpl_console.c | demos/FPL_Console/fpl_console.c | /*
-------------------------------------------------------------------------------
Name:
FPL-Demo | Console
Description:
A Hello-World Console Application testing Console Output/Input
Requirements:
No requirements
Author:
Torsten Spaete
Changelog:
## 2018-04-23:
- Initial creation of this description block
- Cha... | /*
-------------------------------------------------------------------------------
Name:
FPL-Demo | Console
Description:
A Hello-World Console Application testing Console Output/Input
Requirements:
No requirements
Author:
Torsten Spaete
Changelog:
## 2018-04-23:
- Initial creation of this description block
- Cha... | Use fpl_null instead of NULL in console demo | Use fpl_null instead of NULL in console demo
| C | mit | f1nalspace/final_game_tech,f1nalspace/final_game_tech,f1nalspace/final_game_tech |
d9ae84898ef7e2e97aa4eecd8a9df8e383d15c67 | test/CFrontend/2005-12-04-AttributeUsed.c | test/CFrontend/2005-12-04-AttributeUsed.c | // RUN: %llvmgcc %s -S -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
int X __attribute__((used));
int Y;
void foo() __attribute__((used));
void foo() {}
| // RUN: %llvmgcc %s -S -emit-llvm -o - | llvm-as | llvm-dis | grep llvm.used | grep foo | grep X
int X __attribute__((used));
int Y;
void foo() __attribute__((used));
void foo() {}
| Use the -emit-llvm switch to generate LLVM assembly that can be parsed by the test case. | Use the -emit-llvm switch to generate LLVM assembly that can be parsed
by the test case.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@30654 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-D... |
e3490baa8f45f1894326a5925159ebf123b20c51 | source/builtin/optimization/fibonacci.h | source/builtin/optimization/fibonacci.h | #ifndef FIBONACCI_H
#define FIBONACCI_H
#include "../function.h"
namespace BuiltIn {
namespace Optimization {
// Class for finding minimum of function with Fibonacci method
class Fibonacci : public Function
{
public:
Fibonacci();
Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArg... | #ifndef FIBONACCI_H
#define FIBONACCI_H
#include "../function.h"
namespace BuiltIn {
namespace Optimization {
// Class for finding minimum of function with Fibonacci method
class Fibonacci : public Function
{
public:
Fibonacci();
Rpn::Operand calculate(FunctionCalculator *calculator, QList<Rpn::Operand> actualArg... | Fix for impicit conversions from double to int and vise versa. | Fix for impicit conversions from double to int and vise versa.
| C | bsd-3-clause | ming13/aequatio,ming13/aequatio |
d1a6dd6ad96b5eb291976d3d0c949496af470762 | include/core/SkMilestone.h | include/core/SkMilestone.h | /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 60
#endif
| /*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE 61
#endif
| Update Skia milestone to 61 | Update Skia milestone to 61
BUG=skia:
Change-Id: I9602ddb0f5a08481365e7c74f1fc93836f7e5080
Reviewed-on: https://skia-review.googlesource.com/17920
Reviewed-by: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
Commit-Queue: Heather Miller <2e22000c5d22374561fe5fba576a31095b72dc2e@google.com>
| C | bsd-3-clause | Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,google/skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,Hikari-no-Tenshi/android_external_skia,aosp-mirror/platform_external_skia,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,HalCanary/skia-hc,aosp-mirror/platform_external_skia,aosp-mirror/platfo... |
3dfdf82baff2eea1b02fcba51ea71fbedb0987a4 | 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 7
#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 1
#define CLIENT_VERSION_MINOR 0
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | Update client version number and set false for prerelease | Update client version number and set false for prerelease
| C | mit | Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin,Megalinuxcoin/megalinuxcoin |
392cf8bd4bd139f67b326d6a488f4b8b7bdc7100 | jansson_config.h | jansson_config.h | /*
* Copyright (c) 2010-2012 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*
*
* This file specifies a part of the site-specific configuration for
* Jansson, namely those things that affect t... | Add a file that was required for building jansson from CMake. | Add a file that was required for building jansson from CMake.
| C | bsd-3-clause | dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core,dazeus/dazeus-core | |
bbf5d9516d6fac481b97fa8fc08ead890236edd4 | Interfaces/WorldLogicInterface.h | Interfaces/WorldLogicInterface.h | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file WorldLogicInterface.h
* @brief
*/
#include "ServiceInterface.h"
#ifndef incl_Interfaces_WorldLogicInterface_h
#define incl_Interfaces_WorldLogicInterface_h
#include "ForwardDefines.h"
#include <QObject>
class QS... | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file WorldLogicInterface.h
* @brief
*/
#ifndef incl_Interfaces_WorldLogicInterface_h
#define incl_Interfaces_WorldLogicInterface_h
#include "ServiceInterface.h"
#include "ForwardDefines.h"
#include <QObject>
class QSt... | Move include within include guards. | Move include within include guards.
| C | apache-2.0 | jesterKing/naali,realXtend/tundra,AlphaStaxLLC/tundra,jesterKing/naali,realXtend/tundra,jesterKing/naali,BogusCurry/tundra,pharos3d/tundra,jesterKing/naali,realXtend/tundra,realXtend/tundra,AlphaStaxLLC/tundra,pharos3d/tundra,BogusCurry/tundra,antont/tundra,pharos3d/tundra,pharos3d/tundra,realXtend/tundra,AlphaStaxLLC/... |
f5180d98f775f5e56ce3ef250240e24995655472 | lilthumb.h | lilthumb.h | #ifndef lilthumb
#define lilthumb
#include <ctime>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
return str;
}
}
#defin... | #ifndef lilthumb
#define lilthumb
#include <ctime>
namespace lilthumb{
std::string timeString()
{
time_t rawtime;
struct tm * timeinfo;
char buffer[80];
time (&rawtime);
timeinfo = localtime(&rawtime);
strftime(buffer,80,"%d-%m-%Y %I:%M:%S",timeinfo);
std::string str(buffer);
return str;
}
}
#defi... | Change macro to let user choose output stream | Change macro to let user choose output stream
| C | apache-2.0 | jeromevelut/lilthumb |
0d7b37d846af64a22f99f8181d32c0b8ff632e8f | system/check.c | system/check.c | #include <proto/dos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include "system/check.h"
bool SystemCheck() {
bool kickv40 = SysBase->LibNode.lib_Version >= 40;
bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA);
bool cpu68040... | #include <proto/dos.h>
#include <proto/exec.h>
#include <proto/graphics.h>
#include <exec/execbase.h>
#include <graphics/gfxbase.h>
#include "system/check.h"
bool SystemCheck() {
bool kickv40 = SysBase->LibNode.lib_Version >= 40;
bool chipaga = GfxBase->ChipRevBits0 & (GFXF_AA_ALICE|GFXF_AA_LISA);
bool cpu68040... | Break lines properly on serial console. | Break lines properly on serial console.
| C | artistic-2.0 | cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene,cahirwpz/demoscene |
398f341668286bd3d82256aa22a5547dc32e0f50 | tests/Test.h | tests/Test.h | #pragma once
#include "Jitter.h"
#define TEST_VERIFY(a) if(!(a)) { int* p = 0; (*p) = 0; }
class CTest
{
public:
virtual ~CTest() {}
virtual void Run() = 0;
virtual void Compile(Jitter::CJitter&) = 0;
#ifdef _MSC_VER
//Overload operator new and delete to make sure we get proper 16-byte ... | #pragma once
#include "AlignedAlloc.h"
#include "Jitter.h"
#define TEST_VERIFY(a) if(!(a)) { int* p = 0; (*p) = 0; }
class CTest
{
public:
virtual ~CTest() {}
virtual void Run() = 0;
virtual void Compile(Jitter::CJitter&) = 0;
void* operator new(size_t allocSize)
{
return framework_a... | Use aligned alloc for test allocation. | Use aligned alloc for test allocation.
| C | bsd-2-clause | Alloyed/Play--CodeGen,Alloyed/Play--CodeGen,Alloyed/Play--CodeGen,Alloyed/Play--CodeGen |
014409aedf3da620da63c502ff039ee746cdfe6a | include/deal.II/base/tensor_accessors.h | include/deal.II/base/tensor_accessors.h | // ---------------------------------------------------------------------
//
// Copyright (C) 1998 - 2015 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... | Add a new namespace TensorAccessors | Add a new namespace TensorAccessors
This namespace will contain a collection of algorithms working on generic
tensorial objects (of arbitrary rank).
The rationale to implement such functionality in a generic fashion in a
separate namespace is
- to easy code reusability and therefore avoid code duplication.
- to hav... | C | lgpl-2.1 | shakirbsm/dealii,ESeNonFossiIo/dealii,YongYang86/dealii,danshapero/dealii,Arezou-gh/dealii,pesser/dealii,andreamola/dealii,naliboff/dealii,andreamola/dealii,naliboff/dealii,maieneuro/dealii,YongYang86/dealii,spco/dealii,danshapero/dealii,angelrca/dealii,sairajat/dealii,JaeryunYim/dealii,danshapero/dealii,gpitton/dealii... | |
8f1e45e84583b476bd86de7fb2d23bf391a67f9a | main.c | main.c | #include <stdio.h>
#include <string.h>
#include <math.h>
#include "calc.h"
#include "input.h"
int main(void)
{
while (1){
char input[65536];
double ans;
read_line(input);
if (strcmp(input, "exit") == 0 || strcmp(input, "quit") == 0){
break;
}
ans = calc... | #include <stdio.h>
#include <string.h>
#include <math.h>
#include "calc.h"
#include "input.h"
int main(void)
{
while (1){
char input[65536];
double ans;
read_line(input);
if (strlen(input) == 0 || strcmp(input, "exit") == 0 || strcmp(input, "quit") == 0){
break;
... | Exit when input line is empty | Exit when input line is empty
| C | mit | Roadagain/Calculator,Roadagain/Calculator |
3201618e6105204892a52265ecd84372f6b7925b | CMake/TestQnanhibit.c | CMake/TestQnanhibit.c | #include <stdio.h>
#include <float.h>
int
main(int argc, char *argv[])
{
char *me;
float qnan, zero;
int i;
me = argv[0];
if (sizeof(float) != sizeof(int))
{
fprintf(stderr, "%s: MADNESS: sizeof(float)=%d != sizeof(int)=%d\n",
me, (int)sizeof(float), (int)sizeof(int));
return -1;
... | #include <stdio.h>
#include <float.h>
#if defined(__BORLANDC__)
# include <math.h>
# include <float.h>
#endif
int
main(int argc, char *argv[])
{
#if defined(__BORLANDC__)
// Disable floating point exceptions in Borland
_control87(MCW_EM, MCW_EM);
#endif // defined(__BORLANDC__)
char *me;
float qnan, zero;
... | Disable floating point exceptions on Borland compiler | FIX: Disable floating point exceptions on Borland compiler
| C | apache-2.0 | LucHermitte/ITK,cpatrick/ITK-RemoteIO,hendradarwin/ITK,PlutoniumHeart/ITK,blowekamp/ITK,InsightSoftwareConsortium/ITK,daviddoria/itkHoughTransform,biotrump/ITK,hendradarwin/ITK,LucHermitte/ITK,CapeDrew/DCMTK-ITK,CapeDrew/DCMTK-ITK,wkjeong/ITK,InsightSoftwareConsortium/ITK,eile/ITK,hinerm/ITK,GEHC-Surgery/ITK,paulnovo/I... |
d3821b4d33b0ac75f5880c53ffdf960b3d7ea419 | src/choices.h | src/choices.h | /** \file choices.h switches that control debugging in source code.
* Uncomment the defines below to allow a specific type of compilation
*/
#ifndef __choices_h__
#define __choices_h__
/** Turn on YACAS_DEBUG if you want to see run-time statistics
* after typing Exit()
*/
//#define YACAS_DEBUG
/** Turn on USE_A... | /** \file choices.h switches that control debugging in source code.
* Uncomment the defines below to allow a specific type of compilation
*/
#ifndef __choices_h__
#define __choices_h__
/** Turn on YACAS_DEBUG if you want to see run-time statistics
* after typing Exit()
*/
//#define YACAS_DEBUG
/** Turn on USE_A... | Use at least 32 bits long reference counters by default to avoid nasty, hard to track segfaults when calculations get larger | Use at least 32 bits long reference counters by default to avoid nasty,
hard to track segfaults when calculations get larger
| C | lgpl-2.1 | grzegorzmazur/yacas,tomaszkrysiuk/yacas,MateuszSnamina/yacas,MateuszSnamina/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,martanoga/yacas,qwert2003/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,grzegorzmazur/yacas,MateuszSnamina/yacas,martanoga/yacas,grzegorzmazur/yacas,tomaszkrysiuk/yacas,qwert2003/yacas,martanoga/yacas,M... |
d53c524fde11a730c3f89d709980706ec93ce881 | src/rtcmix/gen/fsize.c | src/rtcmix/gen/fsize.c | #include <ugens.h>
#include <stdio.h>
/* these 3 defined in makegen.c */
extern double *farrays[];
extern int sizeof_farray[];
extern int f_goto[];
int
fsize(int genno)
/* returns the size of function number genno */
{
if(!sizeof_farray[f_goto[genno]]) {
fprintf(stderr,"fsize: You haven't allocated functi... | #include <ugens.h>
#include <stdio.h>
/* these 3 defined in makegen.c */
extern double *farrays[];
extern int sizeof_farray[];
extern int f_goto[];
/* returns the size of function number genno */
int
fsize(int genno)
{
if (!sizeof_farray[f_goto[genno]]) {
die("fsize", "You haven't allocated function %d yet!", g... | Use die and return instead of exiting. | Use die and return instead of exiting.
| C | apache-2.0 | RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix,RTcmix/RTcmix |
973ad55a32a58adc24d0d4f217a57cca3289e71a | src/main/cc/any_sketch/util/macros.h | src/main/cc/any_sketch/util/macros.h | #ifndef SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_
#define SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_
#define RETURN_IF_ERROR(status) \
do { \
Status _status = (status); \
if (!_status.ok()) return _status; \
} while (0)
#endif // SRC_MAIN_CC_ANY_SKETCH_UTIL_MACROS_H_... | /*
* Copyright 2020 The Any Sketch Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | Add LICENSE and source headers to any-sketch repo. | Add LICENSE and source headers to any-sketch repo.
BUG=161899344
Change-Id: I201d5420c80f9e16b6832c1bc31adf6ca6ab8cb1
| C | apache-2.0 | world-federation-of-advertisers/common-cpp |
e795d5fbcbb4658c49cb607694eb07ce85a10528 | php_shmt.h | php_shmt.h | #ifndef PHP_SHMT_H
#define PHP_SHMT_H
#define PHP_SHMT_EXTNAME "SHMT"
#define PHP_SHMT_EXTVER "1.0"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
extern zend_module_entry shmt_module_entry;
#define phpext_shmt_ptr &shmt_module_entry;
#endif /* PHP_SHMT_H */
| #ifndef PHP_SHMT_H
#define PHP_SHMT_H
#define PHP_SHMT_EXTNAME "SHMT"
#define PHP_SHMT_EXTVER "1.0.1dev"
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif /* HAVE_CONFIG_H */
extern zend_module_entry shmt_module_entry;
#define phpext_shmt_ptr &shmt_module_entry;
#endif /* PHP_SHMT_H */
| Modify the SHMT version to 1.0.1dev | Modify the SHMT version to 1.0.1dev
| C | mit | sevenval/SHMT,sevenval/SHMT |
192d8dbbd110766bf3c5c5bf39f1f08ffbe0760b | You-DataStore/datastore.h | You-DataStore/datastore.h | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
fr... | #pragma once
#ifndef YOU_DATASTORE_DATASTORE_H_
#define YOU_DATASTORE_DATASTORE_H_
#include <deque>
#include <functional>
#include "boost/variant.hpp"
#include "task_typedefs.h"
#include "internal/operation.h"
#include "transaction.h"
namespace You {
namespace DataStore {
namespace UnitTests {}
class DataStore {
fr... | Change methods in DataStore to non-static anymore (it is alr a singleton) | Change methods in DataStore to non-static anymore (it is alr a singleton)
| C | mit | cs2103aug2014-w10-1c/main,cs2103aug2014-w10-1c/main |
f94601e977ea6bf7c466e30d62cce8f05d9973fd | src/shared/buxtonkey.h | src/shared/buxtonkey.h | /*
* This file is part of buxton.
*
* Copyright (C) 2013 Intel Corporation
*
* buxton 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... | Add internal representation of a BuxtonKey | shared: Add internal representation of a BuxtonKey
Keys will represent a single item identifying a value in buxton. The
key can contain any data needed to reference a value.
| C | lgpl-2.1 | sofar/buxton,sofar/buxton | |
c8f1d5e9e726372211ccf0d44017d565aabcc3dc | openacc/2-manual-sum.c | openacc/2-manual-sum.c | #include <stdlib.h>
#include <stdio.h>
int main(int argc, char **argv) {
const int sample = 10000;
size_t size = sample * sizeof(int);
int *restrict a1, *restrict a2, *restrict a3;
a1 = (int*) malloc(size);
a2 = (int*) malloc(size);
a3 = (int*) malloc(size);
int sum = 0;
int i;
#pragma acc data creat... | Add a more elaborate example of acc computation. | Add a more elaborate example of acc computation.
| C | mit | Timer/parallel-computing,Timer/parallel-computing | |
06a8fac3e909e7df4bd888cbb76964479ae80abc | gtk/tests/accessible.c | gtk/tests/accessible.c | #include <gtk/gtk.h>
static void
test_type (GType t)
{
GtkWidget *w;
AtkObject *a;
if (g_type_is_a (t, GTK_TYPE_WIDGET))
{
w = (GtkWidget *)g_object_new (t, NULL);
a = gtk_widget_get_accessible (w);
g_assert (GTK_IS_ACCESSIBLE (a));
g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL... | #include <gtk/gtk.h>
static void
test_type (GType t)
{
GtkWidget *w;
AtkObject *a;
if (g_type_is_a (t, GTK_TYPE_WIDGET))
{
w = (GtkWidget *)g_object_new (t, NULL);
a = gtk_widget_get_accessible (w);
g_assert (GTK_IS_ACCESSIBLE (a));
g_assert (gtk_accessible_get_widget (GTK_ACCESSIBL... | Use testing API instead of duplicating it | tests: Use testing API instead of duplicating it
| C | lgpl-2.1 | ebassi/gtk,ebassi/gtk,jigpu/gtk,chergert/gtk,ahodesuka/gtk,msteinert/gtk,Lyude/gtk-,bratsche/gtk-,Adamovskiy/gtk,davidgumberg/gtk,davidgumberg/gtk,alexlarsson/gtk,ahodesuka/gtk,msteinert/gtk,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxGtk,ahodesuka/gtk,jadahl/gtk,Lyude/gtk-,bratsche/gtk-,chergert/gtk,Sidnioulz/SandboxG... |
aacc405f32026f676293f5ba64d50e9a70ef50a9 | testmud/mud/home/Test/initd.c | testmud/mud/home/Test/initd.c | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | /*
* This file is part of Kotaka, a mud library for DGD
* http://github.com/shentino/kotaka
*
* Copyright (C) 2012 Raymond Jennings
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundati... | Add global access to test subsystem | Add global access to test subsystem
| C | agpl-3.0 | shentino/kotaka,shentino/kotaka,shentino/kotaka |
c0cf830770eba3893b0c61317d8772f9e837ddbf | Example/SMPageControl/SMViewController.h | Example/SMPageControl/SMViewController.h | //
// SMViewController.h
// SMPageControl
//
// Created by Jerry Jones on 10/13/12.
// Copyright (c) 2012 Spaceman Labs. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SMPageControl.h"
@interface SMViewController : UIViewController
@property (nonatomic, readonly) IBOutlet UIScrollView *scrollview;
@pro... | //
// SMViewController.h
// SMPageControl
//
// Created by Jerry Jones on 10/13/12.
// Copyright (c) 2012 Spaceman Labs. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "SMPageControl.h"
@interface SMViewController : UIViewController
@property (nonatomic, weak) IBOutlet UIScrollView *scrollview;
@propert... | Change IBOutlet attributes from readonly to weak | Change IBOutlet attributes from readonly to weak
This fixes the warning "readonly IBOutlet property when auto-synthesized may not work correctly with 'nib' loader".
Also, weak is better than assign when using weak references to objects, because weak prevents dangling pointers.
| C | mit | doanhkisi/SMPageControl,CorzFree/SMPageControl,Spaceman-Labs/SMPageControl,HelloWilliam/SMPageControl |
5ba364466dabf4e4d8809218197b5bd0761db881 | IntelFrameworkPkg/Include/FrameworkDxe.h | IntelFrameworkPkg/Include/FrameworkDxe.h | /** @file
Header file that supports Framework extension to UEFI/PI for DXE modules.
This header file must include Framework extension definitions common to DXE
modules.
Copyright (c) 2007, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made avai... | /** @file
Header file that supports Framework extension to UEFI/PI for DXE modules.
This header file must include Framework extension definitions common to DXE
modules.
Copyright (c) 2007-2009, Intel Corporation
All rights reserved. This program and the accompanying materials
are licensed and made availab... | Update Copyright. Delete erroneous "Module Name" line. | Update Copyright. Delete erroneous "Module Name" line.
git-svn-id: 5648d1bec6962b0a6d1d1b40eba8cf5cdb62da3d@8673 6f19259b-4bc3-4df7-8a09-765794883524
| C | bsd-2-clause | MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2,MattDevo/edk2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.