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 |
|---|---|---|---|---|---|---|---|---|---|
f0b582a6639ad908211c938287fad26fc99a34dc | peertalk/PTPrivate.h | peertalk/PTPrivate.h | #if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \
(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8))
#define PT_DISPATCH_RETAIN_RELEASE 1
#endif
#if PT_DISPATCH_RETAIN... | #if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && (!defined(__IPHONE_6_0) || __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_6_0)) || \
(defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && (!defined(__MAC_10_8) || __MAC_OS_X_VERSION_MIN_REQUIRED < __MAC_10_8))
#define PT_DISPATCH_RETAIN_RELEASE 1
#endif
#define PT_PRECISE_LIF... | Fix logic that enables pre-ARC behavior | Fix logic that enables pre-ARC behavior
| C | mit | fly19890211/peertalk,philikon/peertalk,fly19890211/peertalk,yexihu/peertalk,yexihu/peertalk,fly19890211/peertalk,rsms/peertalk,ChetanGandhi/peertalk,philikon/peertalk,ChetanGandhi/peertalk,yexihu/peertalk,rsms/peertalk,msdgwzhy6/peertalk,TaoXueCheng/peertalk,artifacts/peertalk,artifacts/peertalk,dguillamot/PFMacOSClien... |
44415f1f4effc8953177bc365098750e92df20f4 | src/mpd-shell-defines.h | src/mpd-shell-defines.h |
/*
* Copyright © 2010 Intel Corp.
*
* Authors: Rob Staudinger <robert.staudinger@intel.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* Th... |
/*
* Copyright © 2010 Intel Corp.
*
* Authors: Rob Staudinger <robert.staudinger@intel.com>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 2.1, as published by the Free Software Foundation.
*
* Th... | Define actor sized as float for type safety. | shell: Define actor sized as float for type safety.
| C | lgpl-2.1 | meego-netbook-ux/meego-panel-devices,meego-netbook-ux/meego-panel-devices,meego-netbook-ux/meego-panel-devices |
fe9f46ab6c0863c0a3c3345ebb43f32d50ab60ca | Generics/LWP/ICondVar.h | Generics/LWP/ICondVar.h |
#pragma once
namespace LWP
{
class ICondVar
{
public:
virtual void wait() = 0;
virtual void signal() = 0;
virtual void broadcast() = 0;
virtual ~ICondVar() {}
};
} |
#pragma once
namespace LWP
{
class ICondVar
{
public:
virtual void wait() = 0;
virtual void notify() = 0;
virtual void broadcast() = 0;
virtual ~ICondVar() {}
};
} | Change method name : `signal' => `notify' | [LWP] Change method name : `signal' => `notify'
| C | mit | fiahil/R-Type,fiahil/R-Type |
70065db2a0765b00473d8f40a640f0a4159f6387 | include/stdlib.h | include/stdlib.h | #ifndef __STDLIB_H__
#define __STDLIB_H__
void assert(int boolean, char * msg);
#endif // __STDLIB_H__
| #ifndef __STDLIB_H__
#define __STDLIB_H__
#include <kernel.h>
#include <task.h>
#include <types.h>
void assert(int boolean, char * msg);
#endif // __STDLIB_H__
| Add kernel.h, task.h and types.h, forming a facade interface | Add kernel.h, task.h and types.h, forming a facade interface
| C | mit | gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel,gregwym/ARM-Micro-Kernel |
cdbae732301c430a95c9328f6597f4ecfb26cbb0 | ios/NfcManager.h | ios/NfcManager.h | #if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#elif __has_include(“React/RCTBridgeModule.h”)
#import “React/RCTBridgeModule.h”
#else
#import “RCTBridgeModule.h”
#import <React/RCTEventEmitter.h>
#endif
#import <CoreNfc/CoreNfc.h>
@interface NfcManager ... | #if __has_include(<React/RCTBridgeModule.h>)
#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>
#elif __has_include(“React/RCTBridgeModule.h”)
#import “React/RCTBridgeModule.h”
#else
#import “RCTBridgeModule.h”
#import <React/RCTEventEmitter.h>
#endif
#import <CoreNFC/CoreNFC.h>
@interface NfcManager ... | Fix case-sensitive file import from CoreNfc -> CoreNFC | Fix case-sensitive file import from CoreNfc -> CoreNFC
| C | apache-2.0 | whitedogg13/react-native-nfc-manager,whitedogg13/react-native-nfc-manager,whitedogg13/react-native-nfc-manager |
6ee28d6d3a65a014f4ad9f4454258b4eb5114364 | machine.h | machine.h | #ifndef __MACHINE_H__
#define __MACHINE_H__
#include <string>
#include <vector>
#include "job.h"
class Machine
{
public:
Machine(const std::string& machine_name);
const std::string& get_name() const;
void add_job(Job);
private:
std::string name;
std::vector<Job> jobs;
... | #ifndef __MACHINE_H__
#define __MACHINE_H__
#include <string>
#include <vector>
#include "job.h"
class Machine
{
public:
Machine(const std::string& machine_name);
const std::string& get_name() const;
void add_job(Job new_job);
private:
std::string name;
std::vector<Job... | Add name to add_job param | Add name to add_job param
| C | mit | mattportas/yejong |
bb843fdda3313e753959fdcb90332f627a127524 | inc/winchar.h | inc/winchar.h | //--------------------------------------------------------------------------//
/// Copyright (c) 2017 by Milos Tosic. All Rights Reserved. ///
/// License: http://www.opensource.org/licenses/BSD-2-Clause ///
//--------------------------------------------------------------------------//
#if... | //--------------------------------------------------------------------------//
/// Copyright (c) 2017 by Milos Tosic. All Rights Reserved. ///
/// License: http://www.opensource.org/licenses/BSD-2-Clause ///
//--------------------------------------------------------------------------//
#if... | Add (w)char casting operator to windows char classes | Add (w)char casting operator to windows char classes
| C | bsd-2-clause | milostosic/rbase,milostosic/rbase |
2e4e76b70806abf9a37f1a6b3f9ccdb56aa89448 | include/llvm/Transforms/Utils/SizeOpts.h | include/llvm/Transforms/Utils/SizeOpts.h | //===- llvm/Transforms/Utils/SizeOpts.h - size optimization -----*- 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
//
//===---------------------------... | //===- llvm/Transforms/Utils/SizeOpts.h - size optimization -----*- 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 header guard typo and build error. | Fix header guard typo and build error.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@358429 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llv... |
dc258e02720308981a4f8a2e4848c582c1b71123 | l4common.h | l4common.h | #ifndef LBS_COMMON_H
#define LBS_COMMON_H
#include <stddef.h>
#ifdef __STDC_VERSION__
# include <stdbool.h>
# if __STDC_VERSION__ >= 201112L
# define LBS_COMMON_ISO_C11
# define LBS_COMMON_CHECK_TYPE(x,type) (_Generic ((x), type: (x)))
# else
# define LBS_COMMON_ISO_C99
# define LBS_COMMON_CHECK_TYPE(x,type) (x)
... | #ifndef LBS_COMMON_H
#define LBS_COMMON_H
#include <stddef.h>
#ifdef __STDC_VERSION__
# include <stdbool.h>
# if __STDC_VERSION__ >= 201112L
# define LBS_COMMON_ISO_C11
# define LBS_COMMON_CHECK_TYPE(x,type) (_Generic ((x), type: (x)))
# else
# define LBS_COMMON_ISO_C99
# define LBS_COMMON_CHECK_TYPE(x,type) (x)
... | Add macros to define getters and setters | Add macros to define getters and setters
| C | bsd-3-clause | lantw44/l4basic,lantw44/l4basic |
ecb1728e6880e9368cc9bbd4ba3a82b47456152a | client_encoder/client_encoder_base.h | client_encoder/client_encoder_base.h | // Copyright (c) 2011 The WebM 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 contributing projec... | // Copyright (c) 2011 The WebM 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 contributing projec... | Add client name and version constants. | Add client name and version constants.
Change-Id: Ic5aeafb91ebb9d04ca89679512d3088c612f84e1
| C | bsd-3-clause | kleopatra999/webm.webmlive,kalli123/webm.webmlive,gshORTON/webm.webmlive,reimaginemedia/webm.webmlive,ericmckean/webm.webmlive,kim42083/webm.webmlive,ericmckean/webm.webmlive,Acidburn0zzz/webm.webmlive,Maria1099/webm.webmlive,abwiz0086/webm.webmlive,kleopatra999/webm.webmlive,Acidburn0zzz/webm.webmlive,felipebetancur/w... |
3e94540ea6dba904c4025b2773a4f7b288ad4174 | polygon.h | polygon.h | /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
*
*
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Function wich create a point with a specified abscisse and ordinate
* abscisse - real
* ordinate - real
* return a new point
*/
| /** Author : Paul TREHIOU & Victor SENE
* Date : November 2014
**/
/**
* Declaration Point structure
* x - real wich is the abscisse of the point
* y - real wich is the ordinate of the point
*/
typedef struct
{
float x;
float y;
}Point;
/**
* Function wich create a point with a specified abscisse and... | Add comment for struc Point definition | Add comment for struc Point definition
| C | mit | UTBroM/GeometricLib |
0476f5a59b5285fa625089167ef3b373525060b8 | src/libreset/util/macros.h | src/libreset/util/macros.h | #ifndef __MACROS_H__
#define __MACROS_H__
/**
* @file macros.h
*
* This file contains simple helper macros
*/
/**
* @addtogroup internal_util_helper_macros "(internal) helper macros"
*
* This group contains helper macros for internal use only.
*
* @{
*/
/**
* Computes the maximum value of the two passed v... | #ifndef __MACROS_H__
#define __MACROS_H__
/**
* @file macros.h
*
* This file contains simple helper macros
*/
/**
* @addtogroup internal_util_helper_macros "(internal) helper macros"
*
* This group contains helper macros for internal use only.
*
* @{
*/
/**
* Computes the maximum value of the two passed v... | Modify MAX(x,y) to not contain a scope | Modify MAX(x,y) to not contain a scope
| C | lgpl-2.1 | waysome/libreset,waysome/libreset |
c7611e7a0d2901ce05589c4815ca0f88c9788feb | src/utf.h | src/utf.h | /*
* Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef UTF_H
#define UTF_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef HAVE_INTTYPES_H
/* inttypes.h... | /*
* Copyright (c) 2009, 2010 Petri Lehtinen <petri@digip.org>
*
* Jansson is free software; you can redistribute it and/or modify
* it under the terms of the MIT license. See LICENSE for details.
*/
#ifndef UTF_H
#define UTF_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#ifdef HAVE_INTTYPES_H
/* inttypes.h includ... | Make int32_t available when the configure script is not used | Make int32_t available when the configure script is not used
| C | mit | markalanj/jansson,yahoo/ygloo-external-jansson,Mephistophiles/jansson,rogerz/jansson,chrullrich/jansson,rogerz/jansson,akheron/jansson,yahoo/ygloo-external-jansson,akheron/jansson-debian,slackner/jansson,attie/jansson,firepick-delta/FireSight,npmccallum/jansson,Mephistophiles/jansson,bstarynk/jansson,chrullrich/jansson... |
d37ccd40dffd64fcad614f152f33ceb755112484 | func_sim/func_memory/func_memory.h | func_sim/func_memory/func_memory.h | /**
* func_memory.h - Header of module implementing the concept of
* programer-visible memory space accesing via memory address.
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// protection from multi-include
#ifndef FUNC_MEMORY__FUNC_MEMORY_H
#define FU... | /**
* func_memory.h - Header of module implementing the concept of
* programer-visible memory space accesing via memory address.
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// protection from multi-include
#ifndef FUNC_MEMORY__FUNC_MEMORY_H
#define FU... | Delete redundant staff from FuncMemory class | [trunk] Delete redundant staff from FuncMemory class | C | mit | Nagapetyan/mipt-mips-2015,MIPT-ILab/mipt-mips,MIPT-ILab/mipt-mips-2015,RomanZavodskikh/mipt-mips-2015,grigoriy-chirkov/mipt-mips-2015,MIPT-ILab/mipt-mips,RomanZavodskikh/mipt-mips-2015,gkorepanov/mipt-mips,RomanZavodskikh/mipt-mips-2015,grigoriy-chirkov/mipt-mips-2015,MIPT-ILab/mipt-mips-2015,RomanZavodskikh/mipt-mips-... |
1a064e381c2f9978dbdb7103a6d9faed5e5f3e32 | StoreSim/RegisterQueue.h | StoreSim/RegisterQueue.h | #pragma once
class RegisterQueue{
private:
public:
int numberOfCustomers;
int maxLineLength;
};
| #pragma once
#include "Customer.h"
class RegisterQueue{
private:
struct Node {
Node *next; // After previous sequentially
Node *previous; // First in line
Customer value;
// @next = NULL, this is a shorthand constructor to make NULL the default
Node(Customer value, Node *previous = null... | Create "checkout lines" as DLinkedList | Create "checkout lines" as DLinkedList
| C | mit | GPKyte/CSCI220,GPKyte/CSCI220 |
31a6e50a5f20b77c82cf2024ef8f0c8f586973b9 | TesseractOCR/Tesseract.h | TesseractOCR/Tesseract.h | //
// Tesseract.h
// Tesseract
//
// Created by Loïs Di Qual on 24/09/12.
// Copyright (c) 2012 Loïs Di Qual.
// Under MIT License. See 'LICENCE' for more informations.
//
#import <UIKit/UIKit.h>
@class Tesseract;
@protocol TesseractDelegate <NSObject>
@optional
- (BOOL)shouldCancelImageRecognitionForTesseract:... | //
// Tesseract.h
// Tesseract
//
// Created by Loïs Di Qual on 24/09/12.
// Copyright (c) 2012 Loïs Di Qual.
// Under MIT License. See 'LICENCE' for more informations.
//
#import <UIKit/UIKit.h>
@class Tesseract;
@protocol TesseractDelegate <NSObject>
@optional
- (BOOL)shouldCancelImageRecognitionForTesseract:... | Add a deprecated warning for - (void)clear. | Add a deprecated warning for - (void)clear.
| C | mit | gank0326/Tesseract,lampkicking/Tesseract-OCR-iOS,zyggit/Tesseract-OCR-iOS,hejunbinlan/Tesseract-OCR-iOS,DanielShum/Tesseract-OCR-iOS,doo/Tesseract-OCR-iOS,StratAguilar/Tesseract-OCR-iOS,gank0326/Tesseract,lampkicking/Tesseract-OCR-iOS,ws233/Tesseract-OCR-iOS,Jaelene/Tesseract-OCR-iOS,gali8/Tesseract-OCR-iOS,cotsog/Tess... |
e524e7ee97dcc87aee0616328e9be64d1c3daf57 | The_Eye/inc/Biquad_Filter.h | The_Eye/inc/Biquad_Filter.h | /*
* Biquad_Filter.h
*
* Created on: 24. 6. 2017
* Author: michp
*/
#ifndef BIQUAD_FILTER_H_
#define BIQUAD_FILTER_H_
#include <cmath>
namespace flyhero {
// Many thanks to http://www.earlevel.com/main/2012/11/26/biquad-c-source-code/
class Biquad_Filter {
private:
const double PI = 3... | /*
* Biquad_Filter.h
*
* Created on: 24. 6. 2017
* Author: michp
*/
#ifndef BIQUAD_FILTER_H_
#define BIQUAD_FILTER_H_
#include <cmath>
namespace flyhero {
// Many thanks to http://www.earlevel.com/main/2012/11/26/biquad-c-source-code/
class Biquad_Filter {
private:
const double PI = 3... | Add source of formulas used in biquad filters | Add source of formulas used in biquad filters | C | mit | michprev/flyhero-esp32,michprev/flyhero-esp32 |
e5e5f7dff34caa4772119ec04b7356abd25fde95 | src/transfer_function_parser.h | src/transfer_function_parser.h | #ifndef SRC_TRANSFER_FUNCTION_PARSER_H_
#define SRC_TRANSFER_FUNCTION_PARSER_H_
#include <QGradient>
#include <QString>
#include <QXmlDefaultHandler>
/**
* \brief
*
*
*/
class QGradientContentHandler;
class TransferFunctionParser
{
public:
TransferFunctionParser(QString path);
QGradient *parse();
priv... | #ifndef SRC_TRANSFER_FUNCTION_PARSER_H_
#define SRC_TRANSFER_FUNCTION_PARSER_H_
#include <QGradient>
#include <QString>
#include <QXmlDefaultHandler>
class QGradientContentHandler;
/**
* \brief Parser for XML representation of a QGradient used as transfer function
*
*/
class TransferFunctionParser
{
public:
T... | Add brief description for TransferFunctionParser. | Add brief description for TransferFunctionParser.
| C | mit | Christof/tf-parser |
af2944ac5488f8d7e5f109f8a55f98d072ec377c | arch/mips/pci/pci-ev64120.c | arch/mips/pci/pci-ev64120.c | #include <linux/pci.h>
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
int irq;
if (!pin)
return 0;
irq = allocate_irqno();
if (irq < 0)
return 0;
return irq;
}
/* Do platform specific device initialization at pci_enable_device() time */
int pcibios_plat_dev_init(struct pci_dev *dev)
{
... | #include <linux/pci.h>
#include <asm/irq.h>
int __init pcibios_map_irq(struct pci_dev *dev, u8 slot, u8 pin)
{
int irq;
if (!pin)
return 0;
irq = allocate_irqno();
if (irq < 0)
return 0;
return irq;
}
/* Do platform specific device initialization at pci_enable_device() time */
int pcibios_plat_dev_init(st... | Include <asm/irq.h> to fix warning. | [MIPS] EV64120: Include <asm/irq.h> to fix warning.
arch/mips/pci/pci-ev64120.c:10: warning: implicit declaration of function 'allocate_irqno'
Signed-off-by: Ralf Baechle <92f48d309cda194c8eda36aa8f9ae28c488fa208@linux-mips.org>
| C | mit | 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_kernel_samsung_kanas,TeamVee-Kanas/android_k... |
e5bda7a4c107e91faa87657611bbd9ef174fadce | templates/c.c | templates/c.c | #include <stdio.h>
int
main(int argc, char const *argv[])
{
int answer = 0;
printf("%d\n");
return 0;
}
| #include <stdio.h>
int
main(int argc, char const *argv[])
{
int answer = 0;
printf("%d\n", answer);
return 0;
}
| Fix mistake in C template | Fix mistake in C template
| C | mit | yaworsw/euler-manager,yaworsw/euler-manager,yaworsw/euler-manager,yaworsw/euler-manager,yaworsw/euler-manager,yaworsw/euler-manager,yaworsw/euler-manager |
10698eca9f9890e28f60f6a417951e23d65ebfb6 | src/lib/serialize/str_join.h | src/lib/serialize/str_join.h | /* This code is subject to the terms of the Mozilla Public License, v.2.0. http://mozilla.org/MPL/2.0/. */
#pragma once
#include <sstream>
namespace turbo {
namespace str
{
template <class Iter>
std::string join(const Iter& start, const Iter& end, char delim=' ')
{
std::stringstream ss;
Iter it = start;
if (... | /* This code is subject to the terms of the Mozilla Public License, v.2.0. http://mozilla.org/MPL/2.0/. */
#pragma once
#include <sstream>
namespace turbo {
namespace str
{
template <class Iter>
inline std::string join(const Iter& start, const Iter& end, char delim=' ')
{
std::stringstream ss;
Iter it = start;... | Make this explicitly inline for consistency's sake. | Make this explicitly inline for consistency's sake.
| C | mpl-2.0 | sz3/turbolib,sz3/turbolib,sz3/turbolib,sz3/turbolib |
831a01c04c02b61998d3adadf5db00eb7829427b | src/qt-ui/basicui.h | src/qt-ui/basicui.h |
#ifndef BASICUI_H_
#define BASICUI_H_
#include <QMainWindow>
#include "QsLog.h"
#include "mainwidget.h"
#include "workspace.h"
#include "uicontroller.h"
class BasicUi: public QMainWindow {
Q_OBJECT
public:
BasicUi(UiController * controller, QWidget *parent = 0);
void setWorkspace(Workspace ... |
#ifndef BASICUI_H_
#define BASICUI_H_
#include <QMainWindow>
#include "QsLog.h"
#include "mainwidget.h"
#include "workspace.h"
#include "uicontroller.h"
class BasicUi: public QMainWindow {
Q_OBJECT
public:
BasicUi(UiController * controller, QWidget *parent = 0);
void setWorkspace(Workspace ... | Revert of a previous commit "Delete main widget in BasicUi" | Revert of a previous commit "Delete main widget in BasicUi" | C | apache-2.0 | jbruggem/jingles-impro,jbruggem/jingles-impro,jbruggem/jingles-impro |
ded8ea7469b305ee6ceb65103af010329b97ce9a | src/time-module.c | src/time-module.c | #include <stdlib.h>
#include "graphics.h"
#include "surface.h"
#include "time-module.h"
typedef struct TimeModule {
Module base;
} TimeModule;
Module* newTimeModule()
{
TimeModule* module = malloc(sizeof(TimeModule));
module->base.width = 150;
module->base.height = 100;
module->base.updateFunc = updateTime... | #include <stdlib.h>
#include <time.h>
#include "graphics.h"
#include "surface.h"
#include "time-module.h"
typedef struct TimeModule {
Module base;
} TimeModule;
Module* newTimeModule()
{
TimeModule* module = malloc(sizeof(TimeModule));
module->base.width = 150;
module->base.height = 100;
module->base.updat... | Replace placeholder string in time module with time. | Replace placeholder string in time module with time.
| C | mit | jamiesyme/minfo,jamiesyme/minfo |
de041647db8aeed049ce1124362a022472e7d899 | src/main.c | src/main.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "emulator.h"
void usage(char *programName);
int main(int argsNum, char *args[])
{
int i;
int debugMode = 0;
char *filename = NULL;
emulator *e;
/* Handle arguments */
for (i = 0; i < argsNum; i++)
{
char *arg... | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "emulator.h"
void usage(char *programName);
int main(int argsNum, char *args[])
{
int i;
int debugMode = 0;
char *filename = NULL;
emulator *e;
/* Handle arguments */
for (i = 1; i < argsNum; i++)
{
char *arg... | Print usage if the only argument is "-d" | Print usage if the only argument is "-d"
| C | mit | andrewrothman/4917,andrewrothman/4917 |
fb9ae2faae28b7ab57651261c1ec98f9bf5b87bb | components/TARGET_PSA/services/platform/COMPONENT_PSA_SRV_EMUL/platform_emul.c | components/TARGET_PSA/services/platform/COMPONENT_PSA_SRV_EMUL/platform_emul.c | /* Copyright (c) 2019 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | /* Copyright (c) 2019 ARM Limited
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | Fix incorrect return value in psa_security_lifecycle_state (emul) | Fix incorrect return value in psa_security_lifecycle_state (emul)
psa_security_lifecycle_state should return uint32_t of the security
lifecycle state.
bug: psa_platfrom_lifecycle_get_impl return value
is psa_status_t.
| C | apache-2.0 | mbedmicro/mbed,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,andcor02/mbed-os,mbedmicro/mbed,kjbracey-arm/mbed,mbedmicro/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,kjbracey-arm/mbed,andcor02/mbed-os,mbedmicro/mbed,mbedmicro/mbed |
596cd371eab5e2a5a7112f6fe62adc68e3527526 | tests/regression/00-sanity/20-if-0-realnode.c | tests/regression/00-sanity/20-if-0-realnode.c | #include <assert.h>
void stuff() {
}
int main() {
// MyCFG shouldn't ignore loops with exp 0 because they may have else branches
bar:
if (0) {
foo: // label prevents CIL from optimizing away this branch
stuff(); // something non-empty
}
else {
goto bar; // direct realnode ... | #include <assert.h>
void stuff() {
}
int main() {
// MyCFG shouldn't ignore loops with exp 0 because they may have else branches
bar:
if (0) {
foo: // label prevents CIL from optimizing away this branch
stuff(); // something non-empty
}
else {
goto bar; // direct realnode ... | Remove unreachable code after goto in 00/20 | Remove unreachable code after goto in 00/20
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
31d76c90b066974ce8fe710d75c8d315f8a45d03 | MBContactPicker/ContactCollectionViewCellModel.h | MBContactPicker/ContactCollectionViewCellModel.h | //
// ContactCollectionViewCellModel.h
// MBContactPicker
//
// Created by Matt Bowman on 11/20/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ContactCollectionViewCellModel : NSObject
@property (nonatomic, weak) id contactObject;
@property (nonatomic... | //
// ContactCollectionViewCellModel.h
// MBContactPicker
//
// Created by Matt Bowman on 11/20/13.
// Copyright (c) 2013 Citrrus, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ContactCollectionViewCellModel : NSObject
@property (nonatomic) id contactObject;
@property (nonatomic, copy... | Use a strong reference for the contactObject on the contact view model. Makes it easier to use if you don't have a object that is strongly ref'ed to begin with, like a string ID. | Use a strong reference for the contactObject on the contact view model. Makes it easier to use if you don't have a object that is strongly ref'ed to begin with, like a string ID.
| C | mit | xuzhiming/MBContactPicker,octanner/MBContactPicker,Citrrus/MBContactPicker |
e6281f57ea8ea965db6dfa7ed45f07c1ac95aeaa | src/auth/mycrypt.c | src/auth/mycrypt.c | #define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
#define _XOPEN_VERSION 4
#define _XPG4_2
#include <unistd.h>
#include "mycrypt.h"
char *mycrypt(const char *key, const char *salt)
{
return crypt(key, salt);
}
| #define _XOPEN_SOURCE 4
#define _XOPEN_SOURCE_EXTENDED 1 /* 1 needed for AIX */
#define _XOPEN_VERSION 4
#define _XPG4_2
#ifdef CRYPT_USE_XPG6
# define _XPG6 /* Some Solaris versions require this, some break with this */
#endif
#include <unistd.h>
#include "mycrypt.h"
char *mycrypt(const char *key, const char *salt)... | Add _XPG6 macro if needed.. | Add _XPG6 macro if needed..
--HG--
branch : HEAD
| C | mit | jwm/dovecot-notmuch,jwm/dovecot-notmuch,dscho/dovecot,dscho/dovecot,jkerihuel/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,jkerihuel/dovecot,dscho/dovecot,jkerihuel/dovecot,jwm/dovecot-notmuch,dscho/dovecot |
e6dfb05d7deddc82060c8a34944b2166e8e26870 | DeltaDNA/DeltaDNA.h | DeltaDNA/DeltaDNA.h | //
// Copyright (c) 2016 deltaDNA Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | //
// Copyright (c) 2016 deltaDNA Ltd. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... | Remove header that is no longer present | DDSDK-7: Remove header that is no longer present
| C | apache-2.0 | deltaDNA/ios-sdk,deltaDNA/ios-sdk,deltaDNA/ios-sdk |
273595f90735f3294c1a33968db69cfc3031cb0d | runtime/libprofile/Profiling.h | runtime/libprofile/Profiling.h | /*===-- Profiling.h - Profiling support library support routines --*- 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.
|*
|*===---------... | /*===-- Profiling.h - Profiling support library support routines --*- 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 basic block tracing information as a type of "profiling" information. | Add basic block tracing information as a type of "profiling" information.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@13337 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,apple/swift-llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-... |
5bb57a199d5ba7b70b2f1c4a566bfe9bdb0ce1c1 | sauce/internal/self_injector.h | sauce/internal/self_injector.h | #ifndef SAUCE_INTERNAL_SELF_INJECTOR_H_
#define SAUCE_INTERNAL_SELF_INJECTOR_H_
#include <sauce/memory.h>
namespace sauce {
namespace internal {
/**
* If a type requests injection of its own smart pointer, do so.
*
* An interface Iface requests this by exposing void setSelf(sauce::weak_ptr<Iface>), detected by SF... | #ifndef SAUCE_INTERNAL_SELF_INJECTOR_H_
#define SAUCE_INTERNAL_SELF_INJECTOR_H_
#include <sauce/memory.h>
namespace sauce {
namespace internal {
/**
* If a type requests injection of its own smart pointer, do so.
*
* An interface Iface requests this by exposing void setSelf(sauce::weak_ptr<Iface>), detected by SF... | Make SelfInjector aware of inherited methods. | Make SelfInjector aware of inherited methods.
See http://stackoverflow.com/questions/1966362/sfinae-to-check-for-inherited-member-functions
| C | mit | phs/sauce,phs/sauce,phs/sauce,phs/sauce |
717bd6ed8cd2f28f9838de3d8506ba2ab5152d0d | test.c | test.c | /* a test file for ArgyrisPack */
#include <stdio.h>
#include "argyris_pack.h"
#define ORDER(row,col,nrows,ncols) (row)*(ncols) + (col)
void print_matrix(double* matrix, int rows, int cols)
{
int i, j;
for (i = 0; i < rows; i++) {
for (j = 0; j < cols; j++) {
pr... | /* a test file for ArgyrisPack */
#include <stdio.h>
#include "argyris_pack.h"
#include "order_logic.h"
void print_matrix(double* matrix, int rows, int cols)
{
int i, j;
for (i = 0; i < rows; i++) {
for (j = 0; j < cols; j++) {
printf("%.16f ", matrix[ORDER(i,j,r... | REFACTOR include the more general macro collection in order_logic.h | REFACTOR include the more general macro collection in order_logic.h
| C | bsd-3-clause | VT-ICAM/ArgyrisPack,VT-ICAM/ArgyrisPack,VT-ICAM/ArgyrisPack |
33231a276ae9ac84ae779531e9f346fb7719a4cb | Include/sysmodule.h | Include/sysmodule.h |
/* System module interface */
#ifndef Py_SYSMODULE_H
#define Py_SYSMODULE_H
#ifdef __cplusplus
extern "C" {
#endif
DL_IMPORT(PyObject *) PySys_GetObject(char *);
DL_IMPORT(int) PySys_SetObject(char *, PyObject *);
DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *);
DL_IMPORT(void) PySys_SetArgv(int, char **);
DL_IMPORT... |
/* System module interface */
#ifndef Py_SYSMODULE_H
#define Py_SYSMODULE_H
#ifdef __cplusplus
extern "C" {
#endif
DL_IMPORT(PyObject *) PySys_GetObject(char *);
DL_IMPORT(int) PySys_SetObject(char *, PyObject *);
DL_IMPORT(FILE *) PySys_GetFile(char *, FILE *);
DL_IMPORT(void) PySys_SetArgv(int, char **);
DL_IMPORT... | Add declarations for PySys_ResetWarnOptions() and PySys_AddWarnOption(). | Add declarations for PySys_ResetWarnOptions() and
PySys_AddWarnOption().
| C | mit | sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator |
fceeec91fa4bba9f4240e7e43eec3066b434cc6b | test/Sema/stdcall-fastcall.c | test/Sema/stdcall-fastcall.c | // RUN: clang -fsyntax-only -verify %s
// CC qualifier can be applied only to functions
int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only applies to function types}}
int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}}
// Differe... | // RUN: clang -fsyntax-only -verify %s
// CC qualifier can be applied only to functions
int __attribute__((stdcall)) var1; // expected-warning{{'stdcall' attribute only applies to function types}}
int __attribute__((fastcall)) var2; // expected-warning{{'fastcall' attribute only applies to function types}}
// Differe... | Complete the test after adding handling of merged attributes on decls. | Complete the test after adding handling of merged attributes on decls.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@61438 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | 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,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,apple/swift-cl... |
ccf3af77c10c3b06acde8ee55930051a862bd728 | src/qt/bitcoinaddressvalidator.h | src/qt/bitcoinaddressvalidator.h | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base48 entry widget validator.
Corrects near-miss characters and refuses characters that are no part of base48.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVali... | #ifndef BITCOINADDRESSVALIDATOR_H
#define BITCOINADDRESSVALIDATOR_H
#include <QValidator>
/** Base58 entry widget validator.
Corrects near-miss characters and refuses characters that are not part of base58.
*/
class BitcoinAddressValidator : public QValidator
{
Q_OBJECT
public:
explicit BitcoinAddressVal... | Fix typo in a comment: it's base58, not base48. | Fix typo in a comment: it's base58, not base48.
| C | mit | GroundRod/anoncoin,Mrs-X/Darknet,donaloconnor/bitcoin,sstone/bitcoin,ahmedbodi/vertcoin,11755033isaprimenumber/Feathercoin,Earlz/renamedcoin,jimmykiselak/lbrycrd,shouhuas/bitcoin,litecoin-project/litecoin,rustyrussell/bitcoin,nmarley/dash,pstratem/elements,goku1997/bitcoin,BTCTaras/bitcoin,NicolasDorier/bitcoin,Flowdal... |
0d689b75f51c61e0fd54169a714770a4b8573985 | 7segments.c | 7segments.c | #define L 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);u*=8;
main(int u,char**a){L;L;L} | #define L for(char*c=a[1],y;*c;)printf("%c%c%c ",(y="$ֶ<&"[*c++-48])&u/2?33:32,y&u?95:32,y&u/4?33:32);puts("");u*=8;
main(int u,char**a){L;L;L} | Use puts() to save 1 byte. | Use puts() to save 1 byte.
| C | mit | McZonk/7segements,McZonk/7segements |
464f20cf7bef622fcdc77fa636388e9a3e207aca | src/include/libpq/hba.h | src/include/libpq/hba.h | /*-------------------------------------------------------------------------
*
* hba.h
* Interface to hba.c
*
*
* $Id: hba.h,v 1.27 2001/09/21 20:31:48 tgl Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HBA_H
#define HBA_H
#ifndef WIN32
#include <netinet/in.h>
#... | /*-------------------------------------------------------------------------
*
* hba.h
* Interface to hba.c
*
*
* $Id: hba.h,v 1.28 2001/10/01 02:26:36 ishii Exp $
*
*-------------------------------------------------------------------------
*/
#ifndef HBA_H
#define HBA_H
#ifndef WIN32
#include <netinet/in.h>... | Fix a compile error on a platform that does not have PAM. | Fix a compile error on a platform that does not have PAM.
| C | apache-2.0 | zaksoup/gpdb,edespino/gpdb,oberstet/postgres-xl,ovr/postgres-xl,janebeckman/gpdb,CraigHarris/gpdb,janebeckman/gpdb,postmind-net/postgres-xl,ashwinstar/gpdb,Quikling/gpdb,ahachete/gpdb,rubikloud/gpdb,cjcjameson/gpdb,edespino/gpdb,greenplum-db/gpdb,royc1/gpdb,yazun/postgres-xl,foyzur/gpdb,xuegang/gpdb,royc1/gpdb,janebeck... |
1c48d320cbd3c0789d4bdf4039f2d4188a3087b9 | src/utils/cuda_helper.h | src/utils/cuda_helper.h | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
static void HandleError(cudaError_t err, const char *file, int line)
{
if (err != cudaSuccess)
{
printf("%s in %s at line %d\n", cudaGetErrorString(err), file, line);
exit(EXI... | #ifndef SRC_UTILS_CUDA_HELPER_H_
#define SRC_UTILS_CUDA_HELPER_H_
#include <cuda.h>
#include <cuda_runtime.h>
#include <iostream>
#include <stdexcept>
static void HandleError(cudaError_t error, const char *file, int line)
{
if (error != cudaSuccess)
{
printf("%s in %s at line %d\n", cudaGetErrorString(error)... | Throw exception on cuda error to get a stack trace. | Throw exception on cuda error to get a stack trace.
| C | mit | Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller,Christof/voly-labeller |
e6420a303bfdeeba04ec7b00367ef4474e96e5a3 | 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.52f;
// 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.53f;
// Put a "#define VERSION_SUFFIX 'b'" line here to add a minor version
// incr... | Increase version number to 1.53 | Increase version number to 1.53
| C | apache-2.0 | google/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW,google/UIforETW,ariccio/UIforETW |
f35ae9ff1a231a0db7e0046aedeece0b894a46b9 | src/kbase/basic_types.h | src/kbase/basic_types.h | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_BASIC_TYPES_H_
#define KBASE_BASIC_TYPES_H_
#include <cstdint>
#include <string>
// Defines types that would be shared by among several files.
namespace kbase {
// |PathKey| is used by |PathService| and |BasePathProvider|.
using PathKey = ... | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_BASIC_TYPES_H_
#define KBASE_BASIC_TYPES_H_
#include <cstdint>
#include <string>
#include "kbase/basic_macros.h"
// Defines types that would be shared by among several files.
namespace kbase {
// |PathKey| is used by |PathService| and |Ba... | Make PathChar compatible with other platform | Make PathChar compatible with other platform
| C | mit | kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase,kingsamchen/KBase_Demo |
12335f0514a13e146f88c7ada3416d2ab99aa5a8 | include/parrot/stacks.h | include/parrot/stacks.h | /* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | /* stacks.h
* Copyright: (When this is determined...it will go here)
* CVS Info
* $Id$
* Overview:
* Stack handling routines for Parrot
* Data Structure and Algorithms:
* History:
* Notes:
* References:
*/
#if !defined(PARROT_STACKS_H_GUARD)
#define PARROT_STACKS_H_GUARD
#include "parrot/parr... | Fix typo in function name | Fix typo in function name
git-svn-id: 6e74a02f85675cec270f5d931b0f6998666294a3@255 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
| C | artistic-2.0 | FROGGS/parrot,parrot/parrot,youprofit/parrot,tewk/parrot-select,youprofit/parrot,tewk/parrot-select,tkob/parrot,gagern/parrot,FROGGS/parrot,gagern/parrot,FROGGS/parrot,tewk/parrot-select,parrot/parrot,tkob/parrot,gagern/parrot,parrot/parrot,gitster/parrot,youprofit/parrot,tkob/parrot,tkob/parrot,tkob/parrot,gagern/parr... |
5b89216a3f55e7ad439beac105896ca881555b4f | proctitle.c | proctitle.c | #include <lua.h>
#include <lauxlib.h>
#include <string.h>
static char *
find_argv0(lua_State *L)
{
extern char *__progname;
return __progname;
}
static int
set_proctitle(lua_State *L)
{
const char *title = luaL_checkstring(L, 1);
char *argv0 = find_argv0(L);
// XXX no length check
strcpy(arg... | /*
* Copyright (c) 2015 Rob Hoelz <rob AT SIGN hoelz.ro>
*
* 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, m... | Add license header to source | Add license header to source
| C | mit | hoelzro/lua-proctitle |
1042c0104d33ab2a3a220ef5f91c9e225af8c080 | include/tcframe/type.h | include/tcframe/type.h | #ifndef TCFRAME_TYPE_H
#define TCFRAME_TYPE_H
#include <ostream>
#include <type_traits>
using std::enable_if;
using std::integral_constant;
using std::is_arithmetic;
using std::is_same;
using std::ostream;
using std::string;
namespace tcframe {
class Variable {
public:
virtual void printTo(ostream& out) = 0;
... | #ifndef TCFRAME_TYPE_H
#define TCFRAME_TYPE_H
#include <ostream>
#include <type_traits>
using std::enable_if;
using std::integral_constant;
using std::is_arithmetic;
using std::is_same;
using std::ostream;
using std::string;
namespace tcframe {
class Variable {
public:
virtual void printTo(ostream& out) = 0;
... | Simplify SFINAE expression for RequiresScalar | Simplify SFINAE expression for RequiresScalar
| C | mit | tcframe/tcframe,ia-toki/tcframe,fushar/tcframe,ia-toki/tcframe,tcframe/tcframe,fushar/tcframe |
458ca11952e77331db5bc4b9e9e8e3682e3b1de3 | lib/quagga/src/quagga.h | lib/quagga/src/quagga.h | /*
* OLSRd Quagga plugin
*
* Copyright (C) 2006-2008 Immo 'FaUl' Wehrenberg <immo@chaostreff-dortmund.de>
* Copyright (C) 2007-2010 Vasilis Tsiligiannis <acinonyxs@yahoo.gr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 a... | /*
* OLSRd Quagga plugin
*
* Copyright (C) 2006-2008 Immo 'FaUl' Wehrenberg <immo@chaostreff-dortmund.de>
* Copyright (C) 2007-2012 Vasilis Tsiligiannis <acinonyxs@yahoo.gr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 a... | Add missing declaration of zebra_hello() | Add missing declaration of zebra_hello()
| C | bsd-3-clause | diogomg/olsrd,zioproto/olsrd,ninuxorg/olsrd,diogomg/olsrd-binary-heap,acinonyx/olsrd,nolith/olsrd,diogomg/olsrd,zioproto/olsrd,tdz/olsrd,tdz/olsrd,servalproject/olsr,tdz/olsrd,acinonyx/olsrd,nolith/olsrd,ninuxorg/olsrd,diogomg/olsrd-binary-heap,ninuxorg/olsrd,acinonyx/olsrd,duydb2/olsr,diogomg/olsrd,cholin/olsrd,diogom... |
6d99092c13cadd87fd123590fd29006d04648a2c | lib/System/Win32/Win32.h | lib/System/Win32/Win32.h | //===- Win32/Win32.h - Common Win32 Include File ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===- Win32/Win32.h - Common Win32 Include File ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Use normalized case and include method. | System/Windows: Use normalized case and include method.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@118503 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,chubbymaggie/asap,apple/swift-llvm,dslab-epfl/asap,dslab-epfl/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,apple/swift-llvm,llvm-mirror/llvm,dslab-epfl/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,chubbymaggie/asap,GPUOpen-Drivers/llvm... |
ff408a945f4d59d4f289ec00c267002b2d0892bb | AFToolkit/AFToolkit.h | AFToolkit/AFToolkit.h | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "UITableViewCell+Universal.h"
#import "AFDBClient.h"
#import "AFVi... | //
// Toolkit header to include the main headers of the 'AFToolkit' library.
//
#import "AFDefines.h"
#import "AFLogHelper.h"
#import "AFFileHelper.h"
#import "AFPlatformHelper.h"
#import "AFKVO.h"
#import "AFArray.h"
#import "AFMutableArray.h"
#import "NSBundle+Universal.h"
#import "UITableViewCell+Universal.h"
#impo... | Add NSBundle+Universal.h to toolkit header | Add NSBundle+Universal.h to toolkit header
| C | mit | mlatham/AFToolkit |
d22e16e698bbc6c64666bf0f1e46015adecb0ce5 | constant-helper.c | constant-helper.c | #include <fcntl.h>
#include <stdio.h>
int
main(void)
{
printf("F_GETFL=%d\n", F_GETFL);
printf("F_SETFL=%d\n", F_SETFL);
printf("O_NONBLOCK=%d\n", O_NONBLOCK);
return 0;
}
| #if _WIN32 || _WIN64
# define F_GETFL 0
# define F_SETFL 0
# define O_NONBLOCK 0
#else
# include <fcntl.h>
#endif
#include <stdio.h>
int
main(void)
{
printf("F_GETFL=%d\n", F_GETFL);
printf("F_SETFL=%d\n", F_SETFL);
printf("O_NONBLOCK=%d\n", O_NONBLOCK);
return 0;
}
| Use zeroes for fcntl constants on Windows | Use zeroes for fcntl constants on Windows
We don't need to fcntl on Windows, so let's just use dummy
values
| C | mit | hoelzro/p6-linenoise,hoelzro/p6-linenoise |
ee462489f1da5ea332851843d10541594f6fc7b0 | stm/usart.h | stm/usart.h | typedef enum {
PYB_USART_NONE = 0,
PYB_USART_1 = 1,
PYB_USART_2 = 2,
PYB_USART_3 = 3,
PYB_USART_6 = 4,
PYB_USART_MAX = 4,
} pyb_usart_t;
extern pyb_usart_t pyb_usart_global_debug;
void usart_init(pyb_usart_t usart_id, uint32_t baudrate);
bool usart_rx_any(pyb_usart_t usart_id);
int usart_rx_ch... | typedef enum {
PYB_USART_NONE = 0,
PYB_USART_1 = 1,
PYB_USART_2 = 2,
PYB_USART_3 = 3,
PYB_USART_6 = 4,
PYB_USART_MAX = 4,
//PYB_USART_XA = // USART4 on X1, X2 = PA0, PA1
PYB_USART_XB = 1, // USART1 on X9, X10 = PB6, PB7
PYB_USART_YA = 4, // USART6 on Y1, Y2 = PC6, PC7
PYB_USART... | Add USART enum for pyboard skin labels. | stm: Add USART enum for pyboard skin labels.
| C | mit | pozetroninc/micropython,TDAbboud/micropython,bvernoux/micropython,infinnovation/micropython,jimkmc/micropython,feilongfl/micropython,chrisdearman/micropython,jimkmc/micropython,suda/micropython,dmazzella/micropython,ericsnowcurrently/micropython,paul-xxx/micropython,SungEun-Steve-Kim/test-mp,chrisdearman/micropython,jm... |
3443bd38e91cc5babc5f49b063571c818dc80990 | arduino/OpenROV/Motors.h | arduino/OpenROV/Motors.h | #ifndef __MOTORS_H_
#define __MOTORS_H_
#include <Servo.h>
#define MIDPOINT 128
class Motors {
private:
Servo port, vertical, starbord;
int port_pin, vertical_pin, starbord_pin;
public:
Motors(int p_pin, int v_pin, int s_pin);
void reset();
void go(int p, int v, int s);
void stop(... | #ifndef __MOTORS_H_
#define __MOTORS_H_
#include <Servo.h>
#define MIDPOINT 90
class Motors {
private:
Servo port, vertical, starbord;
int port_pin, vertical_pin, starbord_pin;
public:
Motors(int p_pin, int v_pin, int s_pin);
void reset();
void go(int p, int v, int s);
void stop()... | Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180) | Set MIDPOINT to 90 instead of 128 (servo lib goes from 0 to 180)
| C | mit | codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software,codewithpassion/openrov-software |
b9bcb1f7994994213d18d97f4c04582b9d6a04b2 | board/bluepill/pins.h | board/bluepill/pins.h | #ifndef PINS_H_
#define PINS_H_
typedef GPIO_PIN_LED<3,13,false> LED_BUILTIN_;
typedef GPIO_PIN<1,9> TX1_PIN;
typedef GPIO_PIN<1,10> RX1_PIN;
typedef TX1_PIN TX_PIN;
typedef RX1_PIN RX_PIN;
typedef GPIO_PIN<1,2> TX2_PIN;
typedef GPIO_PIN<1,3> RX2_PIN;
typedef GPIO_PIN<2,10> TX3_PIN;
typedef GPIO_PIN<2,11> RX3_PIN;... | #ifndef PINS_H_
#define PINS_H_
typedef GPIO_PIN_LED<3,13,false> LED_BUILTIN_;
typedef GPIO_PIN<1,9> TX1_PIN;
typedef GPIO_PIN<1,10> RX1_PIN;
typedef GPIO_PIN<1,2> TX2_PIN;
typedef GPIO_PIN<1,3> RX2_PIN;
typedef GPIO_PIN<2,10> TX3_PIN;
typedef GPIO_PIN<2,11> RX3_PIN;
typedef GPIO_PIN<0,0xFFFF> NO_PIN;
typedef TX2... | Change default serial to USART2 for bluepill stm32f103 board | Change default serial to USART2 for bluepill stm32f103 board
| C | mit | RickKimball/fabooh,RickKimball/fabooh |
78d48b4a6c7f49ee07ff9bced8df6f7379c13d6f | test2/type_parsing_printing/typeof_skip.c | test2/type_parsing_printing/typeof_skip.c | // RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') xyz()"
long *x;
__typeof(int *) ip;
__typeof(int *) *a1;
__typeof(int *) a2[2];
__typeof(i... | // RUN: %ucc -Xprint %s 2>/dev/null | grep 'typeof' | %output_check -w "/typeof\(int \*\) ip.*/" "/typeof\(int \*\) \*a1.*/" "/typeof\(int \*\) a2\[2\].*/" "/typeof\(int \*\) a3\(\).*/" "typeof(expr: identifier) (aka 'long *') abc()" "typeof(expr: identifier) (aka 'long *') xyz()"
long *x;
__typeof(int *) ip;
__type... | Add trailing return type to type printing test | Add trailing return type to type printing test
| C | mit | bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler,bobrippling/ucc-c-compiler |
c0fa902a79201a7a14e512dba584800c4b106c2a | c++/Cutie.h | c++/Cutie.h | #ifndef _CUTIE_H_
#define _CUTIE_H_
class Cutie
{
private:
bool respondsToHugs;
unsigned int hugs;
unsigned int tlc;
public:
Cutie();
public:
void setAcceptsHugs(bool value);
bool acceptsHugs();
void hug();
void empathy();
unsigned int showHugs();
unsigned int showTlc();
};
#endif
| #ifndef _CUTIE_H_
#define _CUTIE_H_
class Cutie
{
private:
bool respondsToHugs;
unsigned int hugs;
unsigned int tlc;
public:
Cutie();
void setAcceptsHugs(bool value);
bool acceptsHugs();
void hug();
void empathy();
unsigned int showHugs();
unsigned int showTlc();
};
#endif
| Remove extra public declaration (still compiles but extraneous) | Remove extra public declaration (still compiles but extraneous)
| C | cc0-1.0 | seancorfield/maybe-hugs,yurrriq/maybe-hugs,iarna/maybe-hugs,isaacs/maybe-hugs,yurrriq/maybe-hugs,reezer/maybe-hugs,seancorfield/maybe-hugs,dariaphoebe/maybe-hugs,isaacs/maybe-hugs,airportyh/maybe-hugs,gs-akhan/maybe-hugs,seancorfield/maybe-hugs,dariaphoebe/maybe-hugs,yurrriq/maybe-hugs,dariaphoebe/maybe-hugs,dariaphoeb... |
086610926fb12b35881c06d40c295be81ddc3173 | include/llvm/CodeGen/Passes.h | include/llvm/CodeGen/Passes.h | //===-- Passes.h - Target independent code generation passes ----*- C++ -*-===//
//
// This file defines interfaces to access the target independent code generation
// passes provided by the LLVM backend.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_PASSES_H
... | //===-- Passes.h - Target independent code generation passes ----*- C++ -*-===//
//
// This file defines interfaces to access the target independent code generation
// passes provided by the LLVM backend.
//
//===----------------------------------------------------------------------===//
#ifndef LLVM_CODEGEN_PASSES_H
... | Include the sparc register in this file | Include the sparc register in this file
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@8794 91177308-0d34-0410-b5e6-96231b3b80d8
| C | bsd-2-clause | chubbymaggie/asap,llvm-mirror/llvm,llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,dslab-epfl/asap,apple/swift-llvm,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,apple/swift-llvm,GPUOpen-Drivers/llvm,llvm-mirror/llvm,GPUOpen-Drivers/llvm,GPUOpen-Drivers/... |
293b03cae0d5237f699905bc09425d29027bb2a7 | forth/src/stack_machine/compiler.c | forth/src/stack_machine/compiler.c | #include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stack_machine/common.h>
#include <stack_machine/compiler.h>
state_t __DOLIT(context_t *ctx)
{
pushnum(ctx->ds, (*(int *)ctx->ip++));
return OK;
}
void literal(context_t *ctx, int n)
{
static entry_t dolit = { .code_ptr = &__DOLIT };
... | #include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <stack_machine/common.h>
#include <stack_machine/compiler.h>
state_t __DOLIT(context_t *ctx)
{
pushnum(ctx->ds, (*(int *)ctx->ip++));
return OK;
}
void literal(context_t *ctx, int n)
{
static entry_t dolit = { .code_ptr = &__DOLIT, .nam... | Add name to DOLIT entry | Add name to DOLIT entry | C | mit | rm-hull/byok,rm-hull/byok,rm-hull/byok,rm-hull/byok |
391c2f8f921c7e16737d55920632629461f97b8f | src/wd.h | src/wd.h | /*
Copyright 2015 John Bailey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | /*
Copyright 2015 John Bailey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | Add platform-specific string formatters for size_t | Add platform-specific string formatters for size_t
| C | apache-2.0 | bright-tools/wd,bright-tools/wd,bright-tools/wd |
22340a683f685a094dec12482fc754edb2913391 | iOS/BleToolBox/BleToolBox/Model/Beacon/BleBeaconSigninModel.h | iOS/BleToolBox/BleToolBox/Model/Beacon/BleBeaconSigninModel.h | //
// BleBeaconSignInModel.h
// BleToolBox
//
// Created by Mark on 2018/1/26.
// Copyright © 2018年 MarkCJ. All rights reserved.
//
#import "BleBaseModel.h"
@interface BleBeaconSignInModel : BleBaseModel
@property NSString *beaconName; // the beacon name.
@property NSString *beaconDeviceUUID; /... | //
// BleBeaconSignInModel.h
// BleToolBox
//
// Created by Mark on 2018/1/26.
// Copyright © 2018年 MarkCJ. All rights reserved.
//
#import "BleBaseModel.h"
@interface BleBeaconSignInModel : BleBaseModel
@property NSString *beaconName; // the beacon name.
@property NSString *beaconDeviceUUID; /... | Update the source code file names | Update the source code file names
| C | mit | ChenJian345/BleSensorConnect |
106d4d7bf624103cb96f9d7998a90e2d40969df2 | DKCategories/NSData+DK.h | DKCategories/NSData+DK.h | //
// NSData+DK.h
//
// Created by dkhamsing on 2/24/14.
//
#import <Foundation/Foundation.h>
@interface NSData (DK)
/**
Load session cookies.
Credits: http://stackoverflow.com/questions/14387662/afnetworking-persisting-cookies-automatically
*/
+ (void)dk_cookiesLoad;
/**
Save session cookies.
Credits: http:... | //
// NSData+DK.h
//
// Created by dkhamsing on 2/24/14.
//
#import <Foundation/Foundation.h>
@interface NSData (DK)
/**
Load session cookies.
@param log Boolean that outputs with NSLog.
Credits: http://stackoverflow.com/questions/14387662/afnetworking-persisting-cookies-automatically
*/
+ (void)dk_cookiesLoad... | Add log option for loading cookies | Add log option for loading cookies
| C | mit | dkhamsing/DKCategories |
1006b58e857248f7979970663a4080e9d900f7eb | include/cpr/low_speed.h | include/cpr/low_speed.h | #ifndef CPR_LOW_SPEED_H
#define CPR_LOW_SPEED_H
#include <cstdint>
namespace cpr {
class LowSpeed {
public:
LowSpeed(const std::int32_t& limit, const std::int32_t& time) : limit(limit), time(time) {}
std::int32_t limit;
std::int32_t time;
};
} // namespace cpr
#endif
| #ifndef CPR_LOW_SPEED_H
#define CPR_LOW_SPEED_H
#include <cstdint>
namespace cpr {
class LowSpeed {
public:
LowSpeed(const std::int32_t limit, const std::int32_t time) : limit(limit), time(time) {}
std::int32_t limit;
std::int32_t time;
};
} // namespace cpr
#endif
| Use primitive std::int32_t instead of reference type | Use primitive std::int32_t instead of reference type
| C | mit | whoshuu/cpr,whoshuu/cpr,msuvajac/cpr,msuvajac/cpr,msuvajac/cpr,whoshuu/cpr |
a2f0f545fcae7419b4daf83ed0032d9ad28e7b49 | ir/common/firm_common.c | ir/common/firm_common.c | /*
* This file is part of libFirm.
* Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @file
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
*/
#include "irloop.h"
#include "tv.h"
/**
* Ideally, this macro would check if size bytes could be read at
* pointer p. No generic sol... | /*
* This file is part of libFirm.
* Copyright (C) 2012 University of Karlsruhe.
*/
/**
* @file
* @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck
*/
#include "irloop.h"
#include "tv.h"
/* returns the kind of the thing */
firm_kind get_kind(const void *firm_thing)
{
return *(firm_ki... | Remove the unimplemented macro POINTER_READ(). | Remove the unimplemented macro POINTER_READ().
| C | lgpl-2.1 | killbug2004/libfirm,jonashaag/libfirm,killbug2004/libfirm,jonashaag/libfirm,MatzeB/libfirm,davidgiven/libfirm,8l/libfirm,8l/libfirm,8l/libfirm,davidgiven/libfirm,killbug2004/libfirm,davidgiven/libfirm,MatzeB/libfirm,davidgiven/libfirm,jonashaag/libfirm,jonashaag/libfirm,8l/libfirm,jonashaag/libfirm,davidgiven/libfirm,M... |
d6342526a24fbfbffb77a1ae58afcafcad4207cf | parser_tests.c | parser_tests.c | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | #include "parser.h"
#include "ast.h"
#include "tests.h"
void test_parse_number();
int main() {
test_parse_number();
return 0;
}
struct token *make_token(enum token_type tk_type, char* str, double dbl,
int number) {
struct token *tk = malloc(sizeof(struct token));
tk->type = tk_type;
if (t... | Fix memory leak in tests | Fix memory leak in tests
| C | mit | iankronquist/yaz,iankronquist/yaz |
9ca06fd4ac08a7a19040c2fe62698d8b6da03395 | src/common.h | src/common.h | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | // This file is part of MorphoDiTa <http://github.com/ufal/morphodita/>.
//
// Copyright 2015 Institute of Formal and Applied Linguistics, Faculty of
// Mathematics and Physics, Charles University in Prague, Czech Republic.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If... | Move namespaces declarations to the top of the file. | Move namespaces declarations to the top of the file.
| C | mpl-2.0 | ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita,ufal/morphodita |
f6703dd4d3aa5ba9a8e19597a9477e78fc248466 | RVCalendarWeekView/Lib/Views/MSEvent.h | RVCalendarWeekView/Lib/Views/MSEvent.h | //
// AKEvent.h
// Example
//
// Created by ak on 18.01.2016.
// Copyright © 2016 Eric Horacek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DTTimePeriod.h"
@interface MSEvent : DTTimePeriod
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *location;
... | //
// AKEvent.h
// Example
//
// Created by ak on 18.01.2016.
// Copyright © 2016 Eric Horacek. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <DateTools/DTTimePeriod.h>
@interface MSEvent : DTTimePeriod
@property (nonatomic, strong) NSString *title;
@property (nonatomic, strong) NSString *l... | Fix include of DTTimePeriod in DateTools cocoapod | Fix include of DTTimePeriod in DateTools cocoapod
This fixes an issue when RVCalendarWeekView is compiled as a cocoapod framework (`use_frameworks!` in the Podfile), where cocoapods no longer allows pods to be references with user library imports (anything using quotes), and requires them to be imported as if they wer... | C | mit | ConnectCorp/RVCalendarWeekView,BadChoice/RVCalendarWeekView |
70b855c84855aa33ab8411d24b9dd0b78ecbffcb | src/hash/sha1_sse2/sha1_sse2.h | src/hash/sha1_sse2/sha1_sse2.h | /*
* SHA-160
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_SHA_160_SSE2_H__
#define BOTAN_SHA_160_SSE2_H__
#include <botan/sha160.h>
namespace Botan {
/*
* SHA-160
*/
class BOTAN_DLL SHA_160_SSE2 : public SHA_160
{
public:
HashFunction* clone() const { ... | /*
* SHA-160
* (C) 1999-2007 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#ifndef BOTAN_SHA_160_SSE2_H__
#define BOTAN_SHA_160_SSE2_H__
#include <botan/sha160.h>
namespace Botan {
/*
* SHA-160
*/
class BOTAN_DLL SHA_160_SSE2 : public SHA_160
{
public:
HashFunction* clone() const { ... | Remove extern decl of no longer used/included SHA-1 SSE2 function | Remove extern decl of no longer used/included SHA-1 SSE2 function
| C | bsd-2-clause | randombit/botan,randombit/botan,randombit/botan,webmaster128/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster128/botan,Rohde-Schwarz-Cybersecurity/botan,Rohde-Schwarz-Cybersecurity/botan,webmaster12... |
a3cb2d67b7d2743524d3ba2c23270d5fc288d6db | src/kbase/stack_walker.h | src/kbase/stack_walker.h | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_STACK_WALKER_H_
#define KBASE_STACK_WALKER_H_
#include <array>
#include "kbase/basic_macros.h"
#if defined(OS_WIN)
struct _CONTEXT;
using CONTEXT = _CONTEXT;
#endif
namespace kbase {
class StackWalker {
public:
StackWalker() noexcept... | /*
@ 0xCCCCCCCC
*/
#if defined(_MSC_VER)
#pragma once
#endif
#ifndef KBASE_STACK_WALKER_H_
#define KBASE_STACK_WALKER_H_
#include <array>
#include "kbase/basic_macros.h"
#if defined(OS_WIN)
struct _CONTEXT;
using CONTEXT = _CONTEXT;
#endif
namespace kbase {
class StackWalker {
public:
StackWalker() noexcept... | Fix missing braces warning for initialization of subobjects | Fix missing braces warning for initialization of subobjects
This warning should be a compiler bug, however, we still decide to follow
the suggestion.
Interestingly, this braces enforcement on GCC 5.4 will show up as an error
but have gone away on newer versions.
| C | mit | kingsamchen/KBase,kingsamchen/KBase_Demo,kingsamchen/KBase_Demo,kingsamchen/KBase |
6937c69638ec3f672da9f8831f52b6504e21b241 | Pod/UIKit/BonMot+UIKit.h | Pod/UIKit/BonMot+UIKit.h | //
// BonMot+UIKit.h
// Pods
//
// Created by Nora Trapp on 3/10/16.
//
//
#import "BONTextAlignmentConstraint.h"
#import "UILabel+BonMotUtilities.h"
#import "UITextField+BonMotUtilities.h"
#import "UITextView+BonMotUtilities.h"
| //
// BonMot+UIKit.h
// BonMot
//
// Created by Nora Trapp on 3/10/16.
//
//
#import "BONTextAlignmentConstraint.h"
#import "UILabel+BonMotUtilities.h"
#import "UITextField+BonMotUtilities.h"
#import "UITextView+BonMotUtilities.h"
| Change Pods to BonMot in header. | Change Pods to BonMot in header.
| C | mit | Raizlabs/BonMot,Raizlabs/BonMot,Raizlabs/BonMot |
6cbbeab123ef8f665e382ba1970c2efc31acf285 | ObjScheme/ObSFileLoader.h | ObjScheme/ObSFileLoader.h | //
// ObSFileLoader.h
// GameChanger
//
// Created by Kiril Savino on Tuesday, April 16, 2013
// Copyright 2013 GameChanger. All rights reserved.
//
@class ObSInPort;
@protocol ObSFileLoader <NSObject>
- (ObSInPort*)findFile:(NSString*)filename;
- (NSString*)qualifyFileName:(NSString*)filename;
@end
@interface Ob... | //
// ObSFileLoader.h
// GameChanger
//
// Created by Kiril Savino on Tuesday, April 16, 2013
// Copyright 2013 GameChanger. All rights reserved.
//
@class ObSInPort;
@protocol ObSFileLoader <NSObject>
- (ObSInPort*)findFile:(NSString*)filename;
- (NSString*)qualifyFileName:(NSString*)filename;
@end
@interface Ob... | Make bundle property read only | Make bundle property read only
| C | mit | gamechanger/objscheme,gamechanger/objscheme,gamechanger/objscheme |
fe631c01f9007d2ba728ff70bd0b75c78da1a94e | R2BotNUC/include/Config.h | R2BotNUC/include/Config.h | #ifndef _R2BOT_CONFIG
#define _R2BOT_CONFIG
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define DEBUG_PRINTS
#define DEVICE_NAME "NUC"
#undef USE_KINECT1
#undef USE_KINECT2
#undef USE_MOTORS
#undef USE_ULTRASONIC
#define USE_R2SERVER
#endif | #ifndef _R2BOT_CONFIG
#define _R2BOT_CONFIG
#define NOMINMAX
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#define DEBUG_PRINTS
#define DEVICE_NAME "NUC"
#undef USE_KINECT1
#undef USE_KINECT2
#undef USE_MOTORS
#undef USE_ULTRASONIC
#define USE_R2SERVER
#endif | Add NOMINMAX before including Windows.h | Add NOMINMAX before including Windows.h
| C | mit | cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2,cornell-cup/cs-r2bot2 |
e6a607f87407a5bd4e55091960c5ba0e850cb43e | ouzel/CompileConfig.h | ouzel/CompileConfig.h | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
#define OUZEL_PLATFORM_WINDOWS 1
#define OUZEL_SUPPORTS_DIRECT3D11 1
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#if TAR... | // Copyright (C) 2016 Elviss Strazdins
// This file is part of the Ouzel engine.
#pragma once
#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)
#define OUZEL_PLATFORM_WINDOWS 1
#define OUZEL_SUPPORTS_DIRECT3D11 1
#elif defined(__APPLE__)
#include <TargetConditionals.h>
#if TAR... | Define OpenGLES support for ARM | Define OpenGLES support for ARM
| C | unlicense | Hotspotmar/ouzel,elnormous/ouzel,Hotspotmar/ouzel,Hotspotmar/ouzel,elnormous/ouzel,elvman/ouzel,elnormous/ouzel,elvman/ouzel |
1071e256aff979a58d74bbf3127e3b8a771fee1b | tests/regression/61-evalAssert/01-union_evalAssert.c | tests/regression/61-evalAssert/01-union_evalAssert.c | // PARAM: --set trans.activated[+] "assert"
// Running the assert transformation on this test yields in code that is not compilable by gcc
struct s {
int a;
int b;
};
union u {
struct s str;
int i;
};
int main(){
union u un;
struct s* ptr;
un.str.a = 1;
un.str.b = 2;
ptr = &un... | // PARAM: --set trans.activated[+] "assert"
// Running the assert transformation on this test used to yield code that cannot be compiled with gcc, due to superfluous offsets on a pointer
struct s {
int a;
int b;
};
union u {
struct s str;
int i;
};
int main(){
union u un;
struct s* ptr;
... | Update comment in test case. | Update comment in test case.
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
49f067bef623a6fecda0cef6e36e3ffdaeb93c0b | src/cmd_set_node_addr.c | src/cmd_set_node_addr.c | #ifdef __USE_CMSIS
#include "LPC8xx.h"
#endif
#include <cr_section_macros.h>
#include <string.h>
#include "parse_util.h"
#include "cmd.h"
#include "err.h"
#include "frame_buffer.h"
/**
* Set node address
* Args: <node-addr>
*/
extern frame_buffer_type tx_buffer;
int cmd_set_node_addr (int argc, uint8_t **argv) {... | #ifdef __USE_CMSIS
#include "LPC8xx.h"
#endif
#include <cr_section_macros.h>
#include <string.h>
#include "parse_util.h"
#include "cmd.h"
#include "err.h"
#include "frame_buffer.h"
/**
* Set node address
* Args: <node-addr>
*/
extern frame_buffer_type tx_buffer;
int cmd_set_node_addr (int argc, uint8_t **argv) {... | Allow for node address query by using 'N' command without parameters | Allow for node address query by using 'N' command without parameters
| C | mit | jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware,jdesbonnet/RFM69_LPC812_firmware |
4aff13e22152f661ed17221ad6e99486684af761 | ui/base/ime/text_input_flags.h | ui/base/ime/text_input_flags.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_IME_TEXT_INPUT_FLAGS_H_
#define UI_BASE_IME_TEXT_INPUT_FLAGS_H_
namespace ui {
// Intentionally keep in sync with blink::WebTextInputFla... | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_IME_TEXT_INPUT_FLAGS_H_
#define UI_BASE_IME_TEXT_INPUT_FLAGS_H_
namespace ui {
// Intentionally keep in sync with blink::WebTextInputFla... | Update TextInputFlags to include autocapitalize values. | Update TextInputFlags to include autocapitalize values.
This is following the update of WebTextInputType.h update from
https://codereview.chromium.org/995363002
BUG=466930
Review URL: https://codereview.chromium.org/1024833002
Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#321736}
| C | bsd-3-clause | Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk,Just-D/chromium-1,axinging/chromium-crosswalk,ltilve/chromium,ltilve/chromium,PeterWangIntel/chromium-crosswalk,Just-D/chromiu... |
3746bd7dbc57539753aab66813e57207d6fd2c3d | kernel/svc.c | kernel/svc.c | // The Mordax Microkernel
// (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com>
// Report bugs and issues on <http://github.com/skordal/mordax/issues>
#include "context.h"
#include "debug.h"
#include "svc.h"
// Supervisor call (software interrupt) handler, called by target assembly
// code:
void svc_inte... | // The Mordax Microkernel
// (c) Kristian Klomsten Skordal 2013 <kristian.skordal@gmail.com>
// Report bugs and issues on <http://github.com/skordal/mordax/issues>
#include "context.h"
#include "debug.h"
#include "svc.h"
// Supervisor call (software interrupt) handler, called by target assembly
// code:
void svc_inte... | Fix spelling error in the SVC handler | Fix spelling error in the SVC handler
| C | bsd-3-clause | skordal/mordax |
3c07d1c7fbc93cd413628926a0b57e205b943a6f | profiles/audio/control.h | profiles/audio/control.h | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | /*
*
* BlueZ - Bluetooth protocol stack for Linux
*
* Copyright (C) 2006-2010 Nokia Corporation
* Copyright (C) 2004-2010 Marcel Holtmann <marcel@holtmann.org>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | Change to org.bluez.MediaControl1 as interface name | audio: Change to org.bluez.MediaControl1 as interface name
| C | lgpl-2.1 | silent-snowman/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,mapfau/bluez,mapfau/bluez,silent-snowman/bluez,silent-snowman/bluez,silent-snowman/bluez,pkarasev3/bluez,mapfau/bluez,mapfau/bluez,pkarasev3/bluez,pkarasev3/bluez,pstglia/external-bluetooth-bluez,pstglia/external-bluetooth-bluez,ComputeCycles/bluez,C... |
e3f1b502c12bfeb2338c43af542c0f36a7f39f13 | chrome/browser/ui/panels/panel_browser_window_gtk.h | chrome/browser/ui/panels/panel_browser_window_gtk.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#include "chrome/browser/ui... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_WINDOW_GTK_H_
#include "chrome/browser/ui... | Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK. Reason: PanelBrowserWindow dtor is now complex and cannot be inlined. | Revert 88154 - Use scoped_ptr for Panel in PanelBrowserWindowGTK.
Reason: PanelBrowserWindow dtor is now complex and cannot be inlined.
BUG=None
TEST=Verified WindowOpenPanel test now hits Panel destructor.
Review URL: http://codereview.chromium.org/7120011
TBR=jennb@chromium.org
Review URL: http://codereview.chromi... | C | bsd-3-clause | adobe/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,yitian134/chromium,adobe/chromium,ropik/chromium,gavinp/chromium,gavinp/chromium,yitian134/chromium,ropik/chromium,ropik/chromium,gavinp/chromium,adobe/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,gavinp/chromium,gavinp/chromium,adobe/chromium,yitia... |
e3e10e5a788bd65aa65ee133f3740dfc1d91f1eb | src/clientversion.h | src/clientversion.h | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | #ifndef CLIENTVERSION_H
#define CLIENTVERSION_H
//
// client versioning and copyright year
//
// These need to be macros, as version.cpp's and bitcoin-qt.rc's voodoo requires it
#define CLIENT_VERSION_MAJOR 1
#define CLIENT_VERSION_MINOR 2
#define CLIENT_VERSION_REVISION 0
#define CLIENT_VERSION_BUILD ... | Set client release to false | Set client release to false
| C | mit | Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden,Electronic-Gulden-Foundation/egulden |
b87325fe34c477f7786e791805bf692dbe79676b | boards/frdm-k22f/board.c | boards/frdm-k22f/board.c | /*
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2014 PHYTEC Messtechnik GmbH
* Copyright (C) 2017 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingro... | /*
* Copyright (C) 2014 Freie Universität Berlin
* Copyright (C) 2014 PHYTEC Messtechnik GmbH
* Copyright (C) 2017 Eistec AB
*
* This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more
* details.
*/
/**
* @ingro... | Fix typos and remove unused includes | frdm-k22f: Fix typos and remove unused includes
| C | lgpl-2.1 | kbumsik/RIOT,mfrey/RIOT,A-Paul/RIOT,OTAkeys/RIOT,smlng/RIOT,rfuentess/RIOT,mtausig/RIOT,jasonatran/RIOT,jasonatran/RIOT,rfuentess/RIOT,miri64/RIOT,authmillenon/RIOT,neiljay/RIOT,smlng/RIOT,kaspar030/RIOT,RIOT-OS/RIOT,gebart/RIOT,yogo1212/RIOT,kaspar030/RIOT,authmillenon/RIOT,BytesGalore/RIOT,kYc0o/RIOT,x3ro/RIOT,authmi... |
417dac764140b928a2695c019b2afe51fb48d104 | options.c | options.c | #include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "options.h"
struct Options *Options_parse(int argc, char *argv[]) {
assert(argc > 1);
Options *opts = malloc(sizeof(Options));
assert(opts != NULL);
opts->outfile = NULL;
opts->errfile = NULL;
opts->target = NULL;
opts->child_args = N... | #include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "options.h"
struct Options *Options_parse(int argc, char *argv[]) {
assert(argc > 1);
Options *opts = malloc(sizeof(Options));
assert(opts != NULL);
opts->outfile = NULL;
opts->errfile = NULL;
opts->target = NULL;
opts->child_args = N... | Replace hardref trick with strdup() for consistency. | [minor] Replace hardref trick with strdup() for consistency.
| C | mit | AvianFlu/aeternum |
a4fbbb9d4b14a2c262a54251af06c08767c786ea | src/include/kdbassert.h | src/include/kdbassert.h | /**
* @file
*
* @brief Assertions macros.
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdbconfig.h>
#ifdef __cplusplus
extern "C" {
#endif
void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...)
#ifd... | /**
* @file
*
* @brief Assertions macros.
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include <kdbconfig.h>
#ifdef __cplusplus
extern "C" {
#endif
void elektraAbort (const char * expression, const char * function, const char * file, const int line, const char * msg, ...)
#ifd... | Use more generic attribute if possible | Assertions: Use more generic attribute if possible
We now specify the attribute `__noreturn__` for the function
`elektraAbort` whenever it is available.
| C | bsd-3-clause | BernhardDenner/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,e1528532/libelektra,e1528532/libelektra,BernhardDenner/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,mpranj/libelektra,ElektraInitiative/libelektra,petermax2/l... |
42e0da4a0ce867dbc186665754418f5bce98301f | DcpmPkg/cli/NvmDimmCli.h | DcpmPkg/cli/NvmDimmCli.h | /*
* Copyright (c) 2018, Intel Corporation.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <CommandParser.h>
#if defined(__LINUX__) || defined(__ESX__)
#define EXE_NAME L"ipmctl"
#elif defined(_MSC_VER)
#define EXE_NAME L"ipmctl.exe"
#else
#define EXE_NAME L"ipmctl.ef... | /*
* Copyright (c) 2018, Intel Corporation.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <CommandParser.h>
#if defined(__LINUX__) || defined(__ESX__)
#define EXE_NAME L"ipmctl"
#elif defined(_MSC_VER) && defined(OS_BUILD)
#define EXE_NAME L"ipmctl.exe"
#else
#define EXE_NAME ... | Fix incorrect help message for UEFI | Fix incorrect help message for UEFI
Signed-off-by: Shilpa Nanja <a1983ef2f4a2c6b4f6ff7c9741e30dce4eb007d5@intel.com>
| C | bsd-3-clause | intel/ipmctl,intel/ipmctl,intel/ipmctl,intel/ipmctl |
82c97cd279c71bdf38776b190201beda2cc37726 | Settings/Controls/Spinner.h | Settings/Controls/Spinner.h | #pragma once
#include "Control.h"
#include <CommCtrl.h>
/// <summary>
/// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to
/// increment or decrement the current value of the box.
/// </summary>
class Spinner : public Control {
public:
Spinner() {
}
Spinner(int id, HWND parent) :
... | #pragma once
#include "Control.h"
#include <CommCtrl.h>
/// <summary>
/// Manages a 'spin control': a numeric edit box with a up/down 'buddy' to
/// increment or decrement the current value of the box.
/// </summary>
class Spinner : public Control {
public:
Spinner() {
}
Spinner(int id, HWND parent) :
... | Add docs for overridden methods | Add docs for overridden methods
| C | bsd-2-clause | Soulflare3/3RVX,Soulflare3/3RVX,malensek/3RVX,Soulflare3/3RVX,malensek/3RVX,malensek/3RVX |
1be4ab681e086ec83e96d543d37e3474ef400282 | include/llvm/MC/MCObjectFormat.h | include/llvm/MC/MCObjectFormat.h | //===-- llvm/MC/MCObjectFormat.h - Object Format Info -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | //===-- llvm/MC/MCObjectFormat.h - Object Format Info -----------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | Add a virtual destructor to silence a GCC warning. | Add a virtual destructor to silence a GCC warning.
git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@116766 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | llvm-mirror/llvm,dslab-epfl/asap,chubbymaggie/asap,GPUOpen-Drivers/llvm,GPUOpen-Drivers/llvm,chubbymaggie/asap,llvm-mirror/llvm,dslab-epfl/asap,llvm-mirror/llvm,chubbymaggie/asap,chubbymaggie/asap,llvm-mirror/llvm,GPUOpen-Drivers/llvm,apple/swift-llvm,llvm-mirror/llvm,llvm-mirror/llvm,apple/swift-llvm,dslab-epfl/asap,c... |
fe6eb2643bf697cd752a0d24b3e278dd42f16644 | WebHereTests/WebHereTests.h | WebHereTests/WebHereTests.h | //
// WebHereTests.h
// WebHereTests
//
// Created by Rui D Lopes on 25/03/13.
// Copyright (c) 2013 Rui D Lopes. All rights reserved.
//
#import <Kiwi/Kiwi.h>
#import <Nocilla/Nocilla.h>
#import <OCLogTemplate/OCLogTemplate.h>
#import <WebHere/WebHere.h>
// Fixtures
#import "WHPerson.h"
#import "WHAdmin.h"
#impo... | //
// WebHereTests.h
// WebHereTests
//
// Created by Rui D Lopes on 25/03/13.
// Copyright (c) 2013 Rui D Lopes. All rights reserved.
//
#import <SenTestingKit/SenTestingKit.h>
#import <Kiwi/Kiwi.h>
#import <Nocilla/Nocilla.h>
#import <OCLogTemplate/OCLogTemplate.h>
#import <WebHere/WebHere.h>
// Fixtures
#impor... | Add SenTestingKit to test targets | Add SenTestingKit to test targets
| C | mit | noughts/WebHere,noughts/WebHere,noughts/WebHere,noughts/WebHere,rdlopes/WebHere,rdlopes/WebHere,rdlopes/WebHere |
869d6873a53e90dafd702fd64a642849846b5c8c | main.c | main.c | #include <stdint.h>
#include "ports.h"
#include "pic.h"
#include "gdt.h"
#include "idt.h"
#include "irq.h"
#include "screen.h"
void entry(void) {
pic_remap(IRQ0, IRQ8);
pic_set_masks(0, 0);
idt_init((struct IDT *)(0x500));
gdt_init((struct GDT *)(0x500 + sizeof(struct IDT)));
__asm__ __volatile__ ("sti");
scr... | #include <stdint.h>
#include "ports.h"
#include "pic.h"
#include "gdt.h"
#include "idt.h"
#include "irq.h"
#include "screen.h"
void entry(void) {
struct IDT *idt = (struct IDT *)0x500;
struct GDT *gdt = (struct GDT *)(0x500 + sizeof(struct GDT));
pic_remap(IRQ0, IRQ8);
pic_set_masks(0, 0);
idt_init(idt);
__asm_... | Enable interrupts before initializing GDT | Enable interrupts before initializing GDT
| C | apache-2.0 | shockkolate/shockk-os,shockkolate/shockk-os,shockkolate/shockk-os |
6f39bf9df903d2c150f1e2590211a91e7277c748 | src/libc4/util/mem.c | src/libc4/util/mem.c | #include <string.h>
#include "c4-internal.h"
void *
ol_alloc(apr_size_t sz)
{
void *result = malloc(sz);
if (result == NULL)
FAIL();
return result;
}
void *
ol_alloc0(apr_size_t sz)
{
void *result = ol_alloc(sz);
memset(result, 0, sz);
return result;
}
void *
ol_realloc(void *ptr, ap... | #include <string.h>
#include "c4-internal.h"
void *
ol_alloc(apr_size_t sz)
{
void *result = malloc(sz);
if (result == NULL)
FAIL();
return result;
}
void *
ol_alloc0(apr_size_t sz)
{
void *result = ol_alloc(sz);
memset(result, 0, sz);
return result;
}
void *
ol_realloc(void *ptr, ap... | Use FAIL_APR() rather than FAIL() in create_subpool(). | Use FAIL_APR() rather than FAIL() in create_subpool().
| C | mit | bloom-lang/c4,bloom-lang/c4,bloom-lang/c4 |
01251507d399d412494b6ee7aa5b6ad9c9b2537b | test/execute/0013-struct5.c | test/execute/0013-struct5.c | struct s1 {
int y;
int z;
};
struct s2 {
struct s1 *p;
};
int main()
{
struct s1 nested;
struct s2 v;
v.p = &nested;
v.p->y = 1;
v.p->z = 2;
if (nested.y != 1)
return 1;
if (nested.z != 2)
return 2;
return 0;
}
| struct T;
struct T {
int x;
};
int
main()
{
struct T v;
{ struct T { int z; }; }
v.x = 2;
if(v.x != 2)
return 1;
return 0;
}
| Add test for simple partial structs. | Add test for simple partial structs.
| C | bsd-2-clause | andrewchambers/c,xtao/c,andrewchambers/c,xtao/c |
7dfa6fe40c6eaa68a46da7afb926e945be8c3cf3 | tests/test.time3.c | tests/test.time3.c | #include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int64_t getTicks();
void sleepFor(int64_t);
int main(int argc, char **argv)
{
int64_t a, b, c, delay;
delay = microsecondsToTicks(500000);
a = getTicks();
sleepFor(delay);
b = getTicks();
sleepFor(delay);
c = getTicks();
if(a + delay <= b... | #include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int64_t getTicks();
void sleepFor(int64_t);
int main(int argc, char **argv)
{
int64_t a, b, c, delay;
delay = microsecondsToTicks(500000);
a = getTicks();
sleepFor(delay);
b = getTicks();
sleepFor(delay);
c = getTicks();
if(a + delay <= b... | Fix the third time test. | Fix the third time test.
| C | bsd-3-clause | elliottt/llvm-threading |
77c380c9d57553e114b253630dcb1283c7096730 | include/iRRAM/mpfr_extension.h | include/iRRAM/mpfr_extension.h |
#ifndef iRRAM_MPFR_EXTENSION_H
#define iRRAM_MPFR_EXTENSION_H
#ifndef GMP_RNDN
#include <mpfr.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
void mpfr_ext_exp (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext_log (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext_sin (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext... |
#ifndef iRRAM_MPFR_EXTENSION_H
#define iRRAM_MPFR_EXTENSION_H
#ifndef GMP_RNDN
#include <mpfr.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
void mpfr_ext_exp (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext_log (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext_sin (mpfr_ptr r, mpfr_srcptr u,int p);
void mpfr_ext... | Delete duplicate (and incompatible) declaration of iRRAM_initialize(). | Delete duplicate (and incompatible) declaration of iRRAM_initialize().
| C | lgpl-2.1 | norbert-mueller/iRRAM,norbert-mueller/iRRAM,norbert-mueller/iRRAM |
41ca26bea02e69cdab85cc52756a47176ec83d80 | tests/regression/36-octapron/11-traces-max-simple.c | tests/regression/36-octapron/11-traces-max-simple.c | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
g = 2; // write something non-initial so base wouldn't find success
pthread_mutex_unlock(&A);
return NULL;
}
int main(... | // PARAM: --sets ana.activated[+] octApron
#include <pthread.h>
#include <assert.h>
int g = 1;
pthread_mutex_t A = PTHREAD_MUTEX_INITIALIZER;
void *t_fun(void *arg) {
pthread_mutex_lock(&A);
g = 2; // write something non-initial so base wouldn't find success
assert(g == 2);
pthread_mutex_unlock(&A);
return ... | Add assert after global write in 36/11 | Add assert after global write in 36/11
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
480b60ec75cd5c22424bb279f1685aa4df442ad5 | src/uci.h | src/uci.h | #ifndef UCI_H
#define UCI_H
#include "board.h"
#include "cmove.h"
#include <sstream>
#include <fstream>
class Uci {
public:
void start();
private:
Board _board;
static const int DEFAULT_DEPTH = 4;
static const int DEFAULT_MAX_TIME = 5000;
void _uciNewGame();
void _setPosition(std::istringstream&);
voi... | #ifndef UCI_H
#define UCI_H
#include "board.h"
#include "cmove.h"
#include <sstream>
#include <fstream>
class Uci {
public:
void start();
private:
Board _board;
static const int DEFAULT_DEPTH = 4;
void _uciNewGame();
void _setPosition(std::istringstream&);
void _go(std::istringstream&);
void _pickBest... | Remove old DEFAULT_MAX_TIME static var | Remove old DEFAULT_MAX_TIME static var
| C | mit | GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue,GunshipPenguin/shallow-blue |
9a02c49ad67f80d1a5839c8c1ab92f3d73e6fbfb | content/public/browser/devtools_frontend_window.h | content/public/browser/devtools_frontend_window.h | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#pragma once
class TabContents;... | // Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#define CONTENT_PUBLIC_BROWSER_DEVTOOLS_FRONTEND_WINDOW_H_
#pragma once
class TabContents;... | Add missing CONTENT_EXPORT to fix Linux shared build after r112415 | Add missing CONTENT_EXPORT to fix Linux shared build after r112415
BUG=104625
TEST=None
TBR=pfeldman
Review URL: http://codereview.chromium.org/8763022
git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@112420 0039d316-1c4b-4281-b951-d872f2087c98
| C | bsd-3-clause | junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,hgl888/chromium-crosswalk,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,mogoweb/chromium-cros... |
78606da47fb80ef2b16ad81b5c5f1129857040cd | tensorflow/lite/delegates/gpu/common/status.h | tensorflow/lite/delegates/gpu/common/status.h | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | /* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | Add include-what-you-use pragma so IWYU does not try to include these files again. | Add include-what-you-use pragma so IWYU does not try to include these files again.
PiperOrigin-RevId: 325359254
Change-Id: Ibeb53b70736036ab22ed59858f31adb0b55c65a7
| C | apache-2.0 | Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/t... |
a5a35e149d204d6b0b3eda5f186e1dc4f66e443d | test/Sema/PR2923.c | test/Sema/PR2923.c | // RUN: clang -fsyntax-only -verify
// Test for absence of crash reported in PR 2923:
//
// http://llvm.org/bugs/show_bug.cgi?id=2923
//
// Previously we had a crash when deallocating the FunctionDecl for 'bar'
// because FunctionDecl::getNumParams() just used the type of foo to determine
// the number of parameters ... | // RUN: clang -fsyntax-only -verify %s
// Test for absence of crash reported in PR 2923:
//
// http://llvm.org/bugs/show_bug.cgi?id=2923
//
// Previously we had a crash when deallocating the FunctionDecl for 'bar'
// because FunctionDecl::getNumParams() just used the type of foo to determine
// the number of paramete... | Fix missing %s in run string causing hang during tests. | Fix missing %s in run string causing hang during tests.
git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@58394 91177308-0d34-0410-b5e6-96231b3b80d8
| C | apache-2.0 | apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-clang,apple/swift-clang,llvm-mirror/clang,llvm-mirror/clang,apple/swift-cl... |
349ed5a060397fcccc542a0314f236b420bd4ad1 | drivers/scsi/qla4xxx/ql4_version.h | drivers/scsi/qla4xxx/ql4_version.h | /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2006 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k3"
| /*
* QLogic iSCSI HBA Driver
* Copyright (c) 2003-2006 QLogic Corporation
*
* See LICENSE.qla4xxx for copyright and licensing details.
*/
#define QLA4XXX_DRIVER_VERSION "5.02.00-k4"
| Update driver version to 5.02.00-k4 | [SCSI] qla4xxx: Update driver version to 5.02.00-k4
Signed-off-by: Vikas Chaudhary <c251871a64d7d31888eace0406cb3d4c419d5f73@qlogic.com>
Signed-off-by: Ravi Anand <399b6871085291e2c1578e38a71f59e8d20fafc0@qlogic.com>
Signed-off-by: James Bottomley <407b36959ca09543ccda8f8e06721c791bc53435@suse.de>
| C | apache-2.0 | TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,KristFoundation/Programs,KristFoundation/Programs,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_k... |
130e764d61e4de8002e9725471f556f6ebaa98b8 | tests/regression/00-sanity/21-empty-loops.c | tests/regression/00-sanity/21-empty-loops.c | int main()
{
f_empty_goto_loop();
f_empty_while_loop();
f_empty_goto_loop_suffix();
f_empty_while_loop_suffix();
f_nonempty_goto_loop();
f_nonempty_while_loop();
return 0;
}
void f_empty_goto_loop()
{
f_empty_goto_loop_label:
goto f_empty_goto_loop_label;
}
void f_empty_while_loop()
{
while (1) {}
... | int main()
{
// non-deterministically make all variants live
int r;
switch (r)
{
case 0:
f_empty_goto_loop();
break;
case 1:
f_empty_while_loop();
break;
case 2:
f_empty_goto_loop_suffix();
break;
case 3:
f_empty_while_loop_suffix();
break;
cas... | Change 00/21 to make all loops live | Change 00/21 to make all loops live
| C | mit | goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer,goblint/analyzer |
0ce1a01b7969f9e20febdd0da39a69504570ce8c | src/tools/gen/template/elektra_gen.c | src/tools/gen/template/elektra_gen.c | /**
* @file
*
* @brief
*
* @copyright BSD License (see doc/LICENSE.md or https://www.libelektra.org)
*/
#compiler-settings
directiveStartToken = @
cheetahVarStartToken = $
#end compiler-settings
@from support.elektra_gen import *
@set support = ElektraGenSupport()
@for $key, $info in $parameters.iteritems()
@if... | /**
* @file
*
* @brief
*
* @copyright BSD License (see doc/LICENSE.md or https://www.libelektra.org)
*/
#compiler-settings
directiveStartToken = @
cheetahVarStartToken = $
#end compiler-settings
@from support.elektra_gen import *
@set support = ElektraGenSupport()
#include <stdlib.h>
#include <elektra.h>
#inclu... | Add defines for enum type and conversions | codegen: Add defines for enum type and conversions
| C | bsd-3-clause | ElektraInitiative/libelektra,mpranj/libelektra,mpranj/libelektra,BernhardDenner/libelektra,petermax2/libelektra,BernhardDenner/libelektra,petermax2/libelektra,ElektraInitiative/libelektra,petermax2/libelektra,petermax2/libelektra,BernhardDenner/libelektra,ElektraInitiative/libelektra,ElektraInitiative/libelektra,mpranj... |
bff700a9652cda6b6201283e5a3623fa5ce0987c | CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h | CefSharp.BrowserSubprocess.Core/JavascriptPropertyWrapper.h | // Copyright 2010-2014 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_v8.h"
using namespace CefSharp::Internals;
namespace CefSharp
{
public ref class Javas... | // Copyright 2010-2014 The CefSharp Project. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#pragma once
#include "Stdafx.h"
#include "include/cef_v8.h"
using namespace CefSharp::Internals;
namespace CefSharp
{
public ref class Javas... | Add TODO about strongly typing variable | Add TODO about strongly typing variable
| C | bsd-3-clause | battewr/CefSharp,ruisebastiao/CefSharp,Haraguroicha/CefSharp,wangzheng888520/CefSharp,rover886/CefSharp,jamespearce2006/CefSharp,gregmartinhtc/CefSharp,VioletLife/CefSharp,NumbersInternational/CefSharp,Haraguroicha/CefSharp,NumbersInternational/CefSharp,yoder/CefSharp,AJDev77/CefSharp,ITGlobal/CefSharp,VioletLife/CefSh... |
0343c07262e1334e296850aee21f6702b13233e0 | SearchResultsView/WindowClassHolder.h | SearchResultsView/WindowClassHolder.h | #pragma once
class WindowClassHolder
{
private:
ATOM m_WindowClass;
public:
WindowClassHolder() :
m_WindowClass(0)
{
}
WindowClassHolder(ATOM windowClass) :
m_WindowClass(windowClass)
{
}
WindowClassHolder& operator=(ATOM windowClass)
{
if (m_WindowClass != 0)
UnregisterClassW(*this, GetModuleHand... | #pragma once
class WindowClassHolder
{
private:
ATOM m_WindowClass;
public:
WindowClassHolder() :
m_WindowClass(0)
{
}
WindowClassHolder(ATOM windowClass) :
m_WindowClass(windowClass)
{
}
~WindowClassHolder()
{
if (m_WindowClass != 0)
UnregisterClassW(*this, GetModuleHandleW(nullptr));
}
Window... | Fix WindowsClassHolder destructor doing nothing. | Fix WindowsClassHolder destructor doing nothing.
| C | mit | TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch,TautvydasZilys/FileSystemSearch |
789abe81157c63e6893b89f9c6f249f27d7286cd | include/nekit/transport/listener_interface.h | include/nekit/transport/listener_interface.h | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | // MIT License
// Copyright (c) 2017 Zhuhao Wang
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... | Add missing mark for pure virtual method | FIX: Add missing mark for pure virtual method
| C | mit | zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit,zhuhaow/libnekit |
4ba9ea887633b3783bd86aae9da2a35bcd25bffd | src/sw/siagen/siagen.h | src/sw/siagen/siagen.h | #ifndef MIAOW_SIAGEN_H
#define MIAOW_SIAGEN_H
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "asm.h"
#include "helper.h"
#define MAX_INSTR 1000
#define MAX_OPS 50
#define INSTR_TYPES 4
#define SCALAR_ALU 0
#define VECTOR_ALU 1
#define SCALAR_MEM 2
#define VECTOR_MEM 3
... | #ifndef MIAOW_SIAGEN_H
#define MIAOW_SIAGEN_H
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <string>
#include "asm.h"
#include "helper.h"
#define MAX_INSTR 1000
#define MAX_OPS 50
#define INSTR_TYPES 4
#define SCALAR_ALU 0
#define VECTOR_ALU 1
#define SCALAR_MEM 2
#def... | Fix build on Linux where gcc apparently enforces character arrays as arrays for initialization purposes. | Fix build on Linux where gcc apparently enforces character arrays as arrays for initialization purposes.
| C | bsd-3-clause | VerticalResearchGroup/miaow,VerticalResearchGroup/miaow,VerticalResearchGroup/miaow,VerticalResearchGroup/miaow |
0212bc7e650e26838796be41f161b5711d502066 | source/glbinding/include/glbinding/callbacks.h | source/glbinding/include/glbinding/callbacks.h | #pragma once
#include <glbinding/glbinding_api.h>
#include <set>
#include <vector>
#include <functional>
namespace glbinding
{
class AbstractFunction;
class AbstractValue;
struct GLBINDING_API FunctionCall
{
FunctionCall(const AbstractFunction * _function);
~FunctionCall();
FunctionCall & operator=(c... | #pragma once
#include <glbinding/glbinding_api.h>
#include <set>
#include <vector>
#include <functional>
#include <string>
namespace glbinding
{
class AbstractFunction;
class AbstractValue;
struct GLBINDING_API FunctionCall
{
FunctionCall(const AbstractFunction * _function);
~FunctionCall();
Function... | Fix compilation for gcc 4.7 | Fix compilation for gcc 4.7
| C | mit | hpi-r2d2/glbinding,j-o/glbinding,hpicgs/glbinding,hpicgs/glbinding,mcleary/glbinding,mcleary/glbinding,mcleary/glbinding,hpicgs/glbinding,j-o/glbinding,j-o/glbinding,cginternals/glbinding,hpi-r2d2/glbinding,cginternals/glbinding,hpicgs/glbinding,hpi-r2d2/glbinding,j-o/glbinding,mcleary/glbinding,hpi-r2d2/glbinding |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.