commit stringlengths 40 40 | old_file stringlengths 4 237 | new_file stringlengths 4 237 | old_contents stringlengths 1 4.24k | new_contents stringlengths 1 4.87k | subject stringlengths 15 778 | message stringlengths 15 8.75k | lang stringclasses 266
values | license stringclasses 13
values | repos stringlengths 5 127k |
|---|---|---|---|---|---|---|---|---|---|
ee4c2a98030ca0aae12a474b3ebde34d5a55c53d | libevmjit-cpp/JitVM.h | libevmjit-cpp/JitVM.h | #pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp = {}, uint64_t _steps = (uint64_t)-1) override final;
private:
jit::Runtime... | #pragma once
#include <libevm/VMFace.h>
#include <evmjit/libevmjit/ExecutionEngine.h>
namespace dev
{
namespace eth
{
class JitVM: public VMFace
{
public:
virtual bytesConstRef execImpl(u256& io_gas, ExtVMFace& _ext, OnOpFunc const& _onOp, uint64_t _steps) override final;
private:
jit::RuntimeData m_data;
jit::E... | Change the way execution results are collected. | Change the way execution results are collected.
Changes handling ExecutionResult by Executive. From now execution results are collected on if a storage for results (ExecutionResult) is provided to an Executiove instance up front. This change allow better output management for calls - VM interface improved.
| C | mit | ethcore/evmjit,debris/evmjit,ethcore/evmjit,debris/evmjit |
42f453c38a1dd6c14aaf9cd655034d258c9ae931 | lib/ext/digest/defs.h | lib/ext/digest/defs.h | /* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # defi... | /* -*- C -*-
* $Id: defs.h 11708 2007-02-12 23:01:19Z shyouhei $
*/
#ifndef DIGEST_DEFS_H
#define DIGEST_DEFS_H
#include "ruby.h"
#include <sys/types.h>
#include <sys/cdefs.h>
/*
* #if defined(HAVE_SYS_CDEFS_H)
* # include <sys/cdefs.h>
* #endif
* #if !defined(__BEGIN_DECLS)
* # define __BEGIN_DECLS
* # defi... | Fix Digest failures on OSX PPC (big endian) systems | Fix Digest failures on OSX PPC (big endian) systems
- add some tests to defs.h to check for the existence of the __BIG_ENDIAN__
macro which is available on POSIX systems. If it is defined, we define the
WORDS_BIGENDIAN macro which is tested by the digest/**/*.c files to activate
special code for byte reordering
... | C | bsd-3-clause | heftig/rubinius,mlarraz/rubinius,sferik/rubinius,lgierth/rubinius,jemc/rubinius,kachick/rubinius,travis-repos/rubinius,pH14/rubinius,jemc/rubinius,Wirachmat/rubinius,ngpestelos/rubinius,slawosz/rubinius,Azizou/rubinius,travis-repos/rubinius,pH14/rubinius,digitalextremist/rubinius,digitalextremist/rubinius,jemc/rubinius... |
74de5774f6ac0458a72e7dac54df6b014a05490a | core/src/platform.h | core/src/platform.h | #pragma once
#ifdef PLATFORM_ANDROID
struct _JNIEnv;
typedef _JNIEnv JNIEnv;
class _jobject;
typedef _jobject* jobject;
void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager);
#endif
#if (defined PLATFORM_IOS) && (defined __OBJC__)
#import "ViewController.h"
void setViewController(ViewController* _controll... | #pragma once
#ifdef PLATFORM_ANDROID
struct _JNIEnv;
typedef _JNIEnv JNIEnv;
class _jobject;
typedef _jobject* jobject;
void jniInit(JNIEnv* _jniEnv, jobject obj, jobject _assetManager);
#endif
#if (defined PLATFORM_IOS) && (defined __OBJC__)
#import "ViewController.h"
void setViewController(ViewController* _controll... | Add headers for setting and getting continuous rendering state | Add headers for setting and getting continuous rendering state
| C | mit | tangrams/tangram-es,xvilan/tangram-es,cleeus/tangram-es,cleeus/tangram-es,hjanetzek/tangram-es,karimnaaji/tangram-es,hjanetzek/tangram-es,xvilan/tangram-es,tangrams/tangram-es,tangrams/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,quitejonny/tangram-es,tangrams/tangram-es,karimnaaji/tangr... |
e86ec93def569ec100bcbca7e9f1952e64a0851d | inc/libutils/io/system_log.h | inc/libutils/io/system_log.h | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/io/logger.h"
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
template<typename CharT>
class SystemLog : publi... | /*
* system_log.h
*
* Author: Ming Tsang
* Copyright (c) 2014 Ming Tsang
* Refer to LICENSE for details
*/
#pragma once
#include "libutils/misc/singleton.h"
namespace libutils
{
namespace io
{
template<typename T> class Logger;
}
}
namespace libutils
{
namespace io
{
/**
* The default system logger
*/
te... | Include logger.h later to prevent using SystemLog before definition | Include logger.h later to prevent using SystemLog before definition | C | mit | nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils,nkming2/libutils |
768df6b3adad4557b81749e18c06c56c0a0c53fb | GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h | GTMAppAuth/Sources/Public/GTMAppAuth/GTMAppAuth.h | /*! @file GTMAppAuth.h
@brief GTMAppAuth SDK
@copyright
Copyright 2016 Google Inc.
@copydetails
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
ht... | /*! @file GTMAppAuth.h
@brief GTMAppAuth SDK
@copyright
Copyright 2016 Google Inc.
@copydetails
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
ht... | Add GTMKeychain.h to umbrella header | Add GTMKeychain.h to umbrella header
This is required for Xcode 12.5 and Swift Package Manager. Verified locally that this fix resolves the issue. | C | apache-2.0 | google/GTMAppAuth,google/GTMAppAuth |
d11d5a161003ccb024927fff5c620eb7515716fc | source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h | source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h | //===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | //===-- NativeRegisterContextWindows.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | Fix compilation for MinGW, remove redundant class name on inline member | [LLDB] Fix compilation for MinGW, remove redundant class name on inline member
This fixes build errors like these:
NativeRegisterContextWindows.h:22:33: error: extra qualification on member 'NativeRegisterContextWindows'
NativeRegisterContextWindows::NativeRegisterContextWindows(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
... | C | apache-2.0 | llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb,llvm-mirror/lldb |
8c1f6397bf58de0676cd2ef0a59d2cd0debd3c60 | lib/src/models/post-filter.h | lib/src/models/post-filter.h | #ifndef POST_FILTER_H
#define POST_FILTER_H
#include <QString>
#include <QStringList>
#include <QMap>
#include "loader/token.h"
class PostFilter
{
public:
static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters);
static QStringList blacklisted(const QMap<QString, Token> &tokens,... | #ifndef POST_FILTER_H
#define POST_FILTER_H
#include <QString>
#include <QStringList>
#include <QMap>
#include "loader/token.h"
class PostFilter
{
public:
static QStringList filter(const QMap<QString, Token> &tokens, const QStringList &filters);
static QStringList blacklisted(const QMap<QString, Token> &tokens,... | Fix tests broken by new PostFilter class | Fix tests broken by new PostFilter class
| C | apache-2.0 | Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber,Bionus/imgbrd-grabber |
83c438405367324e00e15d39f7ee82e2f467f2f6 | config.def.h | config.def.h | /* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which... | /* See LICENSE file for copyright and license details. */
/* Notification, remove DNOTIFY in config.mk if you don't want it */
static char *notifycmd = ""; /* Uses given command if not compiled by DNOTIFY */
static char *notifyext = ""; /* Notify with extra command (eg. play an alarm) */
/*
* This is the array which... | Make a small grammar fix | Make a small grammar fix | C | isc | pickfire/spt,pickfire/spt |
a7634a1e5a46e1cbcef577a2cb850cdf00ad63bc | features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h | features/frameworks/nanostack-libservice/mbed-client-libservice/ns_trace.h | /*
* Copyright (c) 2015-2017 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | /*
* Copyright (c) 2015-2017 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... | Include ns_types.h before mbed_trace.h in Nanomesh | Include ns_types.h before mbed_trace.h in Nanomesh
| C | apache-2.0 | andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed |
49d8436a2b84d7bd90fc76c17b723ad5c89772a7 | net/flip/flip_bitmasks.h | net/flip/flip_bitmasks.h | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const int kStreamIdMask = 0x7fffffff; // StreamId mask from th... | // Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_FLIP_FLIP_BITMASKS_H_
#define NET_FLIP_FLIP_BITMASKS_H_
namespace flip {
const unsigned int kStreamIdMask = 0x7fffffff; // StreamId mas... | Fix signed vs unsigned issue | linux: Fix signed vs unsigned issue
Review URL: http://codereview.chromium.org/297015
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@30099 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,M4sse/chromium.src,zcbenz/cefode-chromium,dednal/chromium.src,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,dednal/chromium.src,Just-D/chromium-1,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,fujunwei/c... |
e32e63bf018f24cfe6dbd0f2ab0ccad785e1d045 | Source/Library/Object/HCIsNil.h | Source/Library/Object/HCIsNil.h | //
// OCHamcrest - HCIsNil.h
// Copyright 2011 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid
//
#import <OCHamcrest/HCBaseMatcher.h>
/**
Is the value @c nil?
@b Factory: @ref nilValue, @ref notNilValue
@ingroup object_matchers
*/
@interface HCIsNil : HCBaseMatcher
+ (id)isNil;
@end
#pr... | //
// OCHamcrest - HCIsNil.h
// Copyright 2011 hamcrest.org. See LICENSE.txt
//
// Created by: Jon Reid
//
#import <OCHamcrest/HCBaseMatcher.h>
@interface HCIsNil : HCBaseMatcher
+ (id)isNil;
@end
OBJC_EXPORT id<HCMatcher> HC_nilValue();
/**
Matches if the value is @c nil.
In the event of a name cla... | Simplify docs for nilValue / notNilValue | Simplify docs for nilValue / notNilValue
| C | bsd-2-clause | hamcrest/OCHamcrest,nschum/OCHamcrest,klundberg/OCHamcrest,klundberg/OCHamcrest,hamcrest/OCHamcrest,hamcrest/OCHamcrest,nschum/OCHamcrest,nschum/OCHamcrest |
36e2af43dfed86736ee3f33cae7f32d51d5aeff4 | include/libsvc/packetqueue.h | include/libsvc/packetqueue.h | #ifndef _PACKETQUEUE_H
#define _PACKETQUEUE_H 1
#include <libsvc/thread.h>
#include <libsvc/transport.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct pktbuf_s {
uint8_t pkt[4096];
} pktbuf;
typedef struct packetqueue_s {
thread super;
pthread_mutexattr_t matt... | #ifndef _PACKETQUEUE_H
#define _PACKETQUEUE_H 1
#include <libsvc/thread.h>
#include <libsvc/transport.h>
#include <pthread.h>
#include <stdlib.h>
#include <stdint.h>
typedef struct pktbuf_s {
uint8_t pkt[4096];
struct sockaddr_storage addr;
} pktbuf;
typedef struct packetqueue_s {
threa... | Extend the packet ringbuffer to have address stamps | Extend the packet ringbuffer to have address stamps
| C | apache-2.0 | CloudVPS/opticon,CloudVPS/opticon,CloudVPS/opticon |
d56d7adb525d0fb1c4516567d400ae13f2b93013 | src/win/util.h | src/win/util.h | /*
MIT License
Copyright (c) 2017 Eren Okka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | /*
MIT License
Copyright (c) 2017 Eren Okka
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, dist... | Add smart pointer for COM interfaces | Add smart pointer for COM interfaces
| C | mit | erengy/anisthesia |
74976f231130b843f555a8f73df18ffb4d89639e | test/CodeGen/debug-info-line2.c | test/CodeGen/debug-info-line2.c | // RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s
// Radar 9199234
int bar();
int foo(int i) {
int j = 0;
if (i) {
j = bar();
//CHECK: store i32
//CHECK-NOT: br label %{{%[a-zA-Z0-9\.]+}}, !dbg
}
else
{
j = bar() + 2;
}
return j;
}
| // RUN: %clang_cc1 -triple x86_64-darwin-apple -g -emit-llvm -o - %s | FileCheck %s
// Radar 9199234
int bar();
int foo(int i) {
int j = 0;
if (i) {
j = bar();
}
else
{
//CHECK: store i32 %add
//CHECK-NOT: br label %{{[a-zA-Z0-9\.]+}}, !dbg
j = bar() + 2;
}
return j;
}
| Fix regexp for this test to properly check. | Fix regexp for this test to properly check.
Patch by Eli Bendersky.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@160385 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
98330bd7030626759102845a0467ed2c71f26c30 | documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h | documentapi/src/vespa/documentapi/messagebus/messages/searchresultmessage.h | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <vespa/vdslib/container/searchresult.h>
#include <vespa/documentapi/messagebus/messages/visitor.h>
namespace documentapi {
class SearchResultMessage : public VisitorMessage,
... | // Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "visitor.h"
#include <vespa/vdslib/container/searchresult.h>
namespace documentapi {
class SearchResultMessage : public VisitorMessage,
public vdslib::Se... | Add the overrides and you are backin business. | Add the overrides and you are backin business.
| C | apache-2.0 | vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa,vespa-engine/vespa |
24049967c5cc379e34a8e1cd714d472949464300 | UIforETW/Version.h | UIforETW/Version.h | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.50f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | #pragma once
// const float in a header file can lead to duplication of the storage
// but I don't really care in this case. Just don't do it with a header
// that is included hundreds of times.
const float kCurrentVersion = 1.51f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increment version number from 1.50b to 1.51 | Increment version number from 1.50b to 1.51
| C | apache-2.0 | ariccio/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW |
653b614d7cd51871fa3f63bbbab9e05b83ba0437 | Nimble/Nimble.h | Nimble/Nimble.h | #import <Foundation/Foundation.h>
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
| #import <Foundation/Foundation.h>
#import <Nimble/NMBExceptionCapture.h>
#import <Nimble/DSL.h>
FOUNDATION_EXPORT double NimbleVersionNumber;
FOUNDATION_EXPORT const unsigned char NimbleVersionString[];
| Revert "Remove public headers from umbrella header" | Revert "Remove public headers from umbrella header"
This reverts commit 7ab1093ffdf6adb66df1bf0799cfdbf34f136521.
| C | apache-2.0 | AnthonyMDev/Nimble,DanielAsher/Nimble,mishimay/Nimble,mishimay/Nimble,jeffh/Nimble,DanielAsher/Nimble,AnthonyMDev/Nimble,phatblat/Nimble,abbeycode/Nimble,DanielAsher/Nimble,phatblat/Nimble,dgdosen/Nimble,twobitlabs/Nimble,abbeycode/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,feinstruktur/Nimble,twobitlabs/Nimble,dgdos... |
6f470d631baf6f5a9d30e49ef67593a12e7d7faa | adm/cmake/TKernel/Precompiled.h | adm/cmake/TKernel/Precompiled.h | #pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
#ifdef USE_STL_STREAM
#include <sstream>
#else /* USE_STL_STREAM */
#ifdef WNT
#include ... | #pragma once
#include <string>
#include <iostream>
#include <math.h>
#include "Standard.hxx"
#include "Standard_PrimitiveTypes.hxx"
#include "Standard_Stream.hxx"
#include "Standard_Failure.hxx"
#include "Standard_Transient.hxx"
| Remove obsolete includes in TKernel precompiled | Remove obsolete includes in TKernel precompiled
| C | lgpl-2.1 | finetjul/oce,heartvalve/oce,heartvalve/oce,Tridify/oce,BenoitPerrot/oce,tpaviot/oce,tpaviot/oce,EvgeneOskin/oce,EvgeneOskin/oce,finetjul/oce,heartvalve/oce,finetjul/oce,finetjul/oce,Tridify/oce,EvgeneOskin/oce,Tridify/oce,BenoitPerrot/oce,BenoitPerrot/oce,finetjul/oce,Tridify/oce,tpaviot/oce,tpaviot/oce,heartvalve/oce,... |
5b8d378c0bc0da49812eb880e40f6de5844d7d70 | Sources/Core/Transformer/OCATransformer.h | Sources/Core/Transformer/OCATransformer.h | //
// OCATransformer.h
// Objective-Chain
//
// Created by Martin Kiss on 31.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import "OCATransformer+Base.h"
#import "OCATransformer+Nil.h"
#import "OCATransformer+Predefined.h"
| //
// OCATransformer.h
// Objective-Chain
//
// Created by Martin Kiss on 31.12.13.
// Copyright © 2014 Martin Kiss. All rights reserved.
//
#import "OCATransformer+Base.h"
#import "OCATransformer+Predefined.h"
| Fix import of removed file | Fix import of removed file
| C | mit | iMartinKiss/Objective-Chain,Tricertops/Objective-Chain |
a39acef2a0cad730bfa8317dc98c733212b2afb0 | include/libk/kmem.h | include/libk/kmem.h | #ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <libk/kabort.h>
#define KHEAP_PHYS_ROOT ((void*)0x100000)
//#define KHEAP_PHYS_END ((void*)0xc1000000)
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct kheap_metadata {
size_t size;
... | #ifndef KMEM_H
#define KMEM_H
#include <stdbool.h>
#include <stdint.h>
#include <arch/x86/paging.h>
#include <arch/x86/memlayout.h>
#include <libk/kabort.h>
// KHEAP_PHYS_ROOT is defined in memlayout.h because it is architecture
// specific.
#define KHEAP_END_SENTINEL (NULL)
#define KHEAP_BLOCK_SLOP 32
struct khea... | Move KHEAP macros into memlayout.h | Move KHEAP macros into memlayout.h
We should try to make this file architecture agnostic
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth,Herbstein/kernel-of-truth,awensaunders/kernel-of-truth,Herbstein/kernel-of-truth,iankronquist/kernel-of-truth,awensaunders/kernel-of-truth,iankronquist/kernel-of-truth |
94123219bfd5f9e688764a2125d36f206bf89704 | src/include/libpq/be-fsstubs.h | src/include/libpq/be-fsstubs.h | /*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.1 1996/08/28 07:22:56 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
... | /*-------------------------------------------------------------------------
*
* be-fsstubs.h--
*
*
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: be-fsstubs.h,v 1.2 1997/05/06 07:14:34 thomas Exp $
*
*-------------------------------------------------------------------------
*/
#... | Rename LOread() and LOwrite() to be lower case to allow use in case-insensitive SQL. Define LOread() and LOwrite() as macros to avoid having to update calls everywhere. | Rename LOread() and LOwrite() to be lower case to allow use
in case-insensitive SQL. Define LOread() and LOwrite() as macros
to avoid having to update calls everywhere.
| C | mpl-2.0 | kmjungersen/PostgresXL,Quikling/gpdb,xuegang/gpdb,cjcjameson/gpdb,Chibin/gpdb,cjcjameson/gpdb,0x0FFF/gpdb,royc1/gpdb,randomtask1155/gpdb,0x0FFF/gpdb,zeroae/postgres-xl,janebeckman/gpdb,50wu/gpdb,jmcatamney/gpdb,edespino/gpdb,randomtask1155/gpdb,rvs/gpdb,royc1/gpdb,0x0FFF/gpdb,randomtask1155/gpdb,lintzc/gpdb,postmind-ne... |
ebd65d48956d3a55fa5281f4cf5b5ee14172aae0 | tests/regression/02-base/88-strings.c | tests/regression/02-base/88-strings.c | #include <assert.h>
#include <stdlib.h>
int main(){
char* str = "Hello";
char* str2 = "Hello";
char* str3 = "hi";
char* str4 = "other string";
// Unknown since the there may be multiple copies of the same string
__goblint_check(str != str2); // UNKNOWN!
__goblint_check(str == str);
__... | #include <assert.h>
#include <stdlib.h>
int main(){
char* str = "Hello";
char* str2 = "Hello";
char* str3 = "hi";
char* str4 = "other string";
// Unknown since the there may be multiple copies of the same string
__goblint_check(str != str2); // UNKNOWN!
__goblint_check(str == str);
__... | Add checks to regression tests that unknown pointers and string pointers may be equal | Add checks to regression tests that unknown pointers and string pointers may be equal
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
6a7fdeffa49b5c52c8d3aadd09838eb028aa16ef | src/opts/SkBlitRow_opts_SSE4.h | src/opts/SkBlitRow_opts_SSE4.h | /*
* Copyright 2014 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBlitRow_opts_SSE4_DEFINED
#define SkBlitRow_opts_SSE4_DEFINED
#include "SkBlitRow.h"
/* Check if we are able to build assembly code, GCC/AT&T s... | /*
* Copyright 2014 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkBlitRow_opts_SSE4_DEFINED
#define SkBlitRow_opts_SSE4_DEFINED
#include "SkBlitRow.h"
/* Check if we are able to build assembly code, GCC/AT&T s... | Disable assembly code in MemorySanitizer builds. | Disable assembly code in MemorySanitizer builds.
MemorySanitizer is an unitialized memory use detector which is used in
Chromium, and does not presently support assembly code.
BUG=chromium:344505, chromium:373739
R=mtklein@google.com
Review URL: https://codereview.chromium.org/367973005
| C | bsd-3-clause | OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,YUPlayGodDev/platform_external_skia,PAC-ROM/android_external_skia,invisiblek/android_external_skia,MinimalOS/external_chromium_org_third_party_skia,scroggo/skia,Infinitive-OS/platform_external_skia,amyvmiwei/skia,MyAOSP/external_chromium_org_third_party_s... |
612b95ba94af1bf3a2459dcec6a578c381374dc9 | inc/types.h | inc/types.h | #pragma once
#include <Eigen/Dense>
namespace model {
#if BICYCLE_USE_DOUBLE_PRECISION_REAL
using real_t = double;
#else
using real_t = float;
#endif
} // namespace model
| #pragma once
namespace model {
#if BICYCLE_USE_DOUBLE_PRECISION_REAL
using real_t = double;
#else
using real_t = float;
#endif
} // namespace model
| Remove Eigen/Dense include in type header | Remove Eigen/Dense include in type header
| C | bsd-2-clause | oliverlee/bicycle,oliverlee/bicycle |
75dc6c7cb879d0018893baf6ba6b49d1f16e1b92 | unpack-trees.h | unpack-trees.h | #ifndef UNPACK_TREES_H
#define UNPACK_TREES_H
#define MAX_UNPACK_TREES 8
struct unpack_trees_options;
typedef int (*merge_fn_t)(struct cache_entry **src,
struct unpack_trees_options *options);
struct unpack_trees_options {
int reset;
int merge;
int update;
int index_only;
int nontrivial_merge;
int trivial_m... | #ifndef UNPACK_TREES_H
#define UNPACK_TREES_H
#define MAX_UNPACK_TREES 8
struct unpack_trees_options;
typedef int (*merge_fn_t)(struct cache_entry **src,
struct unpack_trees_options *options);
struct unpack_trees_options {
unsigned int reset:1,
merge:1,
update:1,
index_only:1,
nontriv... | Make unpack_trees_options bit flags actual bitfields | Make unpack_trees_options bit flags actual bitfields
Instead of wasting space with whole integers for a single bit.
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@linux-foundation.org>
Signed-off-by: Junio C Hamano <a6723cc3f76163bf7adb636a73ac3b0ceb3e6b9b@pobox.com>
| C | mit | destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git,destenson/git |
4478bc737ca39f5f7d1db4488a5aa2c0d8a793d2 | scripts/reference-citation/URLcheck.c | scripts/reference-citation/URLcheck.c | reference(citation): URLcheck
If [ $$stopFileNameCheck = 1 ]
Exit Script [ ]
End If
If [ Filter ( reference::fileName ; "?" ) = "?" or
Filter ( reference::fileName ; "#" ) = "#" or
Filter ( reference::fileName ; ";" ) = ";" or
Filter ( reference::fileName ; ":" ) = ":" ]
Show Custom Dialog [ Message: "These special charact... | reference(citation): URLcheck
If [ $$stopFileNameCheck = 1 ]
Exit Script [ ]
End If
If [ Filter ( reference::fileName ; "?" ) = "?" or
Filter ( reference::fileName ; "#" ) = "#" or
Filter ( reference::fileName ; ";" ) = ";" or
Filter ( reference::fileName ; "/" ) = "/" or
Filter ( reference::fileName ; ":" ) = ":" ]
Show Cu... | Add slash = / to warning message | Add slash = / to warning message
Add slash = / to warning message for file name character that prevent
library from opening them.
| C | apache-2.0 | HelpGiveThanks/Library,HelpGiveThanks/Library |
0e02d81608e0054a79b3760dc0af526df43f71e0 | Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h | Apptentive/Apptentive/Engagement/Model/ApptentiveConversationMetadataItem.h | //
// ApptentiveConversationMetadataItem.h
// Apptentive
//
// Created by Frank Schmitt on 2/20/17.
// Copyright © 2017 Apptentive, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ApptentiveConversationState) {
ApptentiveConversationStateNone = 0,
ApptentiveConversation... | //
// ApptentiveConversationMetadataItem.h
// Apptentive
//
// Created by Frank Schmitt on 2/20/17.
// Copyright © 2017 Apptentive, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, ApptentiveConversationState) {
ApptentiveConversationStateUndefined = 0,
ApptentiveConvers... | Update name of null state to match Android | Update name of null state to match Android
| C | bsd-3-clause | apptentive/apptentive-ios,apptentive/apptentive-ios,apptentive/apptentive-ios |
9f49055456049bdff41f61231553d29573fac184 | test/Analysis/uninit-vals-ps.c | test/Analysis/uninit-vals-ps.c | // RUN: clang -checker-simple -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // expected-warning{{Pass-by-value argument in function is undefined.}}
... | // RUN: clang -checker-simple -verify %s &&
// RUN: clang -checker-simple -analyzer-store-region -verify %s
struct FPRec {
void (*my_func)(int * x);
};
int bar(int x);
int f1_a(struct FPRec* foo) {
int x;
(*foo->my_func)(&x);
return bar(x)+1; // no-warning
}
int f1_b() {
int x;
return bar(x)+1; // ex... | Enable test file for 'region store' in addition to basic store. | Enable test file for 'region store' in addition to basic store.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@59762 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,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-cl... |
bcc883fed382acb90216a8158f6bf62329581194 | src/include/port/i386_solaris.h | src/include/port/i386_solaris.h | # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NO_EMPTY_STMTS
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#include <sys/isa_defs.h>
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
... | # define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NO_EMPTY_STMTS
# define SYSV_DIRENT
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
#include <sys/isa_defs.h>
#ifndef BIG_ENDIAN
#define BIG_ENDIAN 4321
#endif
#ifndef LITTLE_ENDIAN
#define LITTLE_ENDIAN 1234
#endif
#ifndef PDP_ENDIAN
... | Remove HAVE_USAGE because it is no longer used. | Remove HAVE_USAGE because it is no longer used.
| C | apache-2.0 | Chibin/gpdb,lintzc/gpdb,zaksoup/gpdb,randomtask1155/gpdb,adam8157/gpdb,Chibin/gpdb,CraigHarris/gpdb,Quikling/gpdb,tangp3/gpdb,zeroae/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,jmcatamney/gpdb,yazun/postgres-xl,rvs/gpdb,greenplum-db/gpdb,tpostgres-projects/tPostgres,tangp3/gpdb,chrishajas/gpdb,Chibin/gpdb,kaknikhil/gpdb,... |
3973eb1a7833ac3e96ff7738ef72b6bd6ce42685 | examples/debug-trans-socket/duk_trans_socket.h | examples/debug-trans-socket/duk_trans_socket.h | #if !defined(DUK_TRANS_SOCKET_H_INCLUDED)
#define DUK_TRANS_SOCKET_H_INCLUDED
#include "duktape.h"
void duk_trans_socket_init(void);
void duk_trans_socket_finish(void);
void duk_trans_socket_waitconn(void);
duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, duk_size_t length);
duk_size_t duk_trans_socket_... | #if !defined(DUK_TRANS_SOCKET_H_INCLUDED)
#define DUK_TRANS_SOCKET_H_INCLUDED
#include "duktape.h"
#if defined(__cplusplus)
extern "C" {
#endif
void duk_trans_socket_init(void);
void duk_trans_socket_finish(void);
void duk_trans_socket_waitconn(void);
duk_size_t duk_trans_socket_read_cb(void *udata, char *buffer, du... | Enable C++ support for socket debug transport | Enable C++ support for socket debug transport
| C | mit | svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape,svaarala/duktape |
e42dbed53ae145bd1b9b88c1903f0360904fea4e | include/llvm/Intrinsics.h | include/llvm/Intrinsics.h | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | //===-- llvm/Instrinsics.h - LLVM Intrinsic Function Handling ---*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... | Add a programatic interface to intrinsic names. | Add a programatic interface to intrinsic names.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@27107 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,dslab-epfl/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/ll... |
794450b5b7c744273aa1c8c6c920523a1f7b3801 | src/mfast/json/json.h | src/mfast/json/json.h | #ifndef JSON_H_H4Q7QTC4
#define JSON_H_H4Q7QTC4
#include "mfast_json_export.h"
#include "mfast.h"
#include <iostream>
namespace mfast
{
namespace json {
MFAST_JSON_EXPORT bool encode(std::ostream& os,
const ::mfast::aggregate_cref& msg,
... | #ifndef JSON_H_H4Q7QTC4
#define JSON_H_H4Q7QTC4
#include "mfast_json_export.h"
#include "mfast.h"
#include <iostream>
namespace mfast
{
namespace json {
MFAST_JSON_EXPORT bool encode(std::ostream& os,
const ::mfast::aggregate_cref& msg,
... | Fix a JSON sequence encode bug | Fix a JSON sequence encode bug
| C | bsd-3-clause | cuavas/mFAST,objectcomputing/mFAST,cuavas/mFAST,cuavas/mFAST,objectcomputing/mFAST |
24652d16f84e4fd605aaffdd5112a606be6c8074 | lib/Target/PowerPC/PPCMachineFunctionInfo.h | lib/Target/PowerPC/PPCMachineFunctionInfo.h | //===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | //===-- PPCMachineFunctionInfo.h - Private data used for PowerPC --*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by James M. Laskey and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===------------------... | Add newline at end of file. | Add newline at end of file.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@31902 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,llvm-mirror/llvm,... |
207820e858122666cbaa69801532258e5bfa6bce | ext/rubygame/rubygame_shared.h | ext/rubygame/rubygame_shared.h | /*
* Rubygame -- Ruby code and bindings to SDL to facilitate game creation
* Copyright (C) 2004-2007 John Croisant
*
* 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
* versi... | /*
* Rubygame -- Ruby code and bindings to SDL to facilitate game creation
* Copyright (C) 2004-2007 John Croisant
*
* 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
* versi... | Fix type conflict with min/max in shared. | Fix type conflict with min/max in shared.
| C | lgpl-2.1 | singpolyma/rubygame,rubygame/rubygame,Dami-coding/rubygame,singpolyma/rubygame,firstval/rubygame |
affce21f6503652363251b264dc23d66e0994926 | common_audio/signal_processing/cross_correlation.c | common_audio/signal_processing/cross_correlation.c | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | /*
* Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | Remove a cast again, after it was shown to worsen Windows perf. | Remove a cast again, after it was shown to worsen Windows perf.
This will hurt Linux x64 perf, but we think that's a compiler bug and we're
willing to take the hit for the better clarity of the code sans cast as well as
the better Windows perf. Hopefully eventually the compiler will improve.
BUG=504813
TEST=none
TBR... | C | bsd-3-clause | Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,Alkalyne/webrtctrunk,jchavanton/webrtc,Alkalyne/webrtctrunk,sippet/webrtc,aleonliao/webrtc-trunk,Alkalyne/webrtctrunk,jchavanton/webrtc,jchavanton/webrtc,sippet/webrtc,jchavanton/webrtc,jchavanton/webrtc,aleonliao/webrtc-trunk,sippet/... |
17aaf98c7a1db77947e28da9c407a094c2fcd64f | src/kernel.c | src/kernel.c | #include <rose/interrupts.h>
#include <rose/screen.h>
#include <rose/serial.h>
#include <rose/memory.h>
extern void protected_mode_start(void);
extern char end[];
void
kmain(void)
{
interrupts_disable();
screen_clear();
memory_init_gdt();
interrupts_init();
protected_mode_start();
serial_init... | #include <rose/console.h>
#include <rose/interrupts.h>
#include <rose/screen.h>
#include <rose/serial.h>
#include <rose/memory.h>
extern void protected_mode_start(void);
extern char end[];
void
kmain(void)
{
interrupts_disable();
screen_clear();
memory_init_gdt();
interrupts_init();
protected_mod... | Write hello message to console | Write hello message to console
| C | mit | hoelzro/rose-kernel,hoelzro/rose-kernel |
6c4710ca4fa04771c6d5d9422781430fc8f0ede6 | str/lstrip.c | str/lstrip.c | /* str/lstrip.c - Strip whitespace from the left of a string
* Copyright (C) 2001 Bruce Guenter <bruceg@em.ca>
*
* 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 2 of the Lic... | /* str/lstrip.c - Strip whitespace from the left of a string
* Copyright (C) 2001 Bruce Guenter <bruceg@em.ca>
*
* 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 2 of the Lic... | Use memmove instead of memcpy due to the fact that the strings will be overlapping. | Use memmove instead of memcpy due to the fact that the strings will be
overlapping.
| C | lgpl-2.1 | bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs,bruceg/bglibs |
b5cb1f3cbf4cf94304c931419bd707ca6e60edcf | Wikipedia/Code/WMFProxyServer.h | Wikipedia/Code/WMFProxyServer.h | #import <Foundation/Foundation.h>
@interface WMFProxyServer : NSObject
@property (nonatomic, readonly, getter=isRunning) BOOL running;
- (void)start;
+ (WMFProxyServer *)sharedProxyServer;
- (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's serv... | #import <Foundation/Foundation.h>
@interface WMFProxyServer : NSObject
@property (nonatomic, readonly, getter=isRunning) BOOL running;
- (void)start;
+ (WMFProxyServer *)sharedProxyServer;
- (NSString *)localFilePathForRelativeFilePath:(NSString *)relativeFilePath; //path for writing files to the file proxy's serv... | Add link to comment for api proxy method. | Add link to comment for api proxy method.
| C | mit | montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,josve05a/wikipedia-ios,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,montehurd/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wikipedia,julienbodet/wikipedia-ios,wikimedia/apps-ios-wik... |
3f6c9bff6c30791a0c7188733658aaf879ab86a1 | tests/full_semantic_errors.c | tests/full_semantic_errors.c |
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_arr... |
int global_a;
struct foo
{
// redefinition in struct declaration
int a;
int a;
float b;
};
// redefinition of foo
struct foo
{
float a;
int b;
};
// redefinition in function arguments
int a_func(int a, int a)
{
return 1;
}
int func(int c, int d, float f)
{
int b = 1;
float test_arr... | Add illegal member access and undefined function name error. | Add illegal member access and undefined function name error.
| C | mit | RyanWangGit/scc |
42f0093f5f5ed7d30b77b927966cb64025889811 | config.h | config.h | #ifndef CONFIG
#define CONFIG
#define VERSION 179
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision
//less than this number.
#define CURRENT_GVRET_VER 334
#endif // CONFIG
| #ifndef CONFIG
#define CONFIG
#define VERSION 180
//try to keep this in sync.
//SavvyCAN will complain if you connect a GVRET board with a revision
//less than this number.
#define CURRENT_GVRET_VER 343
#endif // CONFIG
| Update requested GVRET version to 343 which is where stable support for M2 and CANDue2.2 are found. | Update requested GVRET version to 343 which is where stable support
for M2 and CANDue2.2 are found.
| C | mit | collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN,collin80/SavvyCAN |
7711fe4d9cfcb73bc5b4b58ec2120f1863400f6b | test2/casts/rm_qual.c | test2/casts/rm_qual.c | // RUN: %check %s
struct A
{
int i;
};
int f(const void *p)
{
struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const)
struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/
(void)a;
(void)b;
}
| // RUN: %check %s
struct A
{
int i;
};
void take(void *);
int f(const void *p)
{
struct A *a = p; // CHECK: warning: implicit cast removes qualifiers (const)
struct A *b = (struct A *)p; // CHECK: !/warning:.*cast removes qualifiers/
(void)a;
(void)b;
const char c = 5;
take(&c); // CHECK: warning: implicit ... | Add another case to qualifier-removal test | Add another case to qualifier-removal test
| C | mit | 8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler,8l/ucc-c-compiler |
f1dc5b21241d0b16bb62f8ede6990476f87466d9 | src/main.h | src/main.h | #pragma once
#include <unistd.h>
#include <algorithm>
#include <cstdarg>
#include <exception>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <unordered_map>
#incl... | #pragma once
#include <unistd.h>
#include <algorithm>
#include <cstdarg>
#include <exception>
#include <functional>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <mutex>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <thread>
#include <tuple>
#include <uno... | Add <mutex> to the list of includes | Add <mutex> to the list of includes
| C | mit | ElementalAlchemist/RoBoBo,ElementalAlchemist/RoBoBo |
4be94c72d54a91d5b47b8b7fc5949160fd78c9d2 | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 1
#define CLIENT_VERSION_BUILD 0
// Convert... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 2
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 2
#define CLIENT_VERSION_BUILD 0
// Convert... | Set version for upcoming bugfix release | Set version for upcoming bugfix release
| C | mit | spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre,spectrecoin/spectre |
f6890fe5dbf709d7edc28413f8250f0077d2f006 | RISCOS/Modules/getpath_riscos.c | RISCOS/Modules/getpath_riscos.c | #include "Python.h"
#include "osdefs.h"
static char *prefix,*exec_prefix,*progpath,*module_search_path=0;
static void
calculate_path()
{ char *pypath=getenv("Python$Path");
if(pypath)
{ module_search_path=malloc(strlen(pypath)+1);
if (module_search_path) sprintf(module_search_path,"%s",pypath);
else
{... | #include "Python.h"
#include "osdefs.h"
static char *prefix, *exec_prefix, *progpath, *module_search_path=NULL;
static void
calculate_path()
{
char *pypath = getenv("Python$Path");
if (pypath) {
int pathlen = strlen(pypath);
module_search_path = malloc(pathlen + 1);
if (module_search_path)
strncpy(module... | Use strncpy() instead of sprintf() in calculate_path(). | Use strncpy() instead of sprintf() in calculate_path().
Also reformat calculate_path() using the standard format.
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
2855f6de3836d6e6c1ee7846851bc27930824d2b | src/event.h | src/event.h | #define JLOG LOG
#define HLOG(D_msg) JLOG("HNDL: " << D_msg)
enum class EventType
{
Trigger,
Disconnect
};
inline std::string toString(EventType type)
{
switch (type)
{
case EventType::Trigger:
return "trigger";
case EventType::Disconnect:
return "disconnect";
... | #define JLOG LOG
#define HLOG(D_msg) JLOG("HNDL: " << D_msg)
enum class EventType
{
Trigger,
Disconnect
};
inline std::string toString(EventType type)
{
switch (type)
{
case EventType::Trigger:
return "trigger";
case EventType::Disconnect:
return "disconnect";
... | Add handlers to the common list | Add handlers to the common list
| C | apache-2.0 | gridem/DAVE |
db02329581ccd65614b1d81c9b121debb1e8e22e | src/fake-lock-screen-pattern.h | src/fake-lock-screen-pattern.h | #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLock... | #ifndef _FAKE_LOCK_SCREEN_PATTERN_H_
#define _FAKE_LOCK_SCREEN_PATTERN_H_
#include <gtk/gtk.h>
#if !GTK_CHECK_VERSION(3, 0, 0)
typedef struct {
gdouble red;
gdouble green;
gdouble blue;
gdouble alpha;
} GdkRGBA;
#endif
typedef struct _FakeLockOption {
void *module;
gchar *real;
gchar *dummy;
} FakeLock... | Add enum to distinct pattern | Add enum to distinct pattern
| C | mit | kenhys/fake-lock-screen-pattern,kenhys/fake-lock-screen-pattern |
11c7bdb4e410102af298943526a48fffa9a9eb19 | src/include/strdup.h | src/include/strdup.h | /* This is the prototype for the strdup() function which is distributed
with Postgres. That strdup() is only needed on those systems that
don't already have strdup() in their system libraries.
The Postgres strdup() is in src/utils/strdup.c.
*/
extern char *strdup(char const *);
| /* This is the prototype for the strdup() function which is distributed
with Postgres. That strdup() is only needed on those systems that
don't already have strdup() in their system libraries.
The Postgres strdup() is in src/port/strdup.c.
*/
extern char *strdup(char const *);
| Fix an obsolete file path mentioned in a comment. | Fix an obsolete file path mentioned in a comment.
| C | mpl-2.0 | techdragon/Postgres-XL,ovr/postgres-xl,kmjungersen/PostgresXL,techdragon/Postgres-XL,adam8157/gpdb,zeroae/postgres-xl,oberstet/postgres-xl,rubikloud/gpdb,yazun/postgres-xl,janebeckman/gpdb,lintzc/gpdb,edespino/gpdb,cjcjameson/gpdb,chrishajas/gpdb,edespino/gpdb,royc1/gpdb,rvs/gpdb,snaga/postgres-xl,lisakowen/gpdb,CraigH... |
5a3d7873993eb4c6f4e4d650e2b46b0d403fecd3 | kernel/core/main.c | kernel/core/main.c | #include <truth/panic.h>
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/slab.h>
#include <truth/heap.h>
#include <truth/physical_allocator.h>
string Logo = str("\n"
" _.-.\n"
" .-. `) | .-.\n"
" _.'`. .... | #include <truth/panic.h>
#include <truth/cpu.h>
#include <truth/types.h>
#include <truth/log.h>
#include <truth/slab.h>
#include <truth/heap.h>
#include <truth/physical_allocator.h>
string Logo = str("\n"
" _.-.\n"
" .-. `) | .-.\n"
" _.'`. .... | Print CPU time in splash screen | Print CPU time in splash screen
| C | mit | iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth,iankronquist/kernel-of-truth |
6aba02ecbbacb85918853ed86fea114138945643 | atom/common/common_message_generator.h | atom/common/common_message_generator.h | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#i... | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// Multiply-included file, no traditional include guard.
#include "atom/common/api/api_messages.h"
#include "chrome/common/print_messages.h"
#include "chrome/common/tts_messages.h"
#i... | Fix linking problem with IPC::MessageT | Fix linking problem with IPC::MessageT
IPC::MessageT<ChromeUtilityHostMsg_ProcessStarted_Meta, std::__1::tuple<>, void>::MessageT(IPC::Routing)
| C | mit | Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron,Floato/electron |
8c39774323a9f462dd513032c5d84a43af3d5a89 | ActionLog/scripts/specific-action-log/newIssueGroup.c | ActionLog/scripts/specific-action-log/newIssueGroup.c | specific action log: newIssueGroup
#
Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ]
#
Go to Layout [ “IssuesAndObservations Copy” (issue) ]
#
New Record/Request
Set Field [ issue::lock; "location" ]
Set Field [ issue::_keyBrainstate; $brainstate ]
#
Set Variable [ $group; Value:issue::_LockList ]
#
Go... | specific action log: newIssueGroup
#
Set Variable [ $brainstate; Value:brainstate::_lockBrainstateID ]
#
Go to Layout [ “IssuesAndObservations Copy” (issue) ]
#
New Record/Request
Set Field [ issue::lock; "location" ]
Set Field [ issue::_keyBrainstate; $brainstate ]
#
Set Variable [ $group; Value:issue::_LockList ]
#
Go... | Fix logic loop in script | Fix logic loop in script
Fix logic loop in script attached to button [Specific Action Tag 47] so
it exists after reaching last item.
| C | apache-2.0 | HelpGiveThanks/ActionLog,HelpGiveThanks/ActionLog |
81ce26a410a2bcd751f40022d78e20c95bf7b60e | test/FrontendC/ARM/inline-asm-multichar.c | test/FrontendC/ARM/inline-asm-multichar.c | // RUN: %llvmgcc -S -march=armv7a %s
// XFAIL: *
// XTARGET: arm
int t1() {
static float k = 1.0f;
CHECK: call void asm sideeffect "flds s15, $0 \0A", "*^Uv,~{s15}"
__asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15");
return 0;
}
| // RUN: %llvmgcc -S -march=armv7a %s | FileCheck %s
// XFAIL: *
// XTARGET: arm
int t1() {
static float k = 1.0f;
// CHECK: "flds s15, $0 \0A", "*^Uv,~{s15}"
__asm__ volatile ("flds s15, %[k] \n" :: [k] "Uv,m" (k) : "s15");
return 0;
}
| Fix this test to actually check something and be able to be compiled. | Fix this test to actually check something and be able to be compiled.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@133952 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,dslab-epfl/asap,chubbymaggie/asap,dslab-epfl/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drive... |
9eb00b97c35261d4bcd2f0a6ec66c0ac2cc4d196 | compat/compat.h | compat/compat.h | #ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef HAVE_STRTONUM
#include "strtonum.h"
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
i... | #ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef HAVE_STRTONUM
#include "strtonum.h"
#endif
/* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp... | Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available. | Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
| C | bsd-2-clause | fcambus/logswan,fcambus/logswan |
1a8820a34f7405743ce0376d63a66694bfd533af | ports/gtk-webkit/next-gtk-webkit.c | ports/gtk-webkit/next-gtk-webkit.c | /*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port... | /*
Copyright © 2018-2019 Atlas Engineer LLC.
Use of this file is governed by the license that can be found in LICENSE.
*/
#include <gtk/gtk.h>
#include <stdlib.h>
#include "server.h"
static void on_name_acquired(GDBusConnection *connection,
const gchar *name,
gpointer user_data) {
g_message("Starting platform port... | Fix crash when hardware acceleration is disabled. | ports/gtk-webkit: Fix crash when hardware acceleration is disabled.
| C | bsd-3-clause | jmercouris/NeXT,jmercouris/NeXT |
ec2da88354ef61aa2020c666cf6ccf72ac3e619a | JPEGReadWriter2Plugin/Error.c | JPEGReadWriter2Plugin/Error.c | #include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2 * error_ptr2;
/*
* Here's the routine that will replace the standard error_exit method:
*/
void error... | #include <stdio.h>
#include "jpeglib.h"
#include <setjmp.h>
struct error_mgr2 {
struct jpeg_error_mgr pub; /* "public" fields */
jmp_buf setjmp_buffer; /* for return to caller */
};
typedef struct error_mgr2 * error_ptr2;
/*
* Here's the routine that will replace the standard error_exit method:
*/
void error... | Remove nasty character at end of file that prevents compiles | Remove nasty character at end of file that prevents compiles
git-svn-id: 5c8b60fcb9320cccfd2f497bdea85b37ac3f2028@72 fa1542d4-bde8-0310-ad64-8ed1123d492a
| C | mit | bencoman/pharo-vm,guillep/OzVM,ronsaldo/pharo-vm-lowcode,ronsaldo/pharo-raspberry,peteruhnak/pharo-vm,zecke/old-pharo-vm-sctp,ronsaldo/pharo-raspberry,takano32/pharo-vm,takano32/pharo-vm,ronsaldo/pharo-vm-lowcode,zecke/old-pharo-vm-sctp,philippeback/pharo-vm,peteruhnak/pharo-vm,bencoman/pharo-vm,takano32/pharo-vm,zecke... |
e4d0eac063b91386fc309c1766149aadaa940449 | MKCommons/MKUIThemeProtocol.h | MKCommons/MKUIThemeProtocol.h | //
// Created by Michael Kuck on 8/20/14.
// Copyright (c) 2014 Michael Kuck. All rights reserved.
//
#import <Foundation/Foundation.h>
//============================================================
//== MKUITheme protocol
//============================================================
@protocol MKUIThemeProtocol<NSOb... | //
// Created by Michael Kuck on 8/20/14.
// Copyright (c) 2014 Michael Kuck. All rights reserved.
//
#import <Foundation/Foundation.h>
//============================================================
//== MKUITheme protocol
//============================================================
@protocol MKUIThemeProtocol<NSOb... | Extend UIThemeProtocol with padding/inset sizes | Extend UIThemeProtocol with padding/inset sizes
| C | mit | mikumi/mkcommons-obj |
7ea1cb0d03e30bf5fc0880fe2c10ca9f9bd766be | src/flags.c | src/flags.c | #include "flags.h"
#include <stdio.h>
#include "laco.h"
#include "util.h"
static const char* version_matches[] = {"-v", "--version", NULL};
static const char* help_matches[] = {"-h", "--help", NULL};
/* Print off the current version of laco */
static void handle_version(LacoState* laco, const char** arguments) {... | #include "flags.h"
#include <stdio.h>
#include "laco.h"
#include "util.h"
static const char* version_matches[] = {"-v", "--version", NULL};
static const char* help_matches[] = {"-h", "--help", NULL};
/* Print off the current version of laco */
static void handle_version(LacoState* laco, const char** arguments) {... | Change flag separation from `|` to `,` | Change flag separation from `|` to `,`
| C | bsd-2-clause | sourrust/laco |
f79ad5f49198dd251501dae66fe5c594842583e8 | test/PCH/reloc.c | test/PCH/reloc.c | // RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot `pwd`/libroot `pwd`/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot `pwd`/libroot %s -verify
// FIXME (test harness can't do this?): not clang-cc -include-pch %t %s
#include <reloc.h>
int x = 2; // expected-error{{redefinition}}
in... | // RUN: clang-cc -emit-pch -o %t --relocatable-pch -isysroot %S/libroot %S/libroot/usr/include/reloc.h &&
// RUN: clang-cc -include-pch %t -isysroot %S/libroot %s -verify &&
// RUN: not clang-cc -include-pch %t %s
#include <reloc.h>
int x = 2; // expected-error{{redefinition}}
int y = 5; // expected-error{{redefiniti... | Use %S, not `pwd`, and enable a line that *does* work. - Doug, please check. | Use %S, not `pwd`, and enable a line that *does* work.
- Doug, please check.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@77778 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/cl... |
c5f766b9b116c7bcdb2e7ece1ca1802327376778 | src/zcash/Zcash.h | src/zcash/Zcash.h | #ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 20
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 128
#... | #ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 128
#... | Change merkle tree depth to 29. | Change merkle tree depth to 29.
| C | mit | bitcoinsSG/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,aniemerg/zcash,bitcoinsSG/zcash,bitcoinsSG/zcash,aniemerg/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTR... |
b608152c41f235a0bf4ffd9db21d954bada3ceea | atom/common/chrome_version.h | atom/common/chrome_version.h | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// This file is generated by script/bootstrap.py, you should never modify it
// by hand.
#ifndef ATOM_COMMON_CHROME_VERSION_H_
#define ATOM_COMMON_CHROME_VERSION_H_
#define CHROME_VE... | // Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
// This file is generated by script/bootstrap.py, you should never modify it
// by hand.
#ifndef ATOM_COMMON_CHROME_VERSION_H_
#define ATOM_COMMON_CHROME_VERSION_H_
#define CHROME_VE... | Update Chrome version to 63.0.3239.84 | Update Chrome version to 63.0.3239.84
| C | mit | bpasero/electron,electron/electron,shiftkey/electron,shiftkey/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,shiftkey/electron,bpasero/electron,electron/electron,electron/electron,seanchas116/electron,seanchas116/electron,the-ress/electron,gerhardberger/electr... |
efbf667dd43005cc46c83097ee19499f57be14af | src/lib/blockdev.h | src/lib/blockdev.h | #include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean replace);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin plugin);
#endif /* BD_LIB */
| #include <glib.h>
#ifndef BD_LIB
#define BD_LIB
#include "plugins.h"
gboolean bd_init (BDPluginSpec *force_plugins);
gboolean bd_reinit (BDPluginSpec *force_plugins, gboolean reload);
gchar** bd_get_available_plugin_names ();
gboolean bd_is_plugin_available (BDPlugin plugin);
#endif /* BD_LIB */
| Fix name of the paramenter for requesting plugin reload | Fix name of the paramenter for requesting plugin reload
'reload' better explains what happens than 'replace'.
| C | lgpl-2.1 | vpodzime/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,snbueno/libblockdev,dashea/libblockdev,vpodzime/libblockdev,rhinstaller/libblockdev,atodorov/libblockdev,rhinstaller/libblockdev,dashea/libblockdev,atodorov/libblockdev,snbueno/libblockdev,atodorov/libblockdev |
7d95d1ae451ed247f4c25f2b21cd2d5ff37046c9 | Sources/Rumia/Iterator.h | Sources/Rumia/Iterator.h | #pragma once
namespace Rumia
{
template<typename Ty, typename ContainerTy>
class Iterator
{
public:
using DataType = Ty;
using ContainerType = ContainerTy;
public:
Iterator( ContainerType& container ) : m_container( container )
{
}
virtual ~Iterator... | #pragma once
namespace Rumia
{
template<typename Ty, typename ContainerTy>
class Iterator
{
public:
using DataType = Ty;
using ContainerType = ContainerTy;
public:
Iterator( ContainerType& container ) : m_container( container )
{
}
virtual ~Iterator... | Delete non-const reference operator pure virtual function | Delete non-const reference operator pure virtual function
| C | mit | HoRangDev/Rumia,HoRangDev/Rumia |
bb072543fdf3b2954715351399ad29ff5c4d74d0 | hw3/syscall/accomodate_space.c | hw3/syscall/accomodate_space.c | #include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
int main( int argc, char *argv[] ){
int *pointer;
int i;
pointer = (int*)malloc(sizeof(int)*1337);
//Declare 5 arrays of 'char' variables
char *space0, *space1, *space2, *space3, *space4;
//Accomodate some (random) space for them
space0 = (char*) mal... | #include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<time.h>
int main( int argc, char *argv[] ){
int *pointer;
int i;
pointer = (int*)malloc(sizeof(int)*1337);
//Declare 5 arrays of 'char' variables
char *space0, *space1, *space2, *space3, *space4;
clock_t begin = clock();
//Accomodate some (r... | Test Program that accomodates space now returns the time spent | Test Program that accomodates space now returns the time spent
| C | mit | eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems,eloukas/Operating-Systems |
526d5c80f57093bcfe5d294c3b48e7fd395b272b | timeout_getaline.c | timeout_getaline.c | #include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
#include <unistd.h>
static jmp_buf to;
static RETSIGTYPE
timer(int sig)
{
(void)sig;
siglongjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * f, ... | #include "leafnode.h"
#include "ln_log.h"
#include <signal.h>
#include <setjmp.h>
#ifdef WITH_DMALLOC
#include <dmalloc.h>
#endif
#include <unistd.h>
static sigjmp_buf to;
static RETSIGTYPE
timer(int sig)
{
(void)sig;
siglongjmp(to, 1);
}
/*
* call getaline with timeout
*/
char *
timeout_getaline(FILE * ... | Fix type: jmp_buf -> sigjmp_buf. | Fix type: jmp_buf -> sigjmp_buf. | C | lgpl-2.1 | BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode,BackupTheBerlios/leafnode |
112bb84c8ea50a4e5a415723906ea314a4cd374a | transmitter/comm.h | transmitter/comm.h | #ifndef COMM_H_
#define COMM_H_
#define COMM_BUFFER_LEN 3
typedef struct{
uint8_t key;
uint16_t val;
}
comm_t;
// Buffer messages to sent to the monitor
comm_t comm_buffer[COMM_BUFFER_LEN];
unsigned char comm_head;
unsigned char comm_tail;
/**
* Push an element onto the end of the buffer.
*/
void comm_push(c... | #ifndef COMM_H_
#define COMM_H_
#define COMM_BUFFER_LEN 4
typedef struct{
uint8_t key;
uint16_t val;
}
comm_t;
// Buffer messages to sent to the monitor
comm_t comm_buffer[COMM_BUFFER_LEN];
unsigned char comm_head;
unsigned char comm_tail;
/**
* Push an element onto the end of the buffer.
*/
void comm_push(c... | Make the buffer a little larger | Make the buffer a little larger
| C | mit | theapi/quadcopter |
2ee6ed64ebc9875b2aa143b52a6dac2590cbe569 | src/zcash/Zcash.h | src/zcash/Zcash.h | #ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 512
#... | #ifndef _ZCCONSTANTS_H_
#define _ZCCONSTANTS_H_
#define ZC_NUM_JS_INPUTS 2
#define ZC_NUM_JS_OUTPUTS 2
#define INCREMENTAL_MERKLE_TREE_DEPTH 29
#define INCREMENTAL_MERKLE_TREE_DEPTH_TESTING 4
#define ZC_NOTEPLAINTEXT_LEADING 1
#define ZC_V_SIZE 8
#define ZC_RHO_SIZE 32
#define ZC_R_SIZE 32
#define ZC_MEMO_SIZE 512
#... | Add parenthesis around macro value definition | Add parenthesis around macro value definition | C | mit | bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash,CTRoundTable/Encrypted.Cash,bitcoinsSG/zcash,CTRoundTable/Encrypted.Cash |
9d91e7e87b791e281f07d5a19117b1ebc7a6ec73 | compat/compat.h | compat/compat.h | #ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
(vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
if ((vsp)->tv_nsec < 0) { \
(vsp)->tv_sec--; ... | #ifndef COMPAT_H
#define COMPAT_H
#ifndef HAVE_PLEDGE
#include "pledge.h"
#endif
/* Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available */
#ifndef CLOCK_MONOTONIC
#define CLOCK_MONOTONIC CLOCK_REALTIME
#endif
#ifndef timespecsub
#define timespecsub(tsp, usp, vsp) \
do { \
(vsp)->tv_sec = (tsp)->tv_s... | Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available. | Use CLOCK_REALTIME if CLOCK_MONOTONIC is not available.
| C | bsd-2-clause | fcambus/statzone |
495efcbb59a71a305b9036da895b4651f6b3d72c | cpp/EXGL.h | cpp/EXGL.h | #ifndef __EXGL_H__
#define __EXGL_H__
#include <OpenGLES/ES2/gl.h>
#include <JavaScriptCore/JSBase.h>
#ifdef __cplusplus
extern "C" {
#endif
// Identifies an EXGL context. No EXGL context has the id 0, so that can be
// used as a 'null' value.
typedef unsigned int EXGLContextId;
// [JS thread] Create an EXGL cont... | #ifndef __EXGL_H__
#define __EXGL_H__
#include <OpenGLES/ES2/gl.h>
#include <JavaScriptCore/JSBase.h>
#ifdef __cplusplus
extern "C" {
#endif
// Identifies an EXGL context. No EXGL context has the id 0, so that can be
// used as a 'null' value.
typedef unsigned int EXGLContextId;
// [JS thread] Create an EXGL cont... | Clarify need for custom default framebuffer | Clarify need for custom default framebuffer
fbshipit-source-id: 40e157b
| C | bsd-3-clause | exponentjs/exponent,exponentjs/exponent,exponent/exponent,jolicloud/exponent,jolicloud/exponent,exponent/exponent,exponent/exponent,exponentjs/exponent,exponent/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,jolicloud/exponent,exponentjs/exponent,exponentjs/exponent,jolicloud/exponent,exponent/expo... |
51f20f3dfcb48b12e1b20737e40ef035076f9461 | WordPerfectIndexer/stdafx.h | WordPerfectIndexer/stdafx.h | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef STRICT
#define STRICT
#endif
#include "targetver.h"
#define _CRT_SECURE_NO_WARNINGS
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOM... | // stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently
#pragma once
#ifndef STRICT
#define STRICT
#endif
#include "targetver.h"
#define _CRT_SECURE_NO_WARNINGS
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_AUTOM... | Swap out header in precompiled header file | Swap out header in precompiled header file
| C | mpl-2.0 | SunburstApps/WordPerfectIndexer,SunburstApps/WordPerfectIndexer |
1798b679e24088f17763729158cfd103e0270a06 | lib/libgnumalloc/cfree.c | lib/libgnumalloc/cfree.c | void
cfree(void *foo)
{
free(foo);
}
| /*
* cfree.c
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
void
cfree(void *foo)
{
free(foo);
}
| Add __FBSDID()s to internal libgnumalloc() | Add __FBSDID()s to internal libgnumalloc()
| C | bsd-3-clause | jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase |
06e77b29734b000098ec29bf642a15bb523e180e | psimpl-c.h | psimpl-c.h | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
psimpl-c
Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com>
Based on psimpl
Copyright ... | /* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/*
psimpl-c
Copyright (c) 2013 Jamie Bullock <jamie@jamiebullock.com>
Based on psimpl
Copyright ... | Update API to only support 1, 2 or 3 dimensional lines | Update API to only support 1, 2 or 3 dimensional lines
| C | mpl-2.0 | jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c,jamiebullock/psimpl-c |
5e35dc73b64ddcb393f291139a394007f6ebb166 | include/ATM.h | include/ATM.h | #pragma once
/* Customer Structure */
typedef struct customer {
char name[25]; // Customer's name
long int accnum; // Customer's Account Number
long int balance; // Customer's Balance
long long int ccn; // Customer's CCN
short int pin; // Customer's PIN
} customer;
/* Current Logged In Custom... | #pragma once
/* Customer Structure */
typedef struct customer {
char name[25]; // Customer's name
long int accnum; // Customer's Account Number
long int balance; // Customer's Balance
long long int ccn; // Customer's CCN
short int pin; // Customer's PIN
} customer;
/* Current Logged In Custom... | Fix declaration of welcome message! | Fix declaration of welcome message!
| C | mit | saifali96/ATM-Simulator,saifali96/ATM-Simulator |
d7bcc60432296b0b573194926f8a7d4164517b02 | imageprocessingstrategy.h | imageprocessingstrategy.h | #ifndef IMAGEPROCESSINGSTRATEGY_H
#define IMAGEPROCESSINGSTRATEGY_H
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/ocl/ocl.hpp"
#include "constants.h"
#include "qdebug.h"
using namespace std;
using namespace cv;
class ImageProcessingStrategy
{
public:
ImageProcess... | #ifndef IMAGEPROCESSINGSTRATEGY_H
#define IMAGEPROCESSINGSTRATEGY_H
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/gpu/gpu.hpp"
#include "constants.h"
#include "qdebug.h"
using namespace std;
using namespace cv;
class ImageProcessingStrategy
{
public:
ImageProcess... | Fix cuda incomplete type issue | Fix cuda incomplete type issue
| C | mit | emmamm05/parkeye,emmamm05/parkeye,emmamm05/parkeye |
2ddb08c1f7f69a3d7da1820d40fd32910a37c617 | include/timers.h | include/timers.h | /*************************************************
* Timestamp Functions Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_TIMERS_H__
#define BOTAN_TIMERS_H__
#include <botan/base.h>
namespace Botan {
/*******************... | /*************************************************
* Timestamp Functions Header File *
* (C) 1999-2007 Jack Lloyd *
*************************************************/
#ifndef BOTAN_TIMERS_H__
#define BOTAN_TIMERS_H__
#include <botan/base.h>
namespace Botan {
/*******************... | Add BOTAN_DLL to Timer class declaration | Add BOTAN_DLL to Timer class declaration
| C | bsd-2-clause | Rohde-Schwarz-Cybersecurity/botan,randombit/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,randombit/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,randombit/botan,webmaster128/botan,randombit/botan,webmaster1... |
afca1b7a6a332d667bf9f92a0402a51af1a51ff6 | test/tests.c | test/tests.c | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include "../src/rootdb.h"
int main(void)
{
MDB_env *env;
MDB_dbi dbi;
int status;
status = rootdb_open(&env, &dbi, "./testingdb");
assert(status == 0);
char key_char[] = "hello";
char value_char[] = "world";
MDB_val key;
MDB_val value;
... | #include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <string.h>
#include "../src/rootdb.h"
int main(void)
{
MDB_env *env;
MDB_dbi dbi;
int status;
status = rootdb_open(&env, &dbi, "./testingdb");
assert(status == 0);
char key_char[] = "hello";
char value_char[] = "world";
MDB_val key;
... | Add assertion for value in get/put test | Add assertion for value in get/put test
| C | mit | braydonf/rootdb,braydonf/rootdb,braydonf/rootdb |
509a2f29b962ea555660743a485f97b1dacbaf1d | tmcd/decls.h | tmcd/decls.h | /*
* Insert Copyright Here.
*/
#ifdef LBS
#define MASTERNODE "206.163.153.25"
#else
#define MASTERNODE "boss.emulab.net"
#endif
#define TBSERVER_PORT 7777
#define MYBUFSIZE 1024
| /*
* Insert Copyright Here.
*/
#ifdef LBS
#define MASTERNODE "192.168.1.25"
#else
#define MASTERNODE "boss.emulab.net"
#endif
#define TBSERVER_PORT 7777
#define MYBUFSIZE 1024
| Change the IP of my home machine for testing. | Change the IP of my home machine for testing.
| C | agpl-3.0 | nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome,nmc-probe/emulab-nome |
521c91c3b5ec34462ae0202d61ab029a86d5bca8 | lib/uart.h | lib/uart.h | /**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
static inline void uart_enable(void) {
UBRR0H = BAUDRATE >> 8;
UBR... | /**
* This is used to setup the UART device on an AVR unit.
*/
#pragma once
#ifdef __cplusplus
extern "C" {
#endif
#include <avr/io.h>
#ifndef BAUD
# define BAUD 9600
# warning BAUD rate not set. Setting BAUD rate to 9600.
#endif // BAUD
#define BAUDRATE ((F_CPU)/(BAUD*16UL)-1)
/**
* @brief Enables the UART... | Add some comments, clean up the code, and add extern "C". | Add some comments, clean up the code, and add extern "C".
| C | mpl-2.0 | grimwm/avr,grimwm/avr,grimwm/avr,grimwm/avr |
584110ed44810e40f029e985612acdb421d504b3 | LYPopView/Classes/PopView.h | LYPopView/Classes/PopView.h | //
// PopView.h
// LYPOPVIEW
//
// CREATED BY LUO YU ON 19/12/2016.
// COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED.
//
#ifndef PopView_h
#define PopView_h
#import <LYPopView/LYPopView.h>
#import <LYPopView/LYPopMessage.h>
#import <LYPopView/LYPopTable.h>
#import <LYPopView/LYPopActionView.h>
#endif /* PopView_h... | //
// PopView.h
// LYPOPVIEW
//
// CREATED BY LUO YU ON 19/12/2016.
// COPYRIGHT © 2016 LUO YU. ALL RIGHTS RESERVED.
//
#ifndef PopView_h
#define PopView_h
#import <LYPopView/LYPopView.h>
#import <LYPopView/LYPopMessage.h>
#import <LYPopView/LYPopTable.h>
#import <LYPopView/LYPopDate.h>
#import <LYPopView/LYPopAc... | Add : date picker pop view importer | Add : date picker pop view importer
| C | mit | blodely/LYPopView,blodely/LYPopView |
41e95da32afb7457e28427975e4fc07ca218ddc1 | src/laco.h | src/laco.h | #ifndef __LACO_H
#define __LACO_H
struct lua_State;
/* State of laco REPL */
struct LacoState {
struct lua_State* L;
const char* version;
int argc;
const char** argv;
int status;
};
/**
* Initilazation of laco's state
*
* param pointer to LacoState
* param argument count (argc)
* p... | #ifndef __LACO_H
#define __LACO_H
struct lua_State;
/* State of laco REPL */
struct LacoState {
struct lua_State* L;
const char* version;
int argc;
const char** argv;
int status;
};
typedef struct LacoState LacoState;
/**
* Initilazation of laco's state
*
* param pointer to LacoState
* para... | Add typedef of LacoState in header | Add typedef of LacoState in header
This is so the code base isn't littered with `typedef struct LacoState
LacoState`.
| C | bsd-2-clause | sourrust/laco |
7fc441ff876199bae81d250f10f931138f9be1bf | 7segments.c | 7segments.c | main(int u,char**a){for(;u<129;u*=8)for(char*c=a[1],y;*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);} | main(int u,char**a){for(char*c,y;y=u;u*=8)for(c=a[1];*c;)printf("%c%c%c%c",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32,*c?32:10);} | Save one more byte by casting loop counter u to a char | Save one more byte by casting loop counter u to a char
| C | mit | McZonk/7segements,McZonk/7segements |
176b88ed92daa22bd561e61a53f5a7a4866ca81e | alura/c/adivinhacao.c | alura/c/adivinhacao.c | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | #include <stdio.h>
int main() {
// imprime o cabecalho do nosso jogo
printf("******************************************\n");
printf("* Bem vindo ao nosso jogo de adivinhação *\n");
printf("******************************************\n");
int numerosecreto = 42;
int chute;
printf("Qual é o seu chute? "... | Update files, Alura, Introdução a C, Aula 2.3 | Update files, Alura, Introdução a C, Aula 2.3
| C | mit | fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs,fabriciofmsilva/labs |
fac6dbb6292944a258dee1b726df16c78c2d0c90 | src/lib/utils/rounding.h | src/lib/utils/rounding.h | /*
* Integer Rounding Functions
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_ROUNDING_H_
#define BOTAN_ROUNDING_H_
#include <botan/types.h>
namespace Botan {
/**
* Round up
* @param n a non-negative integer
* @param align_to the alignment bound... | /*
* Integer Rounding Functions
* (C) 1999-2007 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#ifndef BOTAN_ROUNDING_H_
#define BOTAN_ROUNDING_H_
#include <botan/types.h>
namespace Botan {
/**
* Round up
* @param n a non-negative integer
* @param align_to the alignment bound... | Remove clamp, which was unused | Remove clamp, which was unused
(And replaced by the std:: version in C++17 if we did need it)
| C | bsd-2-clause | randombit/botan,randombit/botan,randombit/botan,randombit/botan,randombit/botan |
0e3d9a4ce3640f5935e3f17b043497fdaf305c01 | Braintree/3D-Secure/@Public/Braintree-3D-Secure.h | Braintree/3D-Secure/@Public/Braintree-3D-Secure.h | // All-in-one import for Braintree 3D Secure
#import <Braintree/BTThreeDSecure.h> | // All-in-one import for Braintree 3D Secure
#import <Braintree/BTThreeDSecure.h>
| Add a new line to end of file | Add a new line to end of file
| C | mit | bytemarkinc/braintree_ios,bytemarkinc/braintree_ios,Feverup/braintree_ios,apascual/braintree_ios,apascual/braintree_ios,TeachersPayTeachers/braintree_ios,TeachersPayTeachers/braintree_ios,billCTG/braintree_ios,TeachersPayTeachers/braintree_ios,EverettQuebral/braintree_ios,Feverup/braintree_ios,billCTG/braintree_ios,Eve... |
ee5bc070ec0ce0f231cd1cf9728d83f80c076ff7 | CocoaControls/CocoaControls/RSCCControlCellView.h | CocoaControls/CocoaControls/RSCCControlCellView.h | //
// RSCCControlCellView.h
// CocoaControls
//
// Created by R0CKSTAR on 14-5-5.
// Copyright (c) 2014年 P.D.Q. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern int const RSCCControlCellViewImageButtonTagBase;
extern int const RSCCControlCellViewCocoaPodsButtonTagBase;
extern int const RSCCControlCellViewCl... | //
// RSCCControlCellView.h
// CocoaControls
//
// Created by R0CKSTAR on 14-5-5.
// Copyright (c) 2014年 P.D.Q. All rights reserved.
//
#import <Cocoa/Cocoa.h>
extern int const RSCCControlCellViewImageButtonTagBase;
extern int const RSCCControlCellViewCocoaPodsButtonTagBase;
extern int const RSCCControlCellViewCl... | Change nonatomic, weak to assign for all IBOutlets | Change nonatomic, weak to assign for all IBOutlets
| C | mit | yeahdongcn/CocoaControlsPlugin |
fef701f7b0975c523cbe5a2e8e9730328a9f071a | core/base/inc/TThreadSlots.h | core/base/inc/TThreadSlots.h | // @(#)root/thread:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | // @(#)root/base:$Id$
// Author: Philippe Canal 09/30/2011
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... | Fix module loc. Add missing final newline. | Fix module loc.
Add missing final newline.
git-svn-id: acec3fd5b7ea1eb9e79d6329d318e8118ee2e14f@41534 27541ba8-7e3a-0410-8455-c3a389f83636
| C | lgpl-2.1 | esakellari/my_root_for_test,krafczyk/root,buuck/root,sbinet/cxx-root,vukasinmilosevic/root,esakellari/my_root_for_test,sawenzel/root,Duraznos/root,gganis/root,sawenzel/root,CristinaCristescu/root,agarciamontoro/root,esakellari/my_root_for_test,dfunke/root,arch1tect0r/root,davidlt/root,abhinavmoudgil95/root,krafczyk/roo... |
37fb2148f2634989191e5770f3a2eabd93d3a3c7 | lilthumb.h | lilthumb.h | #ifndef lilthumb
#define lilthumb
#include <ctime>
#include <ostream>
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);
re... | #ifndef lilthumb
#define lilthumb
#include <ctime>
#include <ostream>
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);
re... | Add a n-tuple vector logging function | Add a n-tuple vector logging function
| C | apache-2.0 | jeromevelut/lilthumb |
b5f6cbbacfbb7a24599912e77c349f4ac1101c8f | High_Temp.h | High_Temp.h | /*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
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 Lice... | /*
High_Temp.h
2014 Copyright (c) Seeed Technology Inc. All right reserved.
Loovee
2013-4-14
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 Lice... | Add virtual decl to getAnalog to enable overloading | Add virtual decl to getAnalog to enable overloading
| C | mit | mhaas/Grove_HighTemp_Sensor |
0c15a524c532c1006a7bd36d3a680f8e8b8db9fc | src/include/pg_getopt.h | src/include/pg_getopt.h | /*
* Portions Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group
*
* src/include/pg_getopt.h
*/
#ifndef PG_GETOPT_H
#define PG_GETOPT_H
/* POSIX says getopt() is provided by unistd.h */
#in... | /*
* Portions Copyright (c) 1987, 1993, 1994
* The Regents of the University of California. All rights reserved.
*
* Portions Copyright (c) 2003-2014, PostgreSQL Global Development Group
*
* src/include/pg_getopt.h
*/
#ifndef PG_GETOPT_H
#define PG_GETOPT_H
/* POSIX says getopt() is provided by unistd.h */
#in... | Allow for platforms that have optreset but not <getopt.h>. | Allow for platforms that have optreset but not <getopt.h>.
Reportedly, some versions of mingw are like that, and it seems plausible
in general that older platforms might be that way. However, we'd
determined experimentally that just doing "extern int" conflicts with
the way Cygwin declares these variables, so explici... | C | mpl-2.0 | Postgres-XL/Postgres-XL,yazun/postgres-xl,techdragon/Postgres-XL,50wu/gpdb,Postgres-XL/Postgres-XL,pavanvd/postgres-xl,xinzweb/gpdb,50wu/gpdb,techdragon/Postgres-XL,jmcatamney/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,50wu/gpdb,oberstet/postgres-xl,techdragon/Postgres-X... |
a15f0d5910d660ab8cd5c9d98316115c88e16713 | Classes/Core/KWMatching.h | Classes/Core/KWMatching.h | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
@protocol KWMatching<NSObject>
#pragma mark - Initializing
- (id)initWithSubject:(id)anObject;
#pragma mark - Getting Matcher Strings
+ (NSArray *)matcherStrings;
#pragma mark - Ge... | //
// Licensed under the terms in License.txt
//
// Copyright 2010 Allen Ding. All rights reserved.
//
#import "KiwiConfiguration.h"
@protocol KWMatching<NSObject>
#pragma mark - Initializing
- (id)initWithSubject:(id)anObject;
#pragma mark - Getting Matcher Strings
+ (NSArray *)matcherStrings;
#pragma mark - Ge... | Use method declaration instead of property | Use method declaration instead of property
| C | bsd-3-clause | carezone/Kiwi,tangwei6423471/Kiwi,emodeqidao/Kiwi,weslindsay/Kiwi,tcirwin/Kiwi,LiuShulong/Kiwi,weslindsay/Kiwi,JoistApp/Kiwi,tcirwin/Kiwi,howandhao/Kiwi,iosRookie/Kiwi,weslindsay/Kiwi,tonyarnold/Kiwi,iosRookie/Kiwi,allending/Kiwi,tcirwin/Kiwi,ecaselles/Kiwi,PaulTaykalo/Kiwi,ecaselles/Kiwi,ecaselles/Kiwi,indiegogo/Kiwi,... |
a48ecd50079818e7a4d1444a1d14aebefb9cbb67 | FringeFM/FFMSongUpdater.h | FringeFM/FFMSongUpdater.h | //
// FFMSongUpdater.h
// FringeFM
//
// Created by John Sheets on 6/10/12.
// Copyright (c) 2012 John Sheets. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | //
// FFMSongUpdater.h
// FringeFM
//
// Created by John Sheets on 6/10/12.
// Copyright (c) 2012 John Sheets. All rights reserved.
//
// MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
//... | Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip). | Switch song updater updateFrequency from NSTimeInterval (length of time) to NSUInteger (number of counter seconds to skip).
| C | mit | jsheets/FringeFM |
5e55843bb8ed1ec7d134a759c53e34beb1618952 | include/asm-mn10300/ipcbuf.h | include/asm-mn10300/ipcbuf.h | #ifndef _ASM_IPCBUF_H_
#define _ASM_IPCBUF_H
/*
* The ipc64_perm structure for MN10300 architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 32-bit mode_t and seq
* - 2 miscellaneous 32-bit values
*/
struct ipc64_perm... | #ifndef _ASM_IPCBUF_H
#define _ASM_IPCBUF_H
/*
* The ipc64_perm structure for MN10300 architecture.
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 32-bit mode_t and seq
* - 2 miscellaneous 32-bit values
*/
struct ipc64_perm
... | Fix typo in header guard | MN10300: Fix typo in header guard
Fix a typo in the header guard of asm/ipc.h.
Signed-off-by: Vegard Nossum <c9abf7248a519119ccb31f4fd3c3a4e0b6ebd20b@gmail.com>
Signed-off-by: David Howells <ebac1d06c1688626821bb0e574a037a7a5354e49@redhat.com>
Signed-off-by: Linus Torvalds <69652caca27c8b940640ad396ab71f93cacec34f@li... | C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k... |
da16baebce5c500fa77b346e18a68e0e31c453f4 | set/prod.c | set/prod.c | int set_empty(void)
{
return 0;
}
int set_size(int set)
{
int size = 0;
while (set)
{
size += set & 1;
set >>= 1;
}
return size;
}
int set_add(int set, int element)
{
return set | (1 << element);
}
| int set_empty(void)
{
return 0;
}
int set_size(int set)
{
/* Bit-Twiddling Hacks */
/* TODO: shall export to bits module to provide more robust solutions
* based on hardware capabilities (eg. popcount instruction) */
set = set - ((set >> 1) & ~(unsigned int)0/3);
set = (set & ~(unsigned int)0/15*3) + ((set >> 2... | Optimize counting size of larger sets | [SET] REFACTOR: Optimize counting size of larger sets
| C | mit | w3ln4/open |
78207b6e00ed9a4d296bbfce43da63b1e034a84e | spinlock.h | spinlock.h | #pragma once
#define SPINLOCK_DEBUG 1
// Mutual exclusion lock.
struct spinlock {
u32 locked; // Is the lock held?
#if SPINLOCK_DEBUG
// For debugging:
char *name; // Name of lock.
struct cpu *cpu; // The cpu holding the lock.
uptr pcs[10]; // The call stack (an array of program counte... | #pragma once
#define SPINLOCK_DEBUG 1
// Mutual exclusion lock.
struct spinlock {
u32 locked; // Is the lock held?
#if SPINLOCK_DEBUG
// For debugging:
char *name; // Name of lock.
struct cpu *cpu; // The cpu holding the lock.
uptr pcs[10]; // The call stack (an array of program counte... | Make lockname(s) a macro instead of a inline. | Make lockname(s) a macro instead of a inline.
| C | mit | aclements/sv6,aclements/sv6,bowlofstew/sv6,aclements/sv6,aclements/sv6,aclements/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6,bowlofstew/sv6 |
4705e8ddf88e130ce1899366e2647176ce6d9407 | src/main.c | src/main.c | #include "backend.h"
#include "frontend.h"
#include <ncurses.h>
int main() {
initscr();
cbreak();
noecho();
keypad(stdscr, TRUE); // make keys work
curs_set(0); // hide cursor
timeout(100);
int xmax;
int ymax;
getmaxyx(stdscr, ymax, xmax);
enum Direction dir = RIGHT;
Board* board = create_board... | #include "backend.h"
#include "frontend.h"
#include <ncurses.h>
int main() {
initscr();
cbreak();
noecho();
keypad(stdscr, TRUE); // make keys work
curs_set(0); // hide cursor
timeout(100);
int xmax;
int ymax;
getmaxyx(stdscr, ymax, xmax);
enum Direction dir = RIGHT;
Board* board = create_board... | Call `clear` and `refresh` to update screen | Call `clear` and `refresh` to update screen
| C | mit | jvns/snake,jvns/snake |
fcd34497864825e90f2c0331278142e10dec2ae0 | src/main.h | src/main.h | // Copyright (c) 2016 Brian Barto
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the MIT License. See LICENSE for more details.
#ifndef MAIN_H
#define MAIN_H 1
#define VERSION "0.1.0"
#define DEFAULT_KEY_NAME "default"
#define DEFAULT_KEY_PATH ".config/mir... | // Copyright (c) 2016 Brian Barto
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the MIT License. See LICENSE for more details.
#ifndef MAIN_H
#define MAIN_H 1
#define VERSION "0.1.0"
#define DEFAULT_KEY_NAME "default"
#define DEFAULT_KEY_PATH ".config/mrr... | Change config dir name to mrrcrypt | Change config dir name to mrrcrypt
modified: src/main.h
| C | mit | bartobri/mirror-crypt |
d257a1c2e1d577e7902d47696b9f98ece299e7dd | src/dnscap_common.h | src/dnscap_common.h | /*
* setup MY_BPFTIMEVAL as the timeval structure that bpf packets
* will be assoicated with packets from libpcap
*/
#ifdef __OpenBSD__
# define MY_BPFTIMEVAL bpf_timeval
#endif
#ifndef MY_BPFTIMEVAL
# define MY_BPFTIMEVAL timeval
#endif
typedef struct MY_BPFTIMEVAL my_bpftimeval;
/*
* Structure to contain IP add... | #include <netinet/in.h>
/*
* setup MY_BPFTIMEVAL as the timeval structure that bpf packets
* will be assoicated with packets from libpcap
*/
#ifndef MY_BPFTIMEVAL
# define MY_BPFTIMEVAL timeval
#endif
typedef struct MY_BPFTIMEVAL my_bpftimeval;
/*
* Structure to contain IP addresses
*/
typedef struct {
... | Fix compilation on FreeBSD and OpenBSD | Fix compilation on FreeBSD and OpenBSD
| C | isc | verisign/dnscap,verisign/dnscap |
39878a58e58dfa4029c0ddfc2f3c45098fe06466 | libgdi/gdi_shape.h | libgdi/gdi_shape.h | /*
FreeRDP: A Remote Desktop Protocol client.
GDI Shape Functions
Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License a... | /*
FreeRDP: A Remote Desktop Protocol client.
GDI Shape Functions
Copyright 2010-2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License a... | Fix missing declaration for ShapeInit() | Fix missing declaration for ShapeInit()
| C | apache-2.0 | FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old,FreeRDP/FreeRDP-old |
cb14a9aaa5fa50b22982f14aeab7d9f2f634ea3d | tests/vio_tests/check_vio_file_stat.c | tests/vio_tests/check_vio_file_stat.c | #include "support.h"
#include "vio/csync_vio_file_stat.h"
START_TEST (check_csync_vio_file_stat_new)
{
csync_vio_file_stat_t *stat = NULL;
stat = csync_vio_file_stat_new();
fail_if(stat == NULL, NULL);
csync_vio_file_stat_destroy(stat);
}
END_TEST
static Suite *csync_vio_suite(void) {
Suite *s = suite_c... | #include "support.h"
#include "vio/csync_vio_file_stat.h"
START_TEST (check_csync_vio_file_stat_new)
{
csync_vio_file_stat_t *tstat = NULL;
tstat = csync_vio_file_stat_new();
fail_if(tstat == NULL, NULL);
csync_vio_file_stat_destroy(tstat);
}
END_TEST
static Suite *csync_vio_suite(void) {
Suite *s = sui... | Fix build warning for shadowed variable. | Fix build warning for shadowed variable.
| C | lgpl-2.1 | meeh420/csync,gco/csync,meeh420/csync,gco/csync,meeh420/csync,gco/csync,gco/csync |
bef527848955070cab42bcc1f42799656e8da0a6 | src/hostnet/stubs_utils.c | src/hostnet/stubs_utils.c | #include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>
#include <stdio.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
CAMLprim value stub_get_SOMAXCONN(){
fprintf(s... | #include <caml/mlvalues.h>
#include <caml/memory.h>
#include <caml/custom.h>
#include <caml/callback.h>
#include <caml/alloc.h>
#include <stdio.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <winsock2.h>
#include <ws2tcpip.h>
#else
#include <sys/socket.h>
#endif
CAMLprim value stub_get_SOMAXCONN(value unit){
... | Add `value` parameter to SOMAXCONN binding | Add `value` parameter to SOMAXCONN binding
Problem spotted by yallop in
https://github.com/moby/vpnkit/commit/8d718125a66fbe746ba17ad3e85b7924ac0ed9a4#commitcomment-21930309
Signed-off-by: David Scott <63c9eb0ea83039690fefa11afe17873ba8278a56@docker.com>
| C | apache-2.0 | djs55/vpnkit,djs55/vpnkit,djs55/vpnkit |
c03dcdf5e249ac87c917f3b57f2f532be7fa3aa1 | iOS/AIBHTMLWebView.h | iOS/AIBHTMLWebView.h | //
// AIBHTMLWebView.h
// AIBHTMLWebView
//
// Created by Thomas Parslow on 05/04/2015.
// Copyright (c) 2015 Thomas Parslow. MIT License.
//
#import "RCTView.h"
@class RCTEventDispatcher;
@interface AIBHTMLWebView : RCTView
@property (nonatomic, strong) NSString *HTML;
- (instancetype)initWithEventDispatcher:... | //
// AIBHTMLWebView.h
// AIBHTMLWebView
//
// Created by Thomas Parslow on 05/04/2015.
// Copyright (c) 2015 Thomas Parslow. MIT License.
//
#import "RCTView.h"
@class RCTEventDispatcher;
@interface AIBHTMLWebView : RCTView
@property (nonatomic, strong) NSString *HTML;
- (instancetype)initWithFrame:(CGRect)fr... | Remove designated initializer compiler warnings | Remove designated initializer compiler warnings | C | mit | almost/react-native-html-webview |
aa470966fb84e16c92c210236cc5348a3e4c7bb7 | Settings/Controls/Label.h | Settings/Controls/Label.h | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
virtual bool Text(std::wstring text) {
bool result = Control::Text(text);
if (result == false) {
... | #pragma once
#include "Control.h"
#include "../../3RVX/Logger.h"
class Label : public Control {
public:
Label() {
}
Label(int id, HWND parent) :
Control(id, parent) {
}
virtual bool Text(std::wstring text) {
bool result = Control::Text(text);
if (result == false) {
... | Test the new width functionality | Test the new width functionality
| C | bsd-2-clause | Soulflare3/3RVX,malensek/3RVX,malensek/3RVX,Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.